config.cpp 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. #include "../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(zeus)
  5. {
  6. requiredAddons[] = {
  7. macro_lvl2_req
  8. };
  9. requiredVersion = 0.1;
  10. units[] = {
  11. macro_new_ordnance(IonBomb),
  12. macro_new_ordnance(Orbit),
  13. macro_new_ordnance(ModuleSquadShield),
  14. macro_new_ordnance(ModuleDioxis),
  15. macro_new_ordnance(ModuleShadow),
  16. macro_new_ordnance(OrbitalLaser),
  17. rd501_moduleJammerSettings,
  18. rd501_moduleClearAllJammers,
  19. rd501_moduleVolatileSettings,
  20. };
  21. weapons[] = {};
  22. };
  23. };
  24. class CfgFunctions
  25. {
  26. class tts_beam
  27. {
  28. class beam
  29. {
  30. file = "\RD501_Zeus\functions";
  31. class beam {};
  32. class rayParticles {};
  33. class ragdollUnit {};
  34. class explosionDamage {};
  35. class explosionParticles {};
  36. class postProcessEffects {};
  37. class configMenu {};
  38. };
  39. };
  40. };
  41. class CfgSounds
  42. {
  43. class laser_impact
  44. {
  45. name = "laser_impact";
  46. sound[] = {"\RD501_Zeus\sounds\laser_impact.ogg", 50, 1, 5000};
  47. titles[] = {};
  48. };
  49. class laser
  50. {
  51. name = "laser";
  52. sound[] = {"\RD501_Zeus\sounds\laser.ogg", 50, 1, 5000};
  53. titles[] = {};
  54. };
  55. };
  56. class CfgFactionClasses {
  57. class Jammers {
  58. displayName = "Jammers";
  59. priority = 2;
  60. side = 7;
  61. };
  62. };
  63. class CfgVehicles
  64. {
  65. class Module_F;
  66. class ModuleOrdnance_F;
  67. class ModuleChemlight_F;
  68. class ModuleOrdnanceHowitzer_F;
  69. class rd501_moduleClearAllJammers: Module_F {
  70. author = "RD501";
  71. category = "Jammers";
  72. function = "rd501_zeus_fnc_moduleJammerClearAll";
  73. isGlobal = 1;
  74. isTriggerActivated = 0;
  75. scope = 1;
  76. scopeCurator = 2;
  77. curatorCanAttach = 1;
  78. displayName = "Clear All Jammers";
  79. portrait = "RD501_Zeus\ui\jammer_icon.paa";
  80. };
  81. class rd501_moduleJammerSettings: Module_F {
  82. author = "RD501";
  83. category = "Jammers";
  84. function = "ace_common_dummy";
  85. functionPriority = 1;
  86. isGlobal = 1;
  87. isTriggerActivated = 0;
  88. scope = 1;
  89. scopeCurator = 2;
  90. curatorCanAttach = 1;
  91. displayName = "Add Jammer";
  92. curatorInfoType = "RD501_RscJammerSettings";
  93. portrait = "RD501_Zeus\ui\jammer_icon.paa";
  94. };
  95. class rd501_moduleVolatileSettings: Module_F {
  96. author = "RD501";
  97. category = "Ordnance";
  98. function = "ace_common_dummy";
  99. functionPriority = 1;
  100. isGlobal = 1;
  101. isTriggerActivated = 0;
  102. scope = 1;
  103. scopeCurator = 2;
  104. curatorCanAttach = 1;
  105. displayName = "Make Volatile Cargo";
  106. curatorInfoType = "RD501_RscVolatileSettings";
  107. portrait = "RD501_Zeus\ui\explosion_zeus_icon_small.paa";
  108. };
  109. class macro_new_ordnance(ModuleSquadShield): ModuleChemlight_F
  110. {
  111. author = "RD501";
  112. _generalMacro = macro_new_ordnance(ModuleSquadShield)
  113. scope = 1;
  114. scopeCurator = 2;
  115. category = "Ordnance";
  116. displayName = "Squad Shield";
  117. portrait = "RD501_Zeus\ui\wide_kite_64.paa";
  118. ammo = "SW_SquadShield_ammoCARGA";
  119. delete Arguments;
  120. };
  121. class macro_new_ordnance(ModuleDioxis): ModuleChemlight_F
  122. {
  123. author = "RD501";
  124. _generalMacro = macro_new_ordnance(ModuleDioxis)
  125. scope = 1;
  126. scopeCurator = 2;
  127. category = "Ordnance";
  128. displayName = "Dioxis Cloud";
  129. portrait = "RD501_Zeus\ui\biohazard_64.paa";
  130. ammo = macro_new_ordnance_ammo(Dioxis_long)
  131. delete Arguments;
  132. };
  133. class macro_new_ordnance(ModuleShadow): ModuleChemlight_F
  134. {
  135. author = "RD501";
  136. _generalMacro = macro_new_ordnance(ModuleShadow)
  137. scope = 1;
  138. scopeCurator = 2;
  139. category = "Ordnance";
  140. displayName = "Shadow Virus";
  141. portrait = "RD501_Zeus\ui\biohazard_64.paa";
  142. ammo = macro_new_ordnance_ammo(Shadow_long)
  143. delete Arguments;
  144. };
  145. class macro_new_ordnance(IonBomb): ModuleOrdnance_F
  146. {
  147. author = "RD501";
  148. _generalMacro = macro_new_ordnance(IonBomb)
  149. isGlobal = 1;
  150. scope = 1;
  151. scopeCurator = 2;
  152. simulation = "house";
  153. category = "Ordnance";
  154. model = "\a3\Modules_F_Curator\Ordnance\surfacehowitzer.p3d";
  155. displayName = "Ion Mortar";
  156. portrait = "\a3\Modules_F_Curator\Data\portraitOrdnanceMortar_ca.paa";
  157. ammo = macro_new_ordnance_ammo(IonBomb)
  158. delete Arguments;
  159. };
  160. class macro_new_ordnance(Orbit): ModuleOrdnance_F
  161. {
  162. author = "RD501";
  163. _generalMacro = macro_new_ordnance(Orbit)
  164. displayName = "Orbital Strike";
  165. model = "\a3\Modules_F_Curator\Ordnance\surfacehowitzer.p3d";
  166. isGlobal = 1;
  167. scope = 1;
  168. scopeCurator = 2;
  169. simulation = "house";
  170. category = "Ordnance";
  171. portrait = "\a3\Modules_F_Curator\Data\portraitOrdnanceMortar_ca.paa";
  172. ammo = macro_new_ordnance_ammo(Orbital)
  173. delete Arguments;
  174. };
  175. class macro_new_ordnance(OrbitalLaser): Module_F {
  176. author = "RD501";
  177. curatorCanAttach = 1;
  178. isGlobal = 1;
  179. scope = 1;
  180. scopeCurator = 2;
  181. isTriggerActivated = 0;
  182. category = "Ordnance";
  183. displayName = "Orbital Laser";
  184. function = "tts_beam_fnc_configMenu";
  185. portrait = "RD501_Zeus\ui\explosion_zeus_icon_small.paa";
  186. };
  187. };
  188. class CfgAmmo
  189. {
  190. class ModuleOrdnanceHowitzer_F_ammo;
  191. class ModuleOrdnanceMortar_F_ammo;
  192. class ModuleOrdnanceRocket_F_ammo;
  193. class SWOP_SCAR_Dioxis;
  194. class RD501_ShadowMag;
  195. class macro_new_ordnance_ammo(Dioxis_long): SWOP_SCAR_Dioxis
  196. {
  197. timeToLive = 300;
  198. };
  199. class macro_new_ordnance_ammo(Shadow_long): RD501_ShadowMag
  200. {
  201. timeToLive = 300;
  202. };
  203. class macro_new_ordnance_ammo(IonBomb): ModuleOrdnanceMortar_F_ammo
  204. {
  205. caliber = 1100;
  206. hit = 180;
  207. airFriction = 0;
  208. canLock = 0;
  209. deflecting = 0;
  210. explosive = 1;
  211. fuseDistance = 30;
  212. indirectHit = 70;
  213. indirectHitRange = 20;
  214. maxSpeed = 1100;
  215. typicalSpeed = 950;
  216. sideAirFriction = 0;
  217. simulation = "ShotShell";
  218. timeToLive = 180;
  219. model = "\ywing\pro_bomb.p3d";
  220. tracerStartTime = 0;
  221. supersonicCrackNear[] = {"A3\sounds_f\weapons\hits\sscrack1",1.0,1,40};
  222. supersonicCrackFar[] = {"A3\sounds_f\weapons\hits\sscrack2",1.0,1,100};
  223. CraterEffects = "HEShellCrater";
  224. effectFlare = "FlareShell";
  225. effectsMissileInit = "RocketBackEffectsStaticRPGBlue";
  226. EffectFly = "ArtilleryTrailsBlue";
  227. CraterWaterEffects = "ImpactEffectsWaterHE";
  228. ExplosionEffects = "ProtonbombAmmoExplosion";
  229. };
  230. class macro_new_ordnance_ammo(DioxisCluster): ModuleOrdnanceRocket_F_ammo
  231. {
  232. caliber = 1100;
  233. hit = 1;
  234. allowAgainstInfantry = 1;
  235. canLock = 0;
  236. explosive = 1;
  237. fuseDistance = 35;
  238. model = "SW_AV7\ion.p3d";
  239. indirectHit = 3;
  240. indirectHitRange = 50;
  241. maxSpeed = 1100;
  242. typicalSpeed = 1050;
  243. sideAirFriction = 0;
  244. submunitionConeType[] = {"poissonDisc", 10};
  245. submunitionAmmo[] = {"SWOP_SCAR_Dioxis",1};
  246. submunitionConeAngle = 50;
  247. simulation = "shotSubmunitions";
  248. timeToLive = 120;
  249. tracerStartTime = 0;
  250. visibleFire = 100;
  251. visibleFireTime = 300;
  252. CraterEffects = "HEShellCrater";
  253. effectsSmoke = "Dioxis_Smoke";
  254. effectFlare = "FlareShell";
  255. effectsMissileInit = "RocketBackEffectsStaticRPGBlue";
  256. EffectFly = "ArtilleryTrailsBlue";
  257. CraterWaterEffects = "ImpactEffectsWaterHE";
  258. ExplosionEffects = "ProtonbombAmmoExplosion";
  259. };
  260. class macro_new_ordnance_ammo(Orbital): ModuleOrdnanceHowitzer_F_ammo
  261. {
  262. caliber = 950;
  263. hit = 550;
  264. allowAgainstInfantry = 1;
  265. canLock = 0;
  266. explosive = 1;
  267. fuseDistance = 30;
  268. model = "SW_AV7\ion.p3d";
  269. indirectHit = 300;
  270. indirectHitRange = 30;
  271. maxSpeed = 1100;
  272. typicalSpeed = 1050;
  273. sideAirFriction = 0;
  274. submunitionAmmo = "";
  275. submunitionConeAngle = 30;
  276. simulation = "shotSubmunitions";
  277. timeToLive = 120;
  278. tracerStartTime = 0;
  279. visibleFire = 100;
  280. visibleFireTime = 300;
  281. CraterEffects = "HEShellCrater";
  282. effectFlare = "FlareShell";
  283. effectsMissileInit = "RocketBackEffectsStaticRPGBlue";
  284. EffectFly = "ArtilleryTrailsBlue";
  285. CraterWaterEffects = "ImpactEffectsWaterHE";
  286. ExplosionEffects = "ProtonbombAmmoExplosion";
  287. };
  288. };
  289. class Extended_PreInit_EventHandlers
  290. {
  291. class RD501_Zeus_PreInit
  292. {
  293. init="call compileFinal preprocessFileLineNumbers 'RD501_Zeus\XEH_preInit.sqf'";
  294. };
  295. };
  296. #include "ui\RscAttributes.hpp"