config.cpp 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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 = macro_new_ammo(squad_shield_sigma)
  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 RD501_ShadowMag;
  194. class macro_new_ordnance_ammo(IonBomb): ModuleOrdnanceMortar_F_ammo
  195. {
  196. caliber = 1100;
  197. hit = 180;
  198. airFriction = 0;
  199. canLock = 0;
  200. deflecting = 0;
  201. explosive = 1;
  202. fuseDistance = 30;
  203. indirectHit = 70;
  204. indirectHitRange = 20;
  205. maxSpeed = 1100;
  206. typicalSpeed = 950;
  207. sideAirFriction = 0;
  208. simulation = "ShotShell";
  209. timeToLive = 180;
  210. model = "\ywing\pro_bomb.p3d";
  211. tracerStartTime = 0;
  212. supersonicCrackNear[] = {"A3\sounds_f\weapons\hits\sscrack1",1.0,1,40};
  213. supersonicCrackFar[] = {"A3\sounds_f\weapons\hits\sscrack2",1.0,1,100};
  214. CraterEffects = "HEShellCrater";
  215. effectFlare = "FlareShell";
  216. effectsMissileInit = "RocketBackEffectsStaticRPGBlue";
  217. EffectFly = "ArtilleryTrailsBlue";
  218. CraterWaterEffects = "ImpactEffectsWaterHE";
  219. ExplosionEffects = "ProtonbombAmmoExplosion";
  220. };
  221. class macro_new_ordnance_ammo(DioxisCluster): ModuleOrdnanceRocket_F_ammo
  222. {
  223. caliber = 1100;
  224. hit = 1;
  225. allowAgainstInfantry = 1;
  226. canLock = 0;
  227. explosive = 1;
  228. fuseDistance = 35;
  229. indirectHit = 3;
  230. indirectHitRange = 50;
  231. maxSpeed = 1100;
  232. typicalSpeed = 1050;
  233. sideAirFriction = 0;
  234. submunitionConeType[] = {"poissonDisc", 10};
  235. submunitionAmmo[] = {macro_new_ammo(dioxis),1};
  236. submunitionConeAngle = 50;
  237. simulation = "shotSubmunitions";
  238. timeToLive = 120;
  239. tracerStartTime = 0;
  240. visibleFire = 100;
  241. visibleFireTime = 300;
  242. CraterEffects = "HEShellCrater";
  243. effectsSmoke = "Dioxis_Smoke";
  244. effectFlare = "FlareShell";
  245. effectsMissileInit = "RocketBackEffectsStaticRPGBlue";
  246. EffectFly = "ArtilleryTrailsBlue";
  247. CraterWaterEffects = "ImpactEffectsWaterHE";
  248. ExplosionEffects = "ProtonbombAmmoExplosion";
  249. };
  250. class macro_new_ordnance_ammo(Orbital): ModuleOrdnanceHowitzer_F_ammo
  251. {
  252. caliber = 950;
  253. hit = 550;
  254. allowAgainstInfantry = 1;
  255. canLock = 0;
  256. explosive = 1;
  257. fuseDistance = 30;
  258. indirectHit = 300;
  259. indirectHitRange = 30;
  260. maxSpeed = 1100;
  261. typicalSpeed = 1050;
  262. sideAirFriction = 0;
  263. submunitionAmmo = "";
  264. submunitionConeAngle = 30;
  265. simulation = "shotSubmunitions";
  266. timeToLive = 120;
  267. tracerStartTime = 0;
  268. visibleFire = 100;
  269. visibleFireTime = 300;
  270. CraterEffects = "HEShellCrater";
  271. effectFlare = "FlareShell";
  272. effectsMissileInit = "RocketBackEffectsStaticRPGBlue";
  273. EffectFly = "ArtilleryTrailsBlue";
  274. CraterWaterEffects = "ImpactEffectsWaterHE";
  275. ExplosionEffects = "ProtonbombAmmoExplosion";
  276. };
  277. };
  278. class Extended_PreInit_EventHandlers
  279. {
  280. class RD501_Zeus_PreInit
  281. {
  282. init="call compileFinal preprocessFileLineNumbers 'RD501_Zeus\XEH_preInit.sqf'";
  283. };
  284. };
  285. #include "ui\RscAttributes.hpp"