config.cpp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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 ATTE
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_atte_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(ATTE)
  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(ATTE,MkII),
  23. //macro_new_vehicle(ATTE,uav_MkII),
  24. macro_new_vehicle(turret_ATTE,Stomper),
  25. macro_new_vehicle(turret_ATTE,Front_Left_UAV),
  26. macro_new_vehicle(turret_ATTE,Front_Right_UAV),
  27. macro_new_vehicle(turret_ATTE,Rear_UAV),
  28. macro_new_vehicle(atte_itt,cabin)
  29. };
  30. weapons[]=
  31. {
  32. };
  33. };
  34. };
  35. #include "../../common/sensor_templates.hpp"
  36. class DefaultEventhandlers;
  37. class CfgVehicles
  38. {
  39. class StaticWeapon;
  40. class StaticCannon:StaticWeapon
  41. {
  42. class Turrets;
  43. class HitPoints;
  44. };
  45. class Republic_ATTE:StaticCannon
  46. {
  47. scope=0;
  48. class EventHandlers;
  49. class Turrets:Turrets
  50. {
  51. class MainTurret;
  52. class CargoTurret_01;
  53. };
  54. class HitPoints
  55. {
  56. class HitGun;
  57. class HitTurret;
  58. };
  59. };
  60. class macro_new_vehicle(ATTE,MkII):Republic_ATTE
  61. {
  62. scope=2
  63. forceInGarage = 1;
  64. displayName = "AT-TE Mk.II";
  65. class EventHandlers: DefaultEventhandlers {};
  66. slingLoadCargoMemoryPoints[] = {"SlingLoadCargo1", "SlingLoadCargo2", "SlingLoadCargo3", "SlingLoadCargo4"};
  67. supplyRadius = 40;
  68. faction = macro_republic_faction
  69. editorSubcategory = macro_editor_cat(Tank)
  70. vehicleClass = macro_editor_vehicle_type(Tank)
  71. armor = 700;
  72. armorStructural = 4;
  73. armorLights = 4;
  74. class Turrets: Turrets
  75. {
  76. class MainTurret: MainTurret
  77. {
  78. optics = 1;
  79. discreteDistance[] = {100, 200, 300, 400, 600, 800, 1000, 1200, 1500};
  80. discreteDistanceInitIndex = 2;
  81. gunnerOpticsModel = "\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  82. minTurn = -180;
  83. maxTurn = 180;
  84. minelev = -5;
  85. maxelev = 17;
  86. initTurn = 0;
  87. initelev = 0;
  88. startEngine = 0;
  89. turretinfotype = "RscOptics_APC_Tracked_01_gunner";
  90. ejectDeadGunner = 0;
  91. gunnerHasFlares = 1;
  92. hideProxyInCombat = 0;
  93. stabilizedInAxes = 3;
  94. maxHorizontalRotSpeed = 1//0.5;
  95. maxVerticalRotSpeed = 1//0.5;
  96. gunnerCompartments = "Compartment2";
  97. memoryPointGun[] = {"cannon1"};
  98. class OpticsIn
  99. {
  100. class Wide
  101. {
  102. opticsDisplayName = "W";
  103. initAngleX = 0;
  104. minAngleX = 0;
  105. maxAngleX = 40;
  106. initAngleY = 0;
  107. minAngleY = -20;
  108. maxAngleY = 20;
  109. initFov = 0.466;
  110. minFov = 0.466;
  111. maxFov = 0.466;
  112. visionMode[] = {"Normal", "NVG", "Ti"};
  113. thermalMode[] = {0, 1};
  114. gunnerOpticsModel = "\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  115. };
  116. class Medium: Wide
  117. {
  118. opticsDisplayName = "M";
  119. initFov = 0.093;
  120. minFov = 0.093;
  121. maxFov = 0.093;
  122. gunnerOpticsModel = "\A3\weapons_f\reticle\Optics_Gunner_AAA_01_m_F";
  123. };
  124. class Narrow: Wide
  125. {
  126. opticsDisplayName = "N";
  127. gunnerOpticsModel = "\A3\weapons_f\reticle\Optics_Gunner_AAA_01_n_F";
  128. initFov = 0.029;
  129. minFov = 0.029;
  130. maxFov = 0.029;
  131. };
  132. };
  133. weapons[] = {"Laserdesignator_pilotCamera",macro_new_weapon(atte,mbt)};
  134. magazines[] =
  135. {
  136. macro_new_mag(atte_mbt,10),
  137. macro_new_mag(atte_mbt,10),
  138. macro_new_mag(atte_mbt,10),
  139. macro_new_mag(atte_mbt,10),
  140. macro_new_mag(atte_mbt,10),
  141. "Laserbatteries"
  142. };
  143. };
  144. class CargoTurret_01: CargoTurret_01
  145. {
  146. };
  147. };
  148. class HitPoints:HitPoints
  149. {
  150. class HitGun:HitGun
  151. {
  152. armor = 4;//0.9;
  153. material = -1;
  154. name = "gun";
  155. visual = "autonomous_unhide";
  156. passThrough = 0;
  157. radius = 0.2;
  158. };
  159. class HitTurret: HitTurret
  160. {
  161. armor = 5;//0.3;
  162. };
  163. };
  164. };
  165. class UGV_01_base_F;
  166. class UGV_01_rcws_base_F:UGV_01_base_F
  167. {
  168. class Turrets;
  169. };
  170. class B_UGV_01_rcws_F:UGV_01_rcws_base_F
  171. {
  172. class Turrets:Turrets
  173. {
  174. class MainTurret;
  175. };
  176. };
  177. class macro_new_vehicle(turret_ATTE,Stomper) : B_UGV_01_rcws_F
  178. {
  179. Scope = 2;
  180. displayname = "AT-TE (Moveable)";
  181. maxSpeed = 30;
  182. armor=9999999;
  183. faction = macro_republic_faction
  184. editorSubcategory = macro_editor_cat(Tank)
  185. vehicleClass = macro_editor_vehicle_type(Tank)
  186. hiddenSelectionsTextures[] = {
  187. "",//"\A3\Drones_F\soft_f_gamma\UGV_01\data\UGV_01_ext_co.paa",
  188. "",//"\A3\Drones_F\soft_f_gamma\UGV_01\data\UGV_01_int_co.paa",
  189. ""//"\A3\Data_F\Vehicles\Turret_co.paa"
  190. };
  191. icon = "\SW_Droides_2\ATTE\ATTE128_ca.paa";
  192. class Turrets:Turrets
  193. {
  194. class MainTurret:MainTurret
  195. {
  196. weapons[] = {"SmokeLauncher", "Laserdesignator_mounted"};
  197. magazines[] = {
  198. "Laserbatteries",
  199. "smokelaunchermag",
  200. "smokelaunchermag",
  201. "smokelaunchermag",
  202. "smokelaunchermag",
  203. "smokelaunchermag",
  204. "smokelaunchermag",
  205. "smokelaunchermag",
  206. "smokelaunchermag"
  207. };
  208. };
  209. };
  210. };
  211. class HMG_01_base_F;
  212. class HMG_01_A_base_F:HMG_01_base_F
  213. {
  214. class Turrets;
  215. };
  216. class B_HMG_01_A_F:HMG_01_A_base_F
  217. {
  218. class Turrets: Turrets
  219. {
  220. class MainTurret;
  221. };
  222. }
  223. class macro_new_vehicle(turret_ATTE,Front_Left_UAV):B_HMG_01_A_F
  224. {
  225. Scope = 2;
  226. displayname = "AT-TE Gun Front Left";
  227. armor = 300;
  228. class Turrets: Turrets
  229. {
  230. class MainTurret: MainTurret
  231. {
  232. weapons[] = {
  233. "Laserdesignator_mounted",
  234. "Cannon_LAAT"
  235. };
  236. magazines[] = {
  237. "Laserbatteries",
  238. "1000Rnd_Laser_Cannon_LAAT",
  239. "1000Rnd_Laser_Cannon_LAAT",
  240. "1000Rnd_Laser_Cannon_LAAT",
  241. "1000Rnd_Laser_Cannon_LAAT"
  242. };
  243. };
  244. };
  245. };
  246. class macro_new_vehicle(turret_ATTE,Front_Right_UAV):macro_new_vehicle(turret_ATTE,Front_Left_UAV)
  247. {
  248. Scope = 2;
  249. displayname = "AT-TE Gun Front Right";
  250. armor = 300;
  251. };
  252. class macro_new_vehicle(turret_ATTE,Rear_UAV):macro_new_vehicle(turret_ATTE,Front_Left_UAV)
  253. {
  254. Scope = 2;
  255. displayname = "AT-TE Gun Rear";
  256. armor = 300;
  257. };
  258. class O_SWOP_HoverTa_2;
  259. class macro_new_vehicle(atte_itt,cabin):O_SWOP_HoverTa_2
  260. {
  261. Scope = 2;
  262. displayname = "AT-TE Cabin ITT";
  263. armor = 300;
  264. hiddenSelections[] = {"Camo1"};
  265. hiddenSelectionsTextures[] = {""};
  266. author= "RD501"
  267. crew = "SWOP_Clonetrooper_P1";
  268. };
  269. };