config.cpp 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. #include "../RD501_Main/config_macros.hpp"
  2. #include "script_macros.hpp"
  3. #define macro_jp_ver 1.1 Endgame
  4. #define name_jumppack_f JT-21 (Version ##macro_jp_ver##)
  5. class CfgPatches
  6. {
  7. class macro_patch_name(jumppack)
  8. {
  9. author=DANKAUTHORS
  10. requiredAddons[]=
  11. {
  12. //macro_lvl1_req,
  13. //"A3_Data_F_Enoch_Loadorder"
  14. macro_patch_name(particle_effects)
  15. };
  16. requiredVersion=0.1;
  17. units[]={
  18. };
  19. weapons[]={};
  20. vehicles[]={
  21. macro_jumppackClass(neutral,base),
  22. macro_jumppackClass(neutral,rto)
  23. };
  24. };
  25. };
  26. class CfgVehicles
  27. {
  28. class B_AssaultPack_blk;
  29. class macro_jumppackClass(neutral,base):B_AssaultPack_blk//RD501_jumppack_base
  30. {
  31. scope=0;
  32. displayname=name_jumppack_f
  33. macro_isJumppack=1;
  34. macro_spamDelay=1;
  35. macro_energyCap=100;
  36. macro_rechargeRate=4;
  37. macro_effectScript = macro_grp_fnc_name(jumppack,effect_jt_21);
  38. macro_effectPoints = {
  39. {"spine3",{0, -.3, -.1}}
  40. };
  41. macro_igniteSound={"RD501_Jumppack\sounds\cdv21Start.ogg"};
  42. macro_landSound={"RD501_Jumppack\sounds\cdv21End.ogg"};
  43. macro_idleSound={"RD501_Jumppack\sounds\cdv21Idle.ogg"};
  44. macro_textureCatagory={default_texture_group};
  45. //{"name of jump",{forward velo(0),verticle velo(1),cost(2),angle(3),directional(4)(0,1)?,can prone jump(5)(0,1)?}}
  46. macro_types_of_jumps =
  47. {
  48. {
  49. "Forward Jump",// Name of jump
  50. {
  51. 12, //forward velo(0)
  52. 20, //verticle velo(1)
  53. 50, //cost(2)
  54. 0, //angle(3)
  55. 0, //directional(4)(no=0,yes=1)?
  56. 0 //can prone jump(5)(no=0,yes=1)?
  57. }
  58. },
  59. {"Short Jump",{12,5,30,0,1,0}}
  60. };
  61. // model = "SWOP_clones\JT12.p3d";
  62. // hiddenSelections[] = {"Camo1"};
  63. // hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\JT_21.paa"};
  64. model = "SWOP_clones\clonebackDV.p3d";
  65. maximumload = 700;
  66. };
  67. class macro_jumppackClass(neutral,cdv_21):macro_jumppackClass(neutral,base)
  68. {
  69. scope=2;
  70. displayname= "[JP] CDV-21" ;
  71. hiddenSelections[] = {"Camo1"};
  72. hiddenSelectionsTextures[] = {"SWOP_clones\data\spec\Spec2_co.paa"};
  73. tf_encryptionCode = "tf_west_radio_code";
  74. tf_dialog = "anarc210_radio_dialog";
  75. tf_subtype = "digital_lr";
  76. tf_range = 20000;
  77. tf_dialogUpdate = "call TFAR_fnc_updateLRDialogToChannel;";
  78. tf_hasLRradio = 1;
  79. maximumLoad = 700;
  80. };
  81. class macro_jumppackClass(neutral,lightning):macro_jumppackClass(neutral,cdv_21)
  82. {
  83. displayName = "[JP] CDV-180B 'Lighting III'";
  84. tf_encryptionCode = "tf_west_radio_code";
  85. tf_dialog = "anarc210_radio_dialog";
  86. tf_subtype = "digital_lr";
  87. tf_range = 30000;
  88. tf_dialogUpdate = "call TFAR_fnc_updateLRDialogToChannel;";
  89. tf_hasLRradio = 1;
  90. maximumLoad = 900;
  91. };
  92. class macro_jumppackClass(neutral,jt21_LTU):macro_jumppackClass(neutral,cdv_21)
  93. {
  94. scope=2;
  95. displayname= "[JP] JT-21 LTU";
  96. maximumload = 0;
  97. macro_energyCap=4;
  98. macro_rechargeRate=0;
  99. macro_types_of_jumps =
  100. {
  101. {"Short Jump",{12,5,1,0,1,0}}
  102. };
  103. model = "SWOP_clones\JT12.p3d";
  104. hiddenSelections[] = {"Camo1"};
  105. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\JT_21.paa"};
  106. };
  107. class macro_jumppackClass(neutral,titan_mkII):macro_jumppackClass(neutral,base)
  108. {
  109. scope=2;
  110. displayname= "[JP] Titan Mk.II";
  111. hiddenSelections[] = {"Camo1"};
  112. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\cdv21_501_v2.paa"};
  113. macro_energyCap=100;
  114. macro_rechargeRate=8;
  115. macro_types_of_jumps =
  116. {
  117. {"Short Jump",{25,7,20,0,1,1}}
  118. };
  119. maximumload = 900;
  120. tf_encryptionCode = "tf_west_radio_code";
  121. tf_dialog = "anarc210_radio_dialog";
  122. tf_subtype = "digital_lr";
  123. tf_range = 30000;
  124. tf_dialogUpdate = "call TFAR_fnc_updateLRDialogToChannel;";
  125. tf_hasLRradio = 1;
  126. };
  127. class macro_jumppackClass(neutral,titan_mkIIb):macro_jumppackClass(neutral,titan_mkII)
  128. {
  129. displayname= "[JP] Titan Mk.II B";
  130. hiddenSelectionsTextures[] = {"SWOP_clones\data\spec\Spec2_co.paa"};
  131. };
  132. class macro_jumppackClass(neutral,titan_mkMCCCXXXVII):macro_jumppackClass(neutral,titan_mkII)
  133. {
  134. displayname= "[JP] Titan Mk.MCC";
  135. macro_rechargeRate=30;
  136. macro_types_of_jumps =
  137. {
  138. {"LEET Jump",{1337,7,1,0,1,1}}
  139. };
  140. };
  141. class macro_jumppackClass(neutral,501st):macro_jumppackClass(neutral,cdv_21)
  142. {
  143. displayName = "[JP] CDV-21 '501st'";
  144. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\cdv21_501.paa"};
  145. };
  146. class macro_jumppackClass(neutral,purge):macro_jumppackClass(neutral,cdv_21)
  147. {
  148. displayName = "[JP] CDV-21 'Purge'";
  149. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\purge.paa"};
  150. };
  151. class macro_jumppackClass(neutral,212th):macro_jumppackClass(neutral,cdv_21)
  152. {
  153. displayName = "[JP] CDV-21 '212th'";
  154. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\212th.paa"};
  155. };
  156. class macro_jumppackClass(neutral,101st):macro_jumppackClass(neutral,cdv_21)
  157. {
  158. displayName = "[JP] CDV-21 '101st'";
  159. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\101st.paa"};
  160. };
  161. class macro_jumppackClass(neutral,ack_1_1):macro_jumppackClass(neutral,cdv_21)
  162. {
  163. displayName = "[JP] CDV-21 Acklay 1-1";
  164. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\acklay_skin_set\ack_1_1.paa"};
  165. };
  166. class macro_jumppackClass(neutral,ack_1_2):macro_jumppackClass(neutral,cdv_21)
  167. {
  168. displayName = "[JP] CDV-21 Acklay 1-2";
  169. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\acklay_skin_set\ack_1_2.paa"};
  170. };
  171. class macro_jumppackClass(neutral,ack_1_3):macro_jumppackClass(neutral,cdv_21)
  172. {
  173. displayName = "[JP] CDV-21 Acklay 1-3";
  174. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\acklay_skin_set\ack_1_3.paa"};
  175. };
  176. class macro_jumppackClass(neutral,ack_1_4):macro_jumppackClass(neutral,cdv_21)
  177. {
  178. displayName = "[JP] CDV-21 Acklay 1-4";
  179. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\acklay_skin_set\ack_1_4.paa"};
  180. };
  181. class macro_jumppackClass(neutral,ack_hq):macro_jumppackClass(neutral,cdv_21)
  182. {
  183. displayName = "[JP] CDV-21 Acklay HQ";
  184. hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\acklay_skin_set\ack_hq.paa"};
  185. };
  186. class macro_jumppackClass(neutral,geon):macro_jumppackClass(neutral,cdv_21)
  187. {
  188. displayName = "[JP] Geonosis";
  189. macro_effectScript = macro_grp_fnc_name(jumppack,no_effect);
  190. hiddenSelectionsTextures[] = {""};
  191. };
  192. // class macro_jumppackClass(neutral,hq):macro_jumppackClass(neutral,base)
  193. // {
  194. // displayName = "JT-21 Acklay HQ";
  195. // hiddenSelectionsTextures[] = {"RD501_Jumppack\textures\acklay_skin_set\ack_hq.paa"};
  196. // };
  197. };
  198. class CfgWeapons
  199. {
  200. // class Default;
  201. // class Put: Default
  202. // {
  203. // muzzles[] += {"namenai_test_muzz"};
  204. // class PutMuzzle;
  205. // class namenai_test_muzz: PutMuzzle
  206. // {
  207. // autoreload = 0;
  208. // displayName = "AYAYAYAYYA";
  209. // magazines[] = {"namenai_pulse_mag"};
  210. // enableAttack = 1;
  211. // showToPlayer = 0;
  212. // };
  213. // };
  214. // class GrenadeLauncher: Default{};
  215. // class Throw: GrenadeLauncher
  216. // {
  217. // muzzles[] += {"NICEMEME_MUZZLE"};
  218. // class ThrowMuzzle;
  219. // class NICEMEME_MUZZLE: ThrowMuzzle
  220. // {
  221. // displayName = "AYAYAYAYYA";
  222. // magazines[] = {"namenai_pulse_mag_smok"};
  223. // };
  224. // };
  225. };
  226. class CfgMagazines
  227. {
  228. class TermMine_Mag;
  229. class SmokeShell;
  230. // class namenai_pulse_mag:TermMine_Mag
  231. // {
  232. // displayName = "[][][][][]]";
  233. // ammo = "namenai_test_pulse";
  234. // };
  235. // class namenai_pulse_mag_smok: SmokeShell
  236. // {
  237. // displayName = "[][][][][[][][]]]";
  238. // ammo = macro_new_ammo(jumppack_blue_trial)
  239. // mass = 3;
  240. // };
  241. };
  242. class CfgAmmo
  243. {
  244. class TermMineA;
  245. class SmokeShell;
  246. class macro_new_ammo(jumppack_blue_pulse): TermMineA
  247. {
  248. ExplosionEffects = macro_new_complex_effect(jumppack_pulse)
  249. effectsSmoke = macro_new_complex_effect(jumppack_pulse)
  250. CraterEffects = "";
  251. craterWaterEffects = "";
  252. effectFlare = "FlareShell";
  253. effectFly = "";
  254. effectsFire = "";
  255. effectsMissile = "";
  256. SoundSetExplosion[] = {};
  257. hit =0;
  258. indirectHit = 0;
  259. indirectHitRange = 0;
  260. soundHit[] = {"", 0, 1, 1500};
  261. explosionForceCoef = 0;
  262. model = "";
  263. mineModelDisabled = "";
  264. soundTrigger[] = {"", 0.562341, 1, 30};
  265. soundActivation[] = {"", 0.562341, 1, 30};
  266. soundDeactivation[] = {"", 1.99526, 1, 20};
  267. class CamShakeFire
  268. {
  269. power = 0;
  270. duration = 0.0;
  271. frequency = 0;
  272. distance = 0;
  273. };
  274. class CamShakePlayerFire
  275. {
  276. power = 0.0;
  277. duration = 0;
  278. frequency = 0;
  279. };
  280. class CamShakeHit
  281. {
  282. power = 0;
  283. duration = 0;
  284. frequency = 0;
  285. };
  286. class CamShakeExplode
  287. {
  288. power = 0;
  289. duration = 0;
  290. frequency = 0;
  291. };
  292. };
  293. // class macro_new_ammo(jumppack_blue_trial): macro_new_ammo(jumppack_blue_pulse)
  294. // {
  295. // };
  296. // class macro_new_ammo(jumppack_blue_trial): SmokeShell
  297. // {
  298. // ExplosionEffects = macro_new_complex_effect(jumppack_blue_trail)
  299. // effectsSmoke = macro_new_complex_effect(jumppack_blue_trail)
  300. // timeToLive=6;
  301. // CraterEffects = "";
  302. // SoundSetExplosion[] = {};
  303. // hit =0;
  304. // indirectHit = 0;
  305. // indirectHitRange = 0;
  306. // soundHit[] = {"", 0, 1, 1500};
  307. // explosionForceCoef = 0;
  308. // explosionTime = -1;
  309. // SmokeShellSoundHit1[] = {"", 1.25893, 1, 100};
  310. // SmokeShellSoundHit2[] = {"", 1.25893, 1, 100};
  311. // SmokeShellSoundHit3[] = {"", 1.25893, 1, 100};
  312. // SmokeShellSoundLoop1[] = {"", 0.125893, 1, 70};
  313. // SmokeShellSoundLoop2[] = {"", 0.125893, 1, 70};
  314. // grenadeFireSound[] = {"", 1};
  315. // grenadeBurningSound[] = {"", 1};
  316. // simulationStep = 0.001;
  317. // };
  318. };
  319. //runs certain functions
  320. // class Extended_Init_EventHandlers
  321. // {
  322. // class CAManBase
  323. // {
  324. // class init
  325. // {
  326. // init = [_this select 0] spawn macro_fnc_name(jumppack_init);
  327. // };
  328. // };
  329. // };
  330. class Extended_Deleted_EventHandlers
  331. {
  332. class CAManBase
  333. {
  334. class remove_effects
  335. {
  336. init = [_this select 0] spawn macro_grp_fnc_name(jumppack,remove_effects);
  337. };
  338. };
  339. };