config.cpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(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 macro_patch_name(warden_tank)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(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 = "SWOP_Clonetrooper_P1";
  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_republic_faction
  71. editorSubcategory = macro_editor_cat(APC)
  72. vehicleClass = macro_editor_vehicle_type(APC)
  73. #include "../Mynock/common_stuff_mynock.hpp"
  74. class TransportItems
  75. {
  76. class _xx_ToolKit
  77. {
  78. name = "ToolKit";
  79. count = 4;
  80. };
  81. };
  82. author = "RD501";
  83. //faction = "RD501Faction";
  84. scope = 2;
  85. side = 1;
  86. hiddenSelections[] = {"camo1", "camo2", "camo3", "camo4", "CamoNet"};
  87. hiddenSelectionsTextures[]=
  88. {
  89. "RD501_Vehicles\textures\warden\overseer_ext1_cream_blue_co.paa",
  90. "RD501_Vehicles\textures\warden\overseer_ext2_cream_blue_co.paa",
  91. "RD501_Vehicles\textures\warden\overseer_turret_cream_co.paa",
  92. "RD501_Vehicles\textures\warden\overseer_ext3_cream_blue_co.paa",
  93. "a3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  94. };
  95. forceInGarage =1;
  96. class Turrets: Turrets
  97. {
  98. class MainTurret: MainTurret
  99. {
  100. weapons[] = {
  101. macro_basic_air_weapons,
  102. macro_new_weapon(generic,plasma_aircraft_cannon)
  103. };
  104. magazines[] = {
  105. macro_basic_air_mags,
  106. macro_new_mag(generic_aircraft_cannon_plasma_blue,1000),
  107. macro_new_mag(generic_aircraft_cannon_plasma_blue,1000)
  108. };
  109. };
  110. class CommanderOptics: CommanderOptics
  111. {
  112. };
  113. };
  114. class components: Components
  115. {
  116. class SensorsManagerComponent
  117. {
  118. class components
  119. {
  120. class IRSensorComponent: SensorTemplateIR
  121. {
  122. typeRecognitionDistance = 16000;
  123. angleRangeHorizontal = 360;
  124. angleRangeVertical = 360;
  125. groundNoiseDistanceCoef = -1;
  126. maxGroundNoiseDistance = 1600;
  127. minSpeedThreshold = 0;
  128. maxSpeedThreshold = 2000;
  129. maxFogSeeThrough= -1;
  130. nightRangeCoef = 1;
  131. class AirTarget
  132. {
  133. minRange = 0;
  134. maxRange = 16000;
  135. objectDistanceLimitCoef = -1;
  136. viewDistanceLimitCoef = -1;
  137. maxFogSeeThrough= -1;
  138. nightRangeCoef = 1;
  139. };
  140. class GroundTarget
  141. {
  142. minRange = 0;
  143. maxRange = 16000;
  144. objectDistanceLimitCoef = -1;
  145. viewDistanceLimitCoef = -1;
  146. maxFogSeeThrough= -1;
  147. nightRangeCoef = 1;
  148. };
  149. };
  150. class NVSensorComponent: SensorTemplateNV
  151. {
  152. typeRecognitionDistance = 16000;
  153. angleRangeHorizontal = 360;
  154. angleRangeVertical = 360;
  155. groundNoiseDistanceCoef = -1;
  156. maxGroundNoiseDistance = 1600;
  157. minSpeedThreshold = 0;
  158. maxSpeedThreshold = 2000;
  159. class AirTarget
  160. {
  161. minRange = 0;
  162. maxRange = 16000;
  163. objectDistanceLimitCoef = -1;
  164. viewDistanceLimitCoef = -1;
  165. };
  166. class GroundTarget
  167. {
  168. minRange = 0;
  169. maxRange = 16000;
  170. objectDistanceLimitCoef = -1;
  171. viewDistanceLimitCoef = -1;
  172. };
  173. };
  174. class LaserSensorComponent: SensorTemplateLaser
  175. {
  176. typeRecognitionDistance = 16000;
  177. angleRangeHorizontal = 360;
  178. angleRangeVertical = 360;
  179. groundNoiseDistanceCoef = -1;
  180. maxGroundNoiseDistance = 1600;
  181. minSpeedThreshold = 0;
  182. maxSpeedThreshold = 2000;
  183. class AirTarget
  184. {
  185. minRange = 0;
  186. maxRange = 16000;
  187. objectDistanceLimitCoef = -1;
  188. viewDistanceLimitCoef = -1;
  189. };
  190. class GroundTarget
  191. {
  192. minRange = 0;
  193. maxRange = 16000;
  194. objectDistanceLimitCoef = -1;
  195. viewDistanceLimitCoef = -1;
  196. };
  197. };
  198. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  199. {
  200. typeRecognitionDistance = 16000;
  201. angleRangeHorizontal = 360;
  202. angleRangeVertical = 360;
  203. groundNoiseDistanceCoef = -1;
  204. maxGroundNoiseDistance = 1600;
  205. minSpeedThreshold = 0;
  206. maxSpeedThreshold = 2000;
  207. class AirTarget
  208. {
  209. minRange = 0;
  210. maxRange = 16000;
  211. objectDistanceLimitCoef = -1;
  212. viewDistanceLimitCoef = -1;
  213. };
  214. class GroundTarget
  215. {
  216. minRange = 0;
  217. maxRange = 16000;
  218. objectDistanceLimitCoef = -1;
  219. viewDistanceLimitCoef = -1;
  220. };
  221. };
  222. class PassiveRadarSensorComponent: SensorTemplatePassiveRadar
  223. {
  224. typeRecognitionDistance = 16000;
  225. angleRangeHorizontal = 360;
  226. angleRangeVertical = 360;
  227. groundNoiseDistanceCoef = -1;
  228. maxGroundNoiseDistance = 1600;
  229. minSpeedThreshold = 0;
  230. maxSpeedThreshold = 2000;
  231. class AirTarget
  232. {
  233. minRange = 0;
  234. maxRange = 16000;
  235. objectDistanceLimitCoef = -1;
  236. viewDistanceLimitCoef = -1;
  237. };
  238. class GroundTarget
  239. {
  240. minRange = 0;
  241. maxRange = 16000;
  242. objectDistanceLimitCoef = -1;
  243. viewDistanceLimitCoef = -1;
  244. };
  245. };
  246. class VisualSensorComponent: SensorTemplateVisual
  247. {
  248. typeRecognitionDistance = 16000;
  249. angleRangeHorizontal = 360;
  250. angleRangeVertical = 360;
  251. groundNoiseDistanceCoef = -1;
  252. maxGroundNoiseDistance = 1600;
  253. minSpeedThreshold = 0;
  254. maxSpeedThreshold = 2000;
  255. class AirTarget
  256. {
  257. minRange = 0;
  258. maxRange = 16000;
  259. objectDistanceLimitCoef = -1;
  260. viewDistanceLimitCoef = -1;
  261. };
  262. class GroundTarget
  263. {
  264. minRange = 0;
  265. maxRange = 16000;
  266. objectDistanceLimitCoef = -1;
  267. viewDistanceLimitCoef = -1;
  268. };
  269. };
  270. class ManSensorComponent: SensorTemplateMan
  271. {
  272. typeRecognitionDistance = 16000;
  273. angleRangeHorizontal = 360;
  274. angleRangeVertical = 360;
  275. groundNoiseDistanceCoef = -1;
  276. maxGroundNoiseDistance = 1600;
  277. minSpeedThreshold = 0;
  278. maxSpeedThreshold = 2000;
  279. class AirTarget
  280. {
  281. minRange = 0;
  282. maxRange = 16000;
  283. objectDistanceLimitCoef = -1;
  284. viewDistanceLimitCoef = -1;
  285. };
  286. class GroundTarget
  287. {
  288. minRange = 0;
  289. maxRange = 16000;
  290. objectDistanceLimitCoef = -1;
  291. viewDistanceLimitCoef = -1;
  292. };
  293. };
  294. class DataLinkSensorComponent: SensorTemplateDataLink
  295. {
  296. typeRecognitionDistance = 16000;
  297. angleRangeHorizontal = 360;
  298. angleRangeVertical = 360;
  299. groundNoiseDistanceCoef = -1;
  300. maxGroundNoiseDistance = 1600;
  301. minSpeedThreshold = 0;
  302. maxSpeedThreshold = 2000;
  303. class AirTarget
  304. {
  305. minRange = 0;
  306. maxRange = 16000;
  307. objectDistanceLimitCoef = -1;
  308. viewDistanceLimitCoef = -1;
  309. };
  310. class GroundTarget
  311. {
  312. minRange = 0;
  313. maxRange = 16000;
  314. objectDistanceLimitCoef = -1;
  315. viewDistanceLimitCoef = -1;
  316. };
  317. };
  318. };
  319. };
  320. class VehicleSystemsDisplayManagerComponentRight
  321. {
  322. componentType = "VehicleSystemsDisplayManager";
  323. defaultDisplay = "EmptyDisplay";
  324. right = 1;
  325. x = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFORIGHT_X"", ((safezoneX + safezoneW) - ( (10 * ( ((safezoneW / safezoneH) min 1.2) / 40)) + 0.5 * ( ((safezoneW / safezoneH) min 1.2) / 40)))])";
  326. y = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFORIGHT_Y"", (safezoneY + safezoneH - 21 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25))])";
  327. class Components
  328. {
  329. class CrewDisplay
  330. {
  331. componentType = "CrewDisplayComponent";
  332. };
  333. class EmptyDisplay
  334. {
  335. componentType = "EmptyDisplayComponent";
  336. };
  337. class MineDetectorDisplay
  338. {
  339. componentType = "MineDetectorDisplayComponent";
  340. };
  341. class MinimapDisplay
  342. {
  343. componentType = "MinimapDisplayComponent";
  344. };
  345. class SlingLoadDisplay
  346. {
  347. componentType = "SlingLoadDisplayComponent";
  348. };
  349. class UAVDisplay
  350. {
  351. componentType = "UAVFeedDisplayComponent";
  352. };
  353. class VehicleCommanderDisplay
  354. {
  355. componentType = "TransportFeedDisplayComponent";
  356. source = "Commander";
  357. };
  358. class VehiclePrimaryGunnerDisplay
  359. {
  360. componentType = "TransportFeedDisplayComponent";
  361. source = "PrimaryGunner";
  362. };
  363. class SensorDisplay
  364. {
  365. componentType = "SensorsDisplayComponent";
  366. range[] = {32000,16000,8000,4000,2000};
  367. resource = "RscCustomInfoSensors";
  368. };
  369. };
  370. };
  371. class VehicleSystemsDisplayManagerComponentLeft
  372. {
  373. componentType = "VehicleSystemsDisplayManager";
  374. defaultDisplay = "EmptyDisplay";
  375. left = 1;
  376. x = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFOLEFT_X"", (safezoneX + 0.5 * ( ((safezoneW / safezoneH) min 1.2) / 40))])";
  377. y = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFOLEFT_Y"", (safezoneY + safezoneH - 21 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25))])";
  378. class Components
  379. {
  380. class CrewDisplay
  381. {
  382. componentType = "CrewDisplayComponent";
  383. };
  384. class EmptyDisplay
  385. {
  386. componentType = "EmptyDisplayComponent";
  387. };
  388. class MineDetectorDisplay
  389. {
  390. componentType = "MineDetectorDisplayComponent";
  391. };
  392. class MinimapDisplay
  393. {
  394. componentType = "MinimapDisplayComponent";
  395. };
  396. class SlingLoadDisplay
  397. {
  398. componentType = "SlingLoadDisplayComponent";
  399. };
  400. class UAVDisplay
  401. {
  402. componentType = "UAVFeedDisplayComponent";
  403. };
  404. class VehicleCommanderDisplay
  405. {
  406. componentType = "TransportFeedDisplayComponent";
  407. source = "Commander";
  408. };
  409. class VehiclePrimaryGunnerDisplay
  410. {
  411. componentType = "TransportFeedDisplayComponent";
  412. source = "PrimaryGunner";
  413. };
  414. class SensorDisplay
  415. {
  416. componentType = "SensorsDisplayComponent";
  417. range[] = {32000,16000,8000,4000,2000};
  418. resource = "RscCustomInfoSensors";
  419. };
  420. };
  421. };
  422. };
  423. class EventHandlers : DefaultEventhandlers {};
  424. };
  425. class macro_new_vehicle(warden_tank,field):macro_new_vehicle(warden_tank,mobile)
  426. {
  427. displayName = "Republic Overseer ASV Turbo";
  428. enginePower = 2400;
  429. gearBox[] = {-7,0,11,8,5.7,4.2};
  430. maxSpeed = 120;
  431. maxOmega = 500;
  432. peakTorque = 7400;
  433. 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]};
  434. engineMOI = 1;
  435. armor = 100;
  436. hiddenSelections[] = {"camo1", "camo2", "camo3", "camo4", "CamoNet"};
  437. hiddenSelectionsTextures[]=
  438. {
  439. "RD501_Vehicles\textures\warden\overseer_ext1_black_blue_co.paa",
  440. "RD501_Vehicles\textures\warden\overseer_ext2_black_blue_co.paa",
  441. "RD501_Vehicles\textures\warden\trebuchet_turret_mynock_co.paa",
  442. "RD501_Vehicles\textures\warden\overseer_ext3_black_blue_co.paa",
  443. "a3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  444. };
  445. }
  446. };