config.cpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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 warden
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_warden_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_warden_tank
  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(warden_tank,mobile),
  23. macro_new_vehicle(warden_tank,field)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers;
  32. class CfgVehicles
  33. {
  34. class APC_Tracked_01_base_F;
  35. class B_APC_Tracked_01_base_F:APC_Tracked_01_base_F
  36. {
  37. class Turrets;
  38. };
  39. class B_APC_Tracked_01_CRV_F:B_APC_Tracked_01_base_F
  40. {
  41. class Turrets:Turrets
  42. {
  43. class MainTurret;
  44. class CommanderOptics;
  45. };
  46. class Components;
  47. };
  48. class macro_new_vehicle(warden_tank,mobile) : B_APC_Tracked_01_CRV_F
  49. {
  50. displayName = "Republic Overseer ASV";
  51. ace_refuel_fuelCargo = 999999999999;
  52. ace_rearm_defaultSupply = 999999999999;
  53. ace_cargo_space = 170;
  54. ace_repair_canRepair =1;
  55. ace_refuel_hooks[] = {{0.38, -3.17, -0.7}, {-0.41, -3.17, -0.7}};
  56. scopeCurator = 2;
  57. transportSoldier=8;
  58. LESH_canTow = 1;
  59. crew = "JLTS_Clone_P2_Rex_501";
  60. LESH_AxisOffsetTower[] = {0,-6,1};
  61. driverCanSee = 31;
  62. gunnerCanSee = 31;
  63. commanderCanSee = 31;
  64. canUseScanner = 1;
  65. incomingMissileDetectionSystem = 16;
  66. weaponLockSystem = "2+4+8";
  67. receiveRemoteTargets = true;
  68. reportRemoteTargets = true;
  69. reportOwnPosition = true;
  70. faction = MACRO_QUOTE(macro_faction(republic));
  71. editorSubcategory = MACRO_QUOTE(macro_editor_cat(APC));
  72. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(APC));
  73. smokeLauncherGrenadeCount=8;
  74. smokeLauncherVelocity=14;
  75. smokeLauncherOnTurret=1;
  76. smokeLauncherAngle=120;
  77. #include "../../common/smallvehiclekit.hpp"
  78. author = "RD501";
  79. //faction = "RD501Faction";
  80. scope = 2;
  81. side = 1;
  82. hiddenSelections[] = {"camo1", "camo2", "camo3", "camo4", "CamoNet"};
  83. hiddenSelectionsTextures[]=
  84. {
  85. "RD501_Vehicles\textures\warden\overseer_ext1_cream_blue_co.paa",
  86. "RD501_Vehicles\textures\warden\overseer_ext2_cream_blue_co.paa",
  87. "RD501_Vehicles\textures\warden\overseer_turret_cream_co.paa",
  88. "RD501_Vehicles\textures\warden\overseer_ext3_cream_blue_co.paa",
  89. "a3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  90. };
  91. forceInGarage =1;
  92. class Turrets: Turrets
  93. {
  94. class MainTurret: MainTurret
  95. {
  96. weapons[] = {
  97. macro_basic_air_weapons,
  98. macro_new_weapon(generic,blue_aircraft_cannon)
  99. };
  100. magazines[] = {
  101. macro_basic_air_mags,
  102. macro_new_mag(generic_aircraft_cannon_blue,1000),
  103. macro_new_mag(generic_aircraft_cannon_blue,1000)
  104. };
  105. };
  106. class CommanderOptics: CommanderOptics
  107. {
  108. };
  109. };
  110. class components: Components
  111. {
  112. class SensorsManagerComponent
  113. {
  114. class components
  115. {
  116. class IRSensorComponent: SensorTemplateIR
  117. {
  118. typeRecognitionDistance = 16000;
  119. angleRangeHorizontal = 360;
  120. angleRangeVertical = 360;
  121. groundNoiseDistanceCoef = -1;
  122. maxGroundNoiseDistance = 1600;
  123. minSpeedThreshold = 0;
  124. maxSpeedThreshold = 2000;
  125. maxFogSeeThrough= -1;
  126. nightRangeCoef = 1;
  127. class AirTarget
  128. {
  129. minRange = 0;
  130. maxRange = 16000;
  131. objectDistanceLimitCoef = -1;
  132. viewDistanceLimitCoef = -1;
  133. maxFogSeeThrough= -1;
  134. nightRangeCoef = 1;
  135. };
  136. class GroundTarget
  137. {
  138. minRange = 0;
  139. maxRange = 16000;
  140. objectDistanceLimitCoef = -1;
  141. viewDistanceLimitCoef = -1;
  142. maxFogSeeThrough= -1;
  143. nightRangeCoef = 1;
  144. };
  145. };
  146. class NVSensorComponent: SensorTemplateNV
  147. {
  148. typeRecognitionDistance = 16000;
  149. angleRangeHorizontal = 360;
  150. angleRangeVertical = 360;
  151. groundNoiseDistanceCoef = -1;
  152. maxGroundNoiseDistance = 1600;
  153. minSpeedThreshold = 0;
  154. maxSpeedThreshold = 2000;
  155. class AirTarget
  156. {
  157. minRange = 0;
  158. maxRange = 16000;
  159. objectDistanceLimitCoef = -1;
  160. viewDistanceLimitCoef = -1;
  161. };
  162. class GroundTarget
  163. {
  164. minRange = 0;
  165. maxRange = 16000;
  166. objectDistanceLimitCoef = -1;
  167. viewDistanceLimitCoef = -1;
  168. };
  169. };
  170. class LaserSensorComponent: SensorTemplateLaser
  171. {
  172. typeRecognitionDistance = 16000;
  173. angleRangeHorizontal = 360;
  174. angleRangeVertical = 360;
  175. groundNoiseDistanceCoef = -1;
  176. maxGroundNoiseDistance = 1600;
  177. minSpeedThreshold = 0;
  178. maxSpeedThreshold = 2000;
  179. class AirTarget
  180. {
  181. minRange = 0;
  182. maxRange = 16000;
  183. objectDistanceLimitCoef = -1;
  184. viewDistanceLimitCoef = -1;
  185. };
  186. class GroundTarget
  187. {
  188. minRange = 0;
  189. maxRange = 16000;
  190. objectDistanceLimitCoef = -1;
  191. viewDistanceLimitCoef = -1;
  192. };
  193. };
  194. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  195. {
  196. typeRecognitionDistance = 16000;
  197. angleRangeHorizontal = 360;
  198. angleRangeVertical = 360;
  199. groundNoiseDistanceCoef = -1;
  200. maxGroundNoiseDistance = 1600;
  201. minSpeedThreshold = 0;
  202. maxSpeedThreshold = 2000;
  203. class AirTarget
  204. {
  205. minRange = 0;
  206. maxRange = 16000;
  207. objectDistanceLimitCoef = -1;
  208. viewDistanceLimitCoef = -1;
  209. };
  210. class GroundTarget
  211. {
  212. minRange = 0;
  213. maxRange = 16000;
  214. objectDistanceLimitCoef = -1;
  215. viewDistanceLimitCoef = -1;
  216. };
  217. };
  218. class PassiveRadarSensorComponent: SensorTemplatePassiveRadar
  219. {
  220. typeRecognitionDistance = 16000;
  221. angleRangeHorizontal = 360;
  222. angleRangeVertical = 360;
  223. groundNoiseDistanceCoef = -1;
  224. maxGroundNoiseDistance = 1600;
  225. minSpeedThreshold = 0;
  226. maxSpeedThreshold = 2000;
  227. class AirTarget
  228. {
  229. minRange = 0;
  230. maxRange = 16000;
  231. objectDistanceLimitCoef = -1;
  232. viewDistanceLimitCoef = -1;
  233. };
  234. class GroundTarget
  235. {
  236. minRange = 0;
  237. maxRange = 16000;
  238. objectDistanceLimitCoef = -1;
  239. viewDistanceLimitCoef = -1;
  240. };
  241. };
  242. class VisualSensorComponent: SensorTemplateVisual
  243. {
  244. typeRecognitionDistance = 16000;
  245. angleRangeHorizontal = 360;
  246. angleRangeVertical = 360;
  247. groundNoiseDistanceCoef = -1;
  248. maxGroundNoiseDistance = 1600;
  249. minSpeedThreshold = 0;
  250. maxSpeedThreshold = 2000;
  251. class AirTarget
  252. {
  253. minRange = 0;
  254. maxRange = 16000;
  255. objectDistanceLimitCoef = -1;
  256. viewDistanceLimitCoef = -1;
  257. };
  258. class GroundTarget
  259. {
  260. minRange = 0;
  261. maxRange = 16000;
  262. objectDistanceLimitCoef = -1;
  263. viewDistanceLimitCoef = -1;
  264. };
  265. };
  266. class ManSensorComponent: SensorTemplateMan
  267. {
  268. typeRecognitionDistance = 16000;
  269. angleRangeHorizontal = 360;
  270. angleRangeVertical = 360;
  271. groundNoiseDistanceCoef = -1;
  272. maxGroundNoiseDistance = 1600;
  273. minSpeedThreshold = 0;
  274. maxSpeedThreshold = 2000;
  275. class AirTarget
  276. {
  277. minRange = 0;
  278. maxRange = 16000;
  279. objectDistanceLimitCoef = -1;
  280. viewDistanceLimitCoef = -1;
  281. };
  282. class GroundTarget
  283. {
  284. minRange = 0;
  285. maxRange = 16000;
  286. objectDistanceLimitCoef = -1;
  287. viewDistanceLimitCoef = -1;
  288. };
  289. };
  290. class DataLinkSensorComponent: SensorTemplateDataLink
  291. {
  292. typeRecognitionDistance = 16000;
  293. angleRangeHorizontal = 360;
  294. angleRangeVertical = 360;
  295. groundNoiseDistanceCoef = -1;
  296. maxGroundNoiseDistance = 1600;
  297. minSpeedThreshold = 0;
  298. maxSpeedThreshold = 2000;
  299. class AirTarget
  300. {
  301. minRange = 0;
  302. maxRange = 16000;
  303. objectDistanceLimitCoef = -1;
  304. viewDistanceLimitCoef = -1;
  305. };
  306. class GroundTarget
  307. {
  308. minRange = 0;
  309. maxRange = 16000;
  310. objectDistanceLimitCoef = -1;
  311. viewDistanceLimitCoef = -1;
  312. };
  313. };
  314. };
  315. };
  316. class VehicleSystemsDisplayManagerComponentRight
  317. {
  318. componentType = "VehicleSystemsDisplayManager";
  319. defaultDisplay = "EmptyDisplay";
  320. right = 1;
  321. x = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFORIGHT_X"", ((safezoneX + safezoneW) - ( (10 * ( ((safezoneW / safezoneH) min 1.2) / 40)) + 0.5 * ( ((safezoneW / safezoneH) min 1.2) / 40)))])";
  322. y = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFORIGHT_Y"", (safezoneY + safezoneH - 21 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25))])";
  323. class Components
  324. {
  325. class CrewDisplay
  326. {
  327. componentType = "CrewDisplayComponent";
  328. };
  329. class EmptyDisplay
  330. {
  331. componentType = "EmptyDisplayComponent";
  332. };
  333. class MineDetectorDisplay
  334. {
  335. componentType = "MineDetectorDisplayComponent";
  336. };
  337. class MinimapDisplay
  338. {
  339. componentType = "MinimapDisplayComponent";
  340. };
  341. class SlingLoadDisplay
  342. {
  343. componentType = "SlingLoadDisplayComponent";
  344. };
  345. class UAVDisplay
  346. {
  347. componentType = "UAVFeedDisplayComponent";
  348. };
  349. class VehicleCommanderDisplay
  350. {
  351. componentType = "TransportFeedDisplayComponent";
  352. source = "Commander";
  353. };
  354. class VehiclePrimaryGunnerDisplay
  355. {
  356. componentType = "TransportFeedDisplayComponent";
  357. source = "PrimaryGunner";
  358. };
  359. class SensorDisplay
  360. {
  361. componentType = "SensorsDisplayComponent";
  362. range[] = {32000,16000,8000,4000,2000};
  363. resource = "RscCustomInfoSensors";
  364. };
  365. };
  366. };
  367. class VehicleSystemsDisplayManagerComponentLeft
  368. {
  369. componentType = "VehicleSystemsDisplayManager";
  370. defaultDisplay = "EmptyDisplay";
  371. left = 1;
  372. x = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFOLEFT_X"", (safezoneX + 0.5 * ( ((safezoneW / safezoneH) min 1.2) / 40))])";
  373. y = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFOLEFT_Y"", (safezoneY + safezoneH - 21 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25))])";
  374. class Components
  375. {
  376. class CrewDisplay
  377. {
  378. componentType = "CrewDisplayComponent";
  379. };
  380. class EmptyDisplay
  381. {
  382. componentType = "EmptyDisplayComponent";
  383. };
  384. class MineDetectorDisplay
  385. {
  386. componentType = "MineDetectorDisplayComponent";
  387. };
  388. class MinimapDisplay
  389. {
  390. componentType = "MinimapDisplayComponent";
  391. };
  392. class SlingLoadDisplay
  393. {
  394. componentType = "SlingLoadDisplayComponent";
  395. };
  396. class UAVDisplay
  397. {
  398. componentType = "UAVFeedDisplayComponent";
  399. };
  400. class VehicleCommanderDisplay
  401. {
  402. componentType = "TransportFeedDisplayComponent";
  403. source = "Commander";
  404. };
  405. class VehiclePrimaryGunnerDisplay
  406. {
  407. componentType = "TransportFeedDisplayComponent";
  408. source = "PrimaryGunner";
  409. };
  410. class SensorDisplay
  411. {
  412. componentType = "SensorsDisplayComponent";
  413. range[] = {32000,16000,8000,4000,2000};
  414. resource = "RscCustomInfoSensors";
  415. };
  416. };
  417. };
  418. };
  419. class EventHandlers : DefaultEventhandlers {};
  420. };
  421. class macro_new_vehicle(warden_tank,field):macro_new_vehicle(warden_tank,mobile)
  422. {
  423. displayName = "Republic Overseer ASV Turbo";
  424. enginePower = 2400;
  425. gearBox[] = {-7,0,11,8,5.7,4.2};
  426. maxSpeed = 120;
  427. maxOmega = 500;
  428. peakTorque = 7400;
  429. torqueCurve[] = {[0.291667,0.540541],[0.416667,0.675676],[0.583333,0.810811],[0.666667,0.891892],[0.75,0.972973],[0.833333,1.02703],[0.916667,1],[1,0.945946]};
  430. engineMOI = 1;
  431. armor = 500;
  432. weapons[]={"SmokeLauncher"};
  433. magazines[]={"SmokeLauncherMag"};
  434. hiddenSelections[] = {"camo1", "camo2", "camo3", "camo4", "CamoNet"};
  435. hiddenSelectionsTextures[]=
  436. {
  437. "RD501_Vehicles\textures\warden\overseer_ext1_black_blue_co.paa",
  438. "RD501_Vehicles\textures\warden\overseer_ext2_black_blue_co.paa",
  439. "RD501_Vehicles\textures\warden\trebuchet_turret_mynock_co.paa",
  440. "RD501_Vehicles\textures\warden\overseer_ext3_black_blue_co.paa",
  441. "a3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  442. };
  443. };
  444. };