basicDefines_A3.hpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #define true 1
  2. #define false 0
  3. #define VSoft 0
  4. #define VArmor 1
  5. #define VAir 2
  6. // type scope
  7. #define private 0
  8. #define protected 1
  9. #define public 2
  10. #define CanSeeRadar 1
  11. #define CanSeeEye 2
  12. #define CanSeeOptics 4
  13. #define CanSeeEar 8
  14. #define CanSeeCompass 16
  15. #define CanSeeRadarC CanSeeRadar+CanSeeCompass
  16. #define CanSeeAll 31
  17. #define CanSeePeripheral 32
  18. //lock acquiring
  19. #define manualLA 0
  20. #define automaticLA 1
  21. //lockable target type
  22. #define lockGroundTT 0
  23. #define lockAirGroundTT 1
  24. #define lockAirTT 2
  25. #define lockGround 0
  26. #define lockAirGround 1
  27. #define lockAir 2
  28. //missile lock type
  29. #define fireAndForgetLT 0
  30. #define keepLockedLT 1
  31. #define manualLT 2
  32. #define SPEED_STATIC 1e10
  33. #define LockNo 0
  34. #define LockCadet 1
  35. #define LockYes 2
  36. enum {StabilizedInAxesNone,StabilizedInAxisX,StabilizedInAxisY,StabilizedInAxesBoth,StabilizedInAxesXYZ};
  37. #define StabilizedInAxesNone 0
  38. #define StabilizedInAxisX 1
  39. #define StabilizedInAxisY 2
  40. #define StabilizedInAxesBoth 3
  41. #define StabilizedInAxesXYZ 4
  42. #define CM_none 0
  43. #define CM_Lock_Visual 1
  44. #define CM_Lock_IR 2
  45. #define CM_Lock_Laser 4
  46. #define CM_Lock_Radar 8
  47. #define CM_Missile 16
  48. #define CMImmunity_GOOD 0.9
  49. #define CMImmunity_MIDDLE 0.65
  50. #define CMImmunity_BAD 0.5
  51. #define mag_xx(a,b) class _xx_##a {magazine = a; count = b;}
  52. #define weap_xx(a,b) class _xx_##a {weapon = a; count = b;}
  53. #define item_xx(a,b) class _xx_##a {name = a; count = b;}
  54. #define bag_xx(a,b) class _xx_##a {backpack = a; count = b;}
  55. #define DEFAULT_SLOT 0
  56. #define MUZZLE_SLOT 101
  57. #define OPTICS_SLOT 201
  58. #define FLASHLIGHT_SLOT 301
  59. #define NVG_SLOT 602
  60. #define GOGGLE_SLOT 603
  61. #define HEADGEAR_SLOT 605
  62. #define UNIFORM_SLOT 801
  63. #define HMD_SLOT 616
  64. #define BINOCULAR_SLOT 617
  65. #define MEDIKIT_SLOT 619
  66. #define RADIO_SLOT 611
  67. #define VEST_SLOT 701
  68. #define BACKPACK_SLOT 901
  69. #define LOAD(weight,capacity) maximumLoad = ##capacity##; \
  70. mass = ##weight##;
  71. #define HeadArmourCoef 2.5
  72. #define BodyArmourCoef 10
  73. #define HandArmourCoef 5
  74. #define LegArmourCoef 5