config.cpp 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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_cis_faction;
  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. destrType = "DestructBuilding";
  98. explosionEffect="FuelExplosion";
  99. class DestructionEffects
  100. {
  101. class Dust
  102. {
  103. intensity = 0.1;
  104. interval = 1;
  105. lifeTime = 0.01;
  106. position = "destructionEffect2";
  107. simulation = "particles";
  108. type = "HousePartDust";
  109. };
  110. class Light1
  111. {
  112. enabled = "distToWater";
  113. intensity = 0.1;
  114. interval = 1;
  115. lifeTime = 3;
  116. position = "destructionEffect";
  117. simulation = "light";
  118. type = "ObjectDestructionLightSmall";
  119. };
  120. class Fire1
  121. {
  122. intensity = 0.15;
  123. interval = 1;
  124. lifeTime = 3;
  125. position = "destructionEffect";
  126. simulation = "particles";
  127. type = "ObjectDestructionFire1Small";
  128. };
  129. class Refract1
  130. {
  131. intensity = 1;
  132. interval = 1;
  133. lifeTime = 3;
  134. position = "destructionEffect";
  135. simulation = "particles";
  136. type = "SmallFireFRefract";
  137. };
  138. class Sound
  139. {
  140. intensity = 1;
  141. interval = 1;
  142. lifeTime = 1;
  143. position = "destructionEffect";
  144. simulation = "sound";
  145. type = "Fire";
  146. };
  147. class sparks1
  148. {
  149. intensity = 0.5;
  150. interval = 1;
  151. lifeTime = 0;
  152. position = "destructionEffect2";
  153. simulation = "particles";
  154. type = "ObjectDestructionSparks";
  155. };
  156. class Smoke1
  157. {
  158. simulation="particles";
  159. type="BarelDestructionSmoke";
  160. position[]={0,0,0};
  161. intensity=0.2;
  162. interval=1;
  163. lifeTime=1;
  164. };
  165. class HouseDestr
  166. {
  167. intensity=1;
  168. interval=1;
  169. lifeTime=5;
  170. position="";
  171. simulation="destroy";
  172. type="DelayedDestruction";
  173. };
  174. };
  175. };
  176. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII): macro_new_vehicle(dwarf_spider_droid,MkII)
  177. {
  178. displayName = "Dwarf Spider Droid MkII (Moveable)";
  179. forceInGarage = 0;
  180. };
  181. class macro_new_vehicle(crab_droid,MkII): 101st_Crab_Droid
  182. {
  183. displayName = "Crab Droid";
  184. scope = 2;
  185. forceInGarage = 1;
  186. armor = 35;
  187. armorStructural = 1.0;
  188. explosionShielding = 0.1;
  189. minTotalDamageThreshold = 0.01;
  190. impactDamageMultiplier = 0.1;
  191. class EventHandlers: DefaultEventhandlers {};
  192. ace_dragging_canCarry = 0;
  193. ace_dragging_canDrag = 0;
  194. faction = macro_cis_faction;
  195. editorSubcategory = macro_editor_cat(heavy_armored_infantry);
  196. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry);
  197. class Turrets: Turrets
  198. {
  199. class MainTurret: MainTurret
  200. {
  201. weapons[]=
  202. {
  203. "GMG_20mm"
  204. };
  205. magazines[]=
  206. {
  207. "40Rnd_20mm_g_belt",
  208. "40Rnd_20mm_g_belt",
  209. "40Rnd_20mm_g_belt",
  210. "40Rnd_20mm_g_belt",
  211. "40Rnd_20mm_g_belt"
  212. };
  213. class HitPoints
  214. {
  215. class telo
  216. {
  217. armor=0.9;
  218. material=-1;
  219. name="telo";
  220. visual="autonomous_unhide";
  221. passThrough=1;
  222. radius=3;
  223. };
  224. };
  225. };
  226. };
  227. destrType = "DestructBuilding";
  228. explosionEffect="FuelExplosion";
  229. class DestructionEffects
  230. {
  231. class Dust
  232. {
  233. intensity = 0.1;
  234. interval = 1;
  235. lifeTime = 0.01;
  236. position = "destructionEffect2";
  237. simulation = "particles";
  238. type = "HousePartDust";
  239. };
  240. class Light1
  241. {
  242. enabled = "distToWater";
  243. intensity = 0.1;
  244. interval = 1;
  245. lifeTime = 3;
  246. position = "destructionEffect";
  247. simulation = "light";
  248. type = "ObjectDestructionLightSmall";
  249. };
  250. class Fire1
  251. {
  252. intensity = 0.15;
  253. interval = 1;
  254. lifeTime = 3;
  255. position = "destructionEffect";
  256. simulation = "particles";
  257. type = "ObjectDestructionFire1Small";
  258. };
  259. class Refract1
  260. {
  261. intensity = 1;
  262. interval = 1;
  263. lifeTime = 3;
  264. position = "destructionEffect";
  265. simulation = "particles";
  266. type = "SmallFireFRefract";
  267. };
  268. class Sound
  269. {
  270. intensity = 1;
  271. interval = 1;
  272. lifeTime = 1;
  273. position = "destructionEffect";
  274. simulation = "sound";
  275. type = "Fire";
  276. };
  277. class sparks1
  278. {
  279. intensity = 0.5;
  280. interval = 1;
  281. lifeTime = 0;
  282. position = "destructionEffect2";
  283. simulation = "particles";
  284. type = "ObjectDestructionSparks";
  285. };
  286. class Smoke1
  287. {
  288. simulation="particles";
  289. type="BarelDestructionSmoke";
  290. position[]={0,0,0};
  291. intensity=0.2;
  292. interval=1;
  293. lifeTime=1;
  294. };
  295. class HouseDestr
  296. {
  297. intensity=1;
  298. interval=1;
  299. lifeTime=5;
  300. position="";
  301. simulation="destroy";
  302. type="DelayedDestruction";
  303. };
  304. }
  305. };
  306. class macro_new_vehicle(crab_droid,Movable_MkII): macro_new_vehicle(crab_droid,MkII)
  307. {
  308. displayName = "Crab Droid (Moveable)";
  309. forceInGarage = 0;
  310. };
  311. };