config.cpp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. #include "../../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_gat
  5. {
  6. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  7. requiredAddons[]=
  8. {
  9. RD501_patch_vehicles
  10. };
  11. requiredVersion=0.1;
  12. units[]=
  13. {
  14. macro_new_vehicle(cis,gat),
  15. macro_new_vehicle(cis,gat_tan),
  16. macro_new_vehicle(cis,gat_olive),
  17. macro_new_vehicle(cis,gat_urban),
  18. macro_new_vehicle(cis,gat_aa),
  19. macro_new_vehicle(cis,gat_aa_tan),
  20. macro_new_vehicle(cis,gat_aa_olive),
  21. macro_new_vehicle(cis,gat_aa_urban)
  22. };
  23. weapons[]=
  24. {
  25. };
  26. };
  27. };
  28. /////////////Radar classes////////////
  29. class SensorTemplatePassiveRadar;
  30. class SensorTemplateAntiRadiation;
  31. class SensorTemplateActiveRadar;
  32. class SensorTemplateIR;
  33. class SensorTemplateVisual;
  34. class SensorTemplateMan;
  35. class SensorTemplateLaser;
  36. class SensorTemplateNV;
  37. class SensorTemplateDataLink;
  38. class DefaultVehicleSystemsDisplayManagerLeft
  39. {
  40. class components;
  41. };
  42. class DefaultVehicleSystemsDisplayManagerRight
  43. {
  44. class components;
  45. };
  46. class VehicleSystemsTemplateLeftDriver: DefaultVehicleSystemsDisplayManagerLeft
  47. {
  48. class components;
  49. };
  50. class VehicleSystemsTemplateRightDriver: DefaultVehicleSystemsDisplayManagerRight
  51. {
  52. class components;
  53. };
  54. class VehicleSystemsTemplateLeftCommander: DefaultVehicleSystemsDisplayManagerLeft
  55. {
  56. class components;
  57. };
  58. class VehicleSystemsTemplateRightCommander: DefaultVehicleSystemsDisplayManagerRight
  59. {
  60. class components;
  61. };
  62. class VehicleSystemsTemplateLeftGunner: DefaultVehicleSystemsDisplayManagerLeft
  63. {
  64. class components;
  65. };
  66. class VehicleSystemsTemplateRightGunner: DefaultVehicleSystemsDisplayManagerRight
  67. {
  68. class components;
  69. };
  70. class CfgVehicles
  71. {
  72. class LandVehicle;
  73. class Tank: LandVehicle
  74. {
  75. class NewTurret;
  76. class HitPoints;
  77. };
  78. class Tank_F: Tank
  79. {
  80. class Turrets
  81. {
  82. class MainTurret: NewTurret
  83. {};
  84. };
  85. class HitPoints: HitPoints
  86. {
  87. class HitHull;
  88. class HitFuel;
  89. class HitEngine;
  90. class HitLTrack;
  91. class HitRTrack;
  92. };
  93. };
  94. class 3AS_GAT_base_F:Tank_F
  95. {
  96. class Components;
  97. class Turrets: Turrets
  98. {
  99. class MainTurret: MainTurret
  100. {
  101. };
  102. };
  103. class HitPoints: HitPoints
  104. {
  105. class HitHull:HitHull{};
  106. class HitFuel:HitFuel{};
  107. class HitEngine:HitEngine{};
  108. class HitLTrack:HitLTrack{};
  109. class HitRTrack:HitRTrack{};
  110. };
  111. };
  112. class macro_new_vehicle(cis,gat):3AS_GAT_base_F
  113. {
  114. scope = 2;
  115. armor = 700;
  116. armorStructural = 4;
  117. displayName = "CIS GAT";
  118. crew = MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  119. side = 0;
  120. faction = MACRO_QUOTE(macro_faction(CIS));
  121. editorSubcategory = MACRO_QUOTE(macro_editor_cat(tank));
  122. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(tank));
  123. scopeCurator = 2;
  124. forceInGarage = 1;
  125. class Turrets: Turrets
  126. {
  127. class MainTurret: MainTurret
  128. {
  129. weapons[]=
  130. {
  131. macro_new_weapon(aat_cannon,mbt),
  132. "SmokeLauncher"
  133. };
  134. magazines[]=
  135. {
  136. macro_new_mag(aat_mbt,50),
  137. macro_new_mag(aat_mbt,50),
  138. "SmokeLauncherMag"
  139. };
  140. };
  141. };
  142. class HitPoints: HitPoints
  143. {
  144. class HitHull: HitHull { // Handle internal damage
  145. armor=4.5;
  146. material=-1;
  147. name="telo";
  148. visual="zbytek";
  149. passThrough=1;
  150. minimalHit = 0.2;
  151. explosionShielding = 0.2;
  152. radius = 0.12;
  153. };
  154. class HitEngine: HitEngine {
  155. armor=0.75;
  156. material=-1;
  157. name="motor";
  158. passThrough=0.2;
  159. minimalHit = 0.2;
  160. explosionShielding = 0.2;
  161. radius = 0.33;
  162. };
  163. class HitLTrack: HitLTrack {
  164. armor=0.5;
  165. material=-1;
  166. name="track_l_hit";
  167. passThrough=0;
  168. minimalHit = 0.08;
  169. explosionShielding = 1.44;
  170. radius = 0.3;
  171. };
  172. class HitRTrack: HitRTrack {
  173. armor=0.5;
  174. material=-1;
  175. name="track_r_hit";
  176. passThrough=0;
  177. minimalHit = 0.08;
  178. explosionShielding = 1.44;
  179. radius = 0.3;
  180. };
  181. class HitFuel: HitFuel
  182. {
  183. armor = 1.5;
  184. material = -1;
  185. name = "palivo";
  186. passThrough = 0.1;
  187. minimalHit = 0.1;
  188. explosionShielding = 0.6;
  189. radius = 0.25;
  190. };
  191. };
  192. };
  193. class macro_new_vehicle(cis,gat_tan): macro_new_vehicle(cis,gat)
  194. {
  195. displayname="CIS GAT (Tan)";
  196. hiddenSelections[]=
  197. {
  198. "camo1",
  199. "camo2"
  200. };
  201. hiddenSelectionstextures[]=
  202. {
  203. "3AS\3AS_gat\data\Olive\hull_CO.paa",
  204. "3AS\3AS_gat\data\Olive\weapons_CO.paa"
  205. };
  206. editorPreview="3as\3as_gat\images\3AS_GAT_tan.jpg";
  207. accuracy=1000;
  208. };
  209. class macro_new_vehicle(cis,gat_olive): macro_new_vehicle(cis,gat)
  210. {
  211. displayname="CIS GAT (Olive)";
  212. hiddenSelections[]=
  213. {
  214. "camo1",
  215. "camo2"
  216. };
  217. hiddenSelectionstextures[]=
  218. {
  219. "3AS\3AS_GAT\data\Olive\hull_CO.paa",
  220. "3AS\3AS_GAT\data\Light_Tank\OLIVE\weapons_CO.paa"
  221. };
  222. editorPreview="3as\3as_gat\images\3AS_GAT_tan.jpg";
  223. accuracy=1000;
  224. };
  225. class macro_new_vehicle(cis,gat_urban): macro_new_vehicle(cis,gat)
  226. {
  227. displayname="CIS GAT (Urban)";
  228. hiddenSelections[]=
  229. {
  230. "camo1",
  231. "camo2"
  232. };
  233. hiddenSelectionstextures[]=
  234. {
  235. "3AS\3AS_gat\data\hull_CO.paa",
  236. "3AS\3AS_gat\data\weapons_CO.paa"
  237. };
  238. editorPreview="3as\3as_gat\images\3AS_GAT_tan.jpg";
  239. accuracy=1000;
  240. };
  241. class 3AS_GAT_Light_Base: 3AS_GAT_base_F
  242. {
  243. class Turrets: Turrets
  244. {
  245. class MainTurret: MainTurret
  246. {
  247. };
  248. };
  249. class HitPoints: HitPoints
  250. {
  251. class HitHull:HitHull{};
  252. class HitFuel:HitFuel{};
  253. class HitEngine:HitEngine{};
  254. class HitLTrack:HitLTrack{};
  255. class HitRTrack:HitRTrack{};
  256. };
  257. };
  258. class macro_new_vehicle(cis,gat_aa):3AS_GAT_Light_Base
  259. {
  260. scope=2;
  261. armor = 700;
  262. displayName = "CIS GAT AA";
  263. crew = MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  264. side = 0;
  265. faction = MACRO_QUOTE(macro_faction(CIS));
  266. editorSubcategory = MACRO_QUOTE(macro_editor_cat(AA));
  267. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(AA));
  268. scopeCurator = 2;
  269. forceInGarage = 1;
  270. irScanGround = 0;
  271. irScanRangeMax = 10000;
  272. irScanRangeMin = 200;
  273. irScanToEyeFactor = 2;
  274. irTarget = 1;
  275. irTargetSize = 1.2;
  276. class HitPoints: HitPoints
  277. {
  278. class HitHull: HitHull { // Handle internal damage
  279. armor=4.5;
  280. material=-1;
  281. name="telo";
  282. visual="zbytek";
  283. passThrough=1;
  284. minimalHit = 0.2;
  285. explosionShielding = 0.2;
  286. radius = 0.12;
  287. };
  288. class HitEngine: HitEngine {
  289. armor=0.75;
  290. material=-1;
  291. name="motor";
  292. passThrough=0.2;
  293. minimalHit = 0.2;
  294. explosionShielding = 0.2;
  295. radius = 0.33;
  296. };
  297. class HitLTrack: HitLTrack {
  298. armor=0.5;
  299. material=-1;
  300. name="track_l_hit";
  301. passThrough=0;
  302. minimalHit = 0.08;
  303. explosionShielding = 1.44;
  304. radius = 0.3;
  305. };
  306. class HitRTrack: HitRTrack {
  307. armor=0.5;
  308. material=-1;
  309. name="track_r_hit";
  310. passThrough=0;
  311. minimalHit = 0.08;
  312. explosionShielding = 1.44;
  313. radius = 0.3;
  314. };
  315. class HitFuel: HitFuel
  316. {
  317. armor = 1.5;
  318. material = -1;
  319. name = "palivo";
  320. passThrough = 0.1;
  321. minimalHit = 0.1;
  322. explosionShielding = 0.6;
  323. radius = 0.25;
  324. };
  325. };
  326. /*class Components: Components
  327. {
  328. class SensorsManagerComponent
  329. {
  330. class Components
  331. {
  332. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  333. {
  334. class AirTarget
  335. {
  336. minRange=9000;
  337. maxRange=9000;
  338. objectDistanceLimitCoef=-1;
  339. viewDistanceLimitCoef=-1;
  340. };
  341. class GroundTarget
  342. {
  343. minRange=6000;
  344. maxRange=6000;
  345. objectDistanceLimitCoef=-1;
  346. viewDistanceLimitCoef=-1;
  347. };
  348. typeRecognitionDistance=6000;
  349. angleRangeHorizontal=360;
  350. angleRangeVertical=100;
  351. aimDown=-45;
  352. maxTrackableSpeed=694.44397;
  353. };
  354. class DataLinkSensorComponent: SensorTemplateDataLink
  355. {
  356. };
  357. };
  358. };
  359. };*/
  360. class Turrets: Turrets
  361. {
  362. class MainTurret: MainTurret
  363. {
  364. maxElev = 60;
  365. canUseScanner = 1;
  366. turretInfoType="RscOptics_APC_Tracked_01_gunner";
  367. memoryPointGun[]=
  368. {
  369. "z_gunL_muzzle",
  370. "z_gunR_muzzle",
  371. "z_gunL_muzzle_2",
  372. "z_gunr_muzzle_2"
  373. };
  374. weapons[] =
  375. {
  376. macro_new_weapon(generic,preatorian_gun_opfor),
  377. //macro_new_weapon(wynd,a2a)
  378. };
  379. magazines[] =
  380. {
  381. //macro_new_mag(a2a,4),
  382. //macro_new_mag(a2a,4),
  383. macro_new_mag(generic_aircraft_gun_preatorian,1000),
  384. macro_new_mag(generic_aircraft_gun_preatorian,1000),
  385. macro_new_mag(generic_aircraft_gun_preatorian,1000),
  386. macro_new_mag(generic_aircraft_gun_preatorian,1000),
  387. macro_new_mag(generic_aircraft_gun_preatorian,1000),
  388. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  389. };
  390. /*class Components
  391. {
  392. class VehicleSystemsDisplayManagerComponentLeft: VehicleSystemsTemplateLeftGunner
  393. {
  394. class Components: components
  395. {
  396. class SensorDisplay
  397. {
  398. componentType="SensorsDisplayComponent";
  399. range[]={16000,8000,4000,2000};
  400. resource="RscCustomInfoSensors";
  401. };
  402. };
  403. };
  404. class VehicleSystemsDisplayManagerComponentRight: VehicleSystemsTemplateRightGunner
  405. {
  406. defaultDisplay="SensorDisplay";
  407. class Components: components
  408. {
  409. class SensorDisplay
  410. {
  411. componentType="SensorsDisplayComponent";
  412. range[]={16000,8000,4000,2000};
  413. resource="RscCustomInfoSensors";
  414. };
  415. };
  416. };
  417. };*/
  418. };
  419. };
  420. };
  421. class macro_new_vehicle(cis,gat_aa_tan): macro_new_vehicle(cis,gat_aa)
  422. {
  423. displayname="CIS GAT AA (Tan)";
  424. hiddenSelections[]=
  425. {
  426. "camo1",
  427. "camo2"
  428. };
  429. hiddenSelectionstextures[]=
  430. {
  431. "3AS\3AS_gat\data\Olive\hull_CO.paa",
  432. "3AS\3AS_GAT\data\Light_Tank\Olive\weapons_CO.paa"
  433. };
  434. editorPreview="3as\3as_gat\images\3AS_GAT_Light_tan.jpg";
  435. accuracy=1000;
  436. };
  437. class macro_new_vehicle(cis,gat_aa_olive): macro_new_vehicle(cis,gat_aa)
  438. {
  439. displayname="CIS GAT AA (Olive)";
  440. hiddenSelections[]=
  441. {
  442. "camo1",
  443. "camo2"
  444. };
  445. editorPreview="3as\3as_gat\images\3AS_GAT_Light_olive.jpg";
  446. hiddenSelectionstextures[]=
  447. {
  448. "3AS\3AS_GAT\data\Olive\hull_CO.paa",
  449. "3AS\3AS_GAT\data\Light_Tank\OLIVE\weapons_CO.paa"
  450. };
  451. accuracy=1000;
  452. };
  453. class macro_new_vehicle(cis,gat_aa_urban): macro_new_vehicle(cis,gat_aa)
  454. {
  455. displayname="CIS GAT AA (Urban)";
  456. hiddenSelections[]=
  457. {
  458. "camo1",
  459. "camo2"
  460. };
  461. editorPreview="3as\3as_gat\images\3AS_GAT_Light_urban.jpg";
  462. hiddenSelectionstextures[]=
  463. {
  464. "3AS\3AS_gat\data\hull_CO.paa",
  465. "3AS\3AS_GAT\data\Light_Tank\CIS\weapons_CO.paa"
  466. };
  467. accuracy=1000;
  468. };
  469. };