config.cpp 6.5 KB

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