config.cpp 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. //get generlized macros
  2. #include "../../../RD501_main/config_macros.hpp"
  3. class CfgPatches
  4. {
  5. class RD501_patch_static_cis
  6. {
  7. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  8. requiredAddons[]=
  9. {
  10. RD501_patch_vehicles
  11. };
  12. requiredVersion=0.1;
  13. units[]=
  14. {
  15. macro_new_vehicle(field_cannon,cis),
  16. macro_new_vehicle(field_repeater,cis),
  17. macro_new_vehicle(mortar,cis)
  18. };
  19. weapons[]=
  20. {
  21. };
  22. };
  23. };
  24. class CfgVehicles
  25. {
  26. class Land;
  27. class LandVehicle: Land
  28. {
  29. class ViewPilot;
  30. class ViewGunner;
  31. class NewTurret;
  32. };
  33. class StaticWeapon: LandVehicle
  34. {
  35. class Turrets
  36. {
  37. class MainTurret;
  38. };
  39. };
  40. class StaticMGWeapon: StaticWeapon
  41. {
  42. class Turrets: Turrets
  43. {
  44. class MainTurret: MainTurret
  45. {};
  46. };
  47. };
  48. class 3AS_FieldCannon_Base: StaticMGWeapon
  49. {
  50. class Turrets: Turrets
  51. {
  52. class MainTurret: MainTurret
  53. {
  54. };
  55. };
  56. };
  57. class macro_new_vehicle(field_cannon,cis):3AS_FieldCannon_Base
  58. {
  59. author = "RD501";
  60. scope = 2;
  61. side = 0;
  62. displayname = "CIS Field Cannon";
  63. scopeCurator = 2;
  64. crew=MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  65. faction = MACRO_QUOTE(macro_faction(CIS));
  66. editorSubcategory = MACRO_QUOTE(macro_editor_cat(turrets));
  67. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(turrets));
  68. ace_dragging_canCarry = 0;
  69. ace_dragging_canDrag = 0;
  70. class Turrets: Turrets
  71. {
  72. class MainTurret: MainTurret
  73. {
  74. weapons[] =
  75. {
  76. macro_new_weapon(mynock_cannon,mbt)
  77. };
  78. magazines[] =
  79. {
  80. macro_new_mag(mynock_mbt_ap,12),
  81. macro_new_mag(mynock_mbt_he,12),
  82. macro_new_mag(mynock_mbt_ap,12),
  83. macro_new_mag(mynock_mbt_he,12)
  84. };
  85. };
  86. };
  87. destrType = "DestructBuilding";
  88. explosionEffect="FuelExplosion";
  89. class DestructionEffects
  90. {
  91. class Dust
  92. {
  93. intensity = 0.1;
  94. interval = 1;
  95. lifeTime = 0.01;
  96. position = "destructionEffect2";
  97. simulation = "particles";
  98. type = "HousePartDust";
  99. };
  100. class Light1
  101. {
  102. enabled = "distToWater";
  103. intensity = 0.1;
  104. interval = 1;
  105. lifeTime = 3;
  106. position = "destructionEffect";
  107. simulation = "light";
  108. type = "ObjectDestructionLightSmall";
  109. };
  110. class Fire1
  111. {
  112. intensity = 0.15;
  113. interval = 1;
  114. lifeTime = 3;
  115. position = "destructionEffect";
  116. simulation = "particles";
  117. type = "ObjectDestructionFire1Small";
  118. };
  119. class Refract1
  120. {
  121. intensity = 1;
  122. interval = 1;
  123. lifeTime = 3;
  124. position = "destructionEffect";
  125. simulation = "particles";
  126. type = "SmallFireFRefract";
  127. };
  128. class Sound
  129. {
  130. intensity = 1;
  131. interval = 1;
  132. lifeTime = 1;
  133. position = "destructionEffect";
  134. simulation = "sound";
  135. type = "Fire";
  136. };
  137. class sparks1
  138. {
  139. intensity = 0.5;
  140. interval = 1;
  141. lifeTime = 0;
  142. position = "destructionEffect2";
  143. simulation = "particles";
  144. type = "ObjectDestructionSparks";
  145. };
  146. class Smoke1
  147. {
  148. simulation="particles";
  149. type="BarelDestructionSmoke";
  150. position[]={0,0,0};
  151. intensity=0.2;
  152. interval=1;
  153. lifeTime=1;
  154. };
  155. class HouseDestr
  156. {
  157. intensity=1;
  158. interval=1;
  159. lifeTime=5;
  160. position="";
  161. simulation="destroy";
  162. type="DelayedDestruction";
  163. };
  164. };
  165. };
  166. class 3as_ParticleCannon_Base: StaticMGWeapon
  167. {
  168. class Turrets: Turrets
  169. {
  170. class MainTurret: MainTurret
  171. {
  172. };
  173. };
  174. };
  175. class macro_new_vehicle(field_repeater,cis):3as_ParticleCannon_Base
  176. {
  177. author = "RD501";
  178. scope = 2;
  179. side = 0;
  180. displayname = "CIS Field Repeater";
  181. scopeCurator = 2;
  182. crew = MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  183. faction = MACRO_QUOTE(macro_faction(CIS));
  184. editorSubcategory = MACRO_QUOTE(macro_editor_cat(turrets));
  185. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(turrets));
  186. class Turrets: Turrets
  187. {
  188. class MainTurret: MainTurret
  189. {
  190. weapons[]=
  191. {
  192. macro_new_weapon(generic,preatorian_turret_opfor)
  193. };
  194. magazines[]={macro_new_mag(generic_aircraft_gun,1000),macro_new_mag(generic_aircraft_gun,1000),macro_new_mag(generic_aircraft_gun,1000),macro_new_mag(generic_aircraft_gun,1000),macro_new_mag(generic_aircraft_gun,1000)};
  195. };
  196. };
  197. destrType = "DestructBuilding";
  198. explosionEffect="FuelExplosion";
  199. class DestructionEffects
  200. {
  201. class Dust
  202. {
  203. intensity = 0.1;
  204. interval = 1;
  205. lifeTime = 0.01;
  206. position = "destructionEffect2";
  207. simulation = "particles";
  208. type = "HousePartDust";
  209. };
  210. class Light1
  211. {
  212. enabled = "distToWater";
  213. intensity = 0.1;
  214. interval = 1;
  215. lifeTime = 3;
  216. position = "destructionEffect";
  217. simulation = "light";
  218. type = "ObjectDestructionLightSmall";
  219. };
  220. class Fire1
  221. {
  222. intensity = 0.15;
  223. interval = 1;
  224. lifeTime = 3;
  225. position = "destructionEffect";
  226. simulation = "particles";
  227. type = "ObjectDestructionFire1Small";
  228. };
  229. class Refract1
  230. {
  231. intensity = 1;
  232. interval = 1;
  233. lifeTime = 3;
  234. position = "destructionEffect";
  235. simulation = "particles";
  236. type = "SmallFireFRefract";
  237. };
  238. class Sound
  239. {
  240. intensity = 1;
  241. interval = 1;
  242. lifeTime = 1;
  243. position = "destructionEffect";
  244. simulation = "sound";
  245. type = "Fire";
  246. };
  247. class sparks1
  248. {
  249. intensity = 0.5;
  250. interval = 1;
  251. lifeTime = 0;
  252. position = "destructionEffect2";
  253. simulation = "particles";
  254. type = "ObjectDestructionSparks";
  255. };
  256. class Smoke1
  257. {
  258. simulation="particles";
  259. type="BarelDestructionSmoke";
  260. position[]={0,0,0};
  261. intensity=0.2;
  262. interval=1;
  263. lifeTime=1;
  264. };
  265. class HouseDestr
  266. {
  267. intensity=1;
  268. interval=1;
  269. lifeTime=5;
  270. position="";
  271. simulation="destroy";
  272. type="DelayedDestruction";
  273. };
  274. };
  275. };
  276. /*class StaticMortar: StaticWeapon
  277. {
  278. class Turrets: Turrets
  279. {
  280. class MainTurret
  281. {};
  282. };
  283. };
  284. class Mortar_01_base_F: StaticMortar
  285. {
  286. class Turrets: Turrets
  287. {
  288. class MainTurret: MainTurret
  289. {};
  290. };
  291. class assembleInfo;
  292. };
  293. class B_Mortar_01_F: Mortar_01_base_F
  294. {
  295. class Turrets: Turrets
  296. {
  297. class MainTurret: MainTurret
  298. {};
  299. };
  300. };
  301. class 3AS_Republic_Mortar: B_Mortar_01_F
  302. {
  303. class Turrets: Turrets
  304. {
  305. class MainTurret: MainTurret
  306. {};
  307. };
  308. };*/
  309. class 3AS_CIS_Mortar;
  310. class macro_new_vehicle(mortar,cis):3AS_CIS_Mortar
  311. {
  312. author = "RD501";
  313. scope = 2;
  314. side = 0;
  315. displayname = "CIS Field Mortar";
  316. scopeCurator = 2;
  317. crew = MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  318. faction = MACRO_QUOTE(macro_faction(CIS));
  319. editorSubcategory = MACRO_QUOTE(macro_editor_cat(arty));
  320. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(arty));
  321. };
  322. };