config.cpp 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. //Get this addons macro
  2. //get the macro for the air RD501_patch_vehicles
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Praetorian_Variant
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_prea_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_Praetorian_Variants
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_vehicles
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(Praetorian_Variant,normal),
  23. macro_new_vehicle(Praetorian_Variant,blufor),
  24. macro_new_vehicle(Praetorian_Variant,opfor),
  25. macro_new_vehicle(Praetorian_Variant,republic),
  26. macro_new_vehicle(Praetorian_Variant,imperial),
  27. macro_new_vehicle(Praetorian_Variant,Ion),
  28. macro_new_vehicle(Praetorian_Variant,Purple)
  29. };
  30. weapons[]=
  31. {
  32. };
  33. };
  34. };
  35. #include "../../common/sensor_templates.hpp"
  36. class DefaultEventhandlers;
  37. class CfgVehicles
  38. {
  39. class LandVehicle;
  40. class StaticWeapon: LandVehicle
  41. {
  42. class Turrets;
  43. };
  44. class StaticMGWeapon: StaticWeapon
  45. {
  46. class Turrets: Turrets
  47. {
  48. class MainTurret;
  49. };
  50. class Components;
  51. };
  52. class AAA_System_01_base_F:StaticMGWeapon
  53. {
  54. class Components:Components{};
  55. class Turrets: Turrets
  56. {
  57. class MainTurret:MainTurret{};
  58. };
  59. };
  60. class B_AAA_System_01_F:AAA_System_01_base_F
  61. {
  62. class Components:Components{};
  63. class Turrets: Turrets
  64. {
  65. class MainTurret:MainTurret{};
  66. };
  67. };
  68. class macro_new_vehicle(Praetorian_Variant,normal): B_AAA_System_01_F
  69. {
  70. scope = 2;
  71. forceInGarage=1;
  72. allowTabLock = 1;
  73. canUseScanner = 1;
  74. driverCanSee = 31;
  75. gunnerCanSee = 31;
  76. commanderCanSee = 31;
  77. canLock = 2;
  78. cmImmunity = 1;
  79. lockAcquire = 0;
  80. weaponLockDelay = 0;
  81. radarType = 2;
  82. irScanToEyeFactor = 1;
  83. irScanRangeMin = 0;
  84. irScanRangeMax = 100000;
  85. irScanGround = 1;
  86. laserScanner = 1;
  87. weaponLockSystem = "0";
  88. radarTarget = 0;
  89. receiveRemoteTargets = true;
  90. reportRemoteTargets = true;
  91. reportOwnPosition = true;
  92. scopecurator = 2;
  93. displayName = "CIS B.E.A.R.D AA";
  94. side = 0;
  95. editorPreview = "";
  96. author = "RD501";
  97. visualTarget = 0;
  98. visualTargetSize = 0;
  99. radarTargetSize = 0;
  100. nvTarget = 0;
  101. laserTarget = 0;
  102. irTarget = 0;
  103. irTargetSize = 0;
  104. countermeasureActivationRadius = 2000;
  105. faction = MACRO_QUOTE(macro_faction(CIS));
  106. editorSubcategory = MACRO_QUOTE(macro_editor_cat(AA));
  107. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(AA));
  108. //faction = "RD501FactionOpfor";
  109. /*hiddenSelectionsTextures[] =
  110. {
  111. "awing\t_awing_03_cw.paa",
  112. "awing\t_awing_03_cw.paa"
  113. };*/
  114. class Turrets: Turrets
  115. {
  116. class MainTurret: MainTurret
  117. {
  118. canUseScanner = 1;
  119. weapons[] = {
  120. macro_new_weapon(generic,preatorian_gun_opfor)
  121. };
  122. magazines[] = {
  123. macro_new_mag(generic_aircraft_gun_preatorian,1000),
  124. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  125. };
  126. };
  127. };
  128. class components: Components
  129. {
  130. class SensorsManagerComponent
  131. {
  132. class components
  133. {
  134. class IRSensorComponent: SensorTemplateIR
  135. {
  136. typeRecognitionDistance = 16000;
  137. angleRangeHorizontal = 360;
  138. angleRangeVertical = 360;
  139. groundNoiseDistanceCoef = -1;
  140. maxGroundNoiseDistance = 1600;
  141. minSpeedThreshold = 0;
  142. maxSpeedThreshold = 2000;
  143. maxFogSeeThrough= -1;
  144. nightRangeCoef = 1;
  145. class AirTarget
  146. {
  147. minRange = 0;
  148. maxRange = 16000;
  149. objectDistanceLimitCoef = -1;
  150. viewDistanceLimitCoef = -1;
  151. maxFogSeeThrough= -1;
  152. nightRangeCoef = 1;
  153. };
  154. class GroundTarget
  155. {
  156. minRange = 0;
  157. maxRange = 16000;
  158. objectDistanceLimitCoef = -1;
  159. viewDistanceLimitCoef = -1;
  160. maxFogSeeThrough= -1;
  161. nightRangeCoef = 1;
  162. };
  163. };
  164. class NVSensorComponent: SensorTemplateNV
  165. {
  166. typeRecognitionDistance = 16000;
  167. angleRangeHorizontal = 360;
  168. angleRangeVertical = 360;
  169. groundNoiseDistanceCoef = -1;
  170. maxGroundNoiseDistance = 1600;
  171. minSpeedThreshold = 0;
  172. maxSpeedThreshold = 2000;
  173. class AirTarget
  174. {
  175. minRange = 0;
  176. maxRange = 16000;
  177. objectDistanceLimitCoef = -1;
  178. viewDistanceLimitCoef = -1;
  179. };
  180. class GroundTarget
  181. {
  182. minRange = 0;
  183. maxRange = 16000;
  184. objectDistanceLimitCoef = -1;
  185. viewDistanceLimitCoef = -1;
  186. };
  187. };
  188. class LaserSensorComponent: SensorTemplateLaser
  189. {
  190. typeRecognitionDistance = 16000;
  191. angleRangeHorizontal = 360;
  192. angleRangeVertical = 360;
  193. groundNoiseDistanceCoef = -1;
  194. maxGroundNoiseDistance = 1600;
  195. minSpeedThreshold = 0;
  196. maxSpeedThreshold = 2000;
  197. class AirTarget
  198. {
  199. minRange = 0;
  200. maxRange = 16000;
  201. objectDistanceLimitCoef = -1;
  202. viewDistanceLimitCoef = -1;
  203. };
  204. class GroundTarget
  205. {
  206. minRange = 0;
  207. maxRange = 16000;
  208. objectDistanceLimitCoef = -1;
  209. viewDistanceLimitCoef = -1;
  210. };
  211. };
  212. class PassiveRadarSensorComponent: SensorTemplatePassiveRadar
  213. {
  214. typeRecognitionDistance = 16000;
  215. angleRangeHorizontal = 360;
  216. angleRangeVertical = 360;
  217. groundNoiseDistanceCoef = -1;
  218. maxGroundNoiseDistance = 1600;
  219. minSpeedThreshold = 0;
  220. maxSpeedThreshold = 2000;
  221. class AirTarget
  222. {
  223. minRange = 0;
  224. maxRange = 16000;
  225. objectDistanceLimitCoef = -1;
  226. viewDistanceLimitCoef = -1;
  227. };
  228. class GroundTarget
  229. {
  230. minRange = 0;
  231. maxRange = 16000;
  232. objectDistanceLimitCoef = -1;
  233. viewDistanceLimitCoef = -1;
  234. };
  235. };
  236. class VisualSensorComponent: SensorTemplateVisual
  237. {
  238. typeRecognitionDistance = 16000;
  239. angleRangeHorizontal = 360;
  240. angleRangeVertical = 360;
  241. groundNoiseDistanceCoef = -1;
  242. maxGroundNoiseDistance = 1600;
  243. minSpeedThreshold = 0;
  244. maxSpeedThreshold = 2000;
  245. class AirTarget
  246. {
  247. minRange = 0;
  248. maxRange = 16000;
  249. objectDistanceLimitCoef = -1;
  250. viewDistanceLimitCoef = -1;
  251. };
  252. class GroundTarget
  253. {
  254. minRange = 0;
  255. maxRange = 16000;
  256. objectDistanceLimitCoef = -1;
  257. viewDistanceLimitCoef = -1;
  258. };
  259. };
  260. class ManSensorComponent: SensorTemplateMan
  261. {
  262. typeRecognitionDistance = 16000;
  263. angleRangeHorizontal = 360;
  264. angleRangeVertical = 360;
  265. groundNoiseDistanceCoef = -1;
  266. maxGroundNoiseDistance = 1600;
  267. minSpeedThreshold = 0;
  268. maxSpeedThreshold = 2000;
  269. class AirTarget
  270. {
  271. minRange = 0;
  272. maxRange = 16000;
  273. objectDistanceLimitCoef = -1;
  274. viewDistanceLimitCoef = -1;
  275. };
  276. class GroundTarget
  277. {
  278. minRange = 0;
  279. maxRange = 16000;
  280. objectDistanceLimitCoef = -1;
  281. viewDistanceLimitCoef = -1;
  282. };
  283. };
  284. class DataLinkSensorComponent: SensorTemplateDataLink
  285. {
  286. typeRecognitionDistance = 16000;
  287. angleRangeHorizontal = 360;
  288. angleRangeVertical = 360;
  289. groundNoiseDistanceCoef = -1;
  290. maxGroundNoiseDistance = 1600;
  291. minSpeedThreshold = 0;
  292. maxSpeedThreshold = 2000;
  293. class AirTarget
  294. {
  295. minRange = 0;
  296. maxRange = 16000;
  297. objectDistanceLimitCoef = -1;
  298. viewDistanceLimitCoef = -1;
  299. };
  300. class GroundTarget
  301. {
  302. minRange = 0;
  303. maxRange = 16000;
  304. objectDistanceLimitCoef = -1;
  305. viewDistanceLimitCoef = -1;
  306. };
  307. };
  308. };
  309. };
  310. };
  311. class EventHandlers :DefaultEventhandlers{};
  312. };
  313. class macro_new_vehicle(Praetorian_Variant,opfor): macro_new_vehicle(Praetorian_Variant,normal)
  314. {
  315. displayName = "Laser Cannons (opfor)";
  316. /*faction = "";
  317. scope = 1;//?
  318. scopecurator = 1;
  319. weaponLockSystem = "2+4+8";
  320. /*hiddenSelectionsTextures[] =
  321. {
  322. "awing\t_awing_03_cw.paa",
  323. "awing\t_awing_03_cw.paa"
  324. };*/
  325. class Turrets: Turrets
  326. {
  327. class MainTurret: MainTurret
  328. {
  329. weapons[] = {
  330. macro_new_weapon(generic,preatorian_turret_opfor)
  331. };
  332. magazines[] = {
  333. macro_new_mag(generic_aircraft_gun,1000),
  334. macro_new_mag(generic_aircraft_gun,1000)
  335. };
  336. minTurn=-45;
  337. maxTurn=45;
  338. minElev = -45;
  339. maxElev = +45;
  340. aiRateOfFire = 0.0001;
  341. maxHorizontalRotSpeed = 3000;
  342. maxVerticalRotSpeed = 3000;
  343. stabilizedInAxes = 4;
  344. };
  345. };
  346. };
  347. };