config.cpp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. #include "../RD501_main/config_macros.hpp"
  2. #define macro_remove_turret\
  3. class remove_attched_turrets \
  4. {\
  5. deleted = [_this select 0] spawn macro_fnc_name(remove_attached_objects);\
  6. };\
  7. #define macro_remove_attached_stuff_XEH\
  8. class remove_atached_stuff \
  9. {\
  10. deleted = [_this select 0] spawn macro_fnc_name(remove_attached_objects);\
  11. };\
  12. #define macro_fix_xeh\
  13. class anti_wobble\
  14. {\
  15. init = "(_this select 0) setVelocity [0,0,100]";\
  16. };
  17. class CfgPatches
  18. {
  19. class macro_patch_name(vehicles)
  20. {
  21. author=DANKAUTHORS
  22. requiredAddons[]=
  23. {
  24. macro_lvl2_req
  25. };
  26. requiredVersion=0.1;
  27. units[]={};
  28. weapons[]={};
  29. };
  30. };
  31. class Extended_Init_EventHandlers
  32. {
  33. // class B_Truck_01_mover_F
  34. // {
  35. // class EEE
  36. // {
  37. // init = [_this select 0] spawn macro_fnc_name(og10_move);
  38. // };
  39. // };
  40. class SW_SpeederBike_base
  41. {
  42. class anti_wobble
  43. {
  44. init = "(_this select 0) setVelocity [0,0,1]";
  45. };
  46. };
  47. class SW_BARC
  48. {
  49. class anti_wobble
  50. {
  51. init = "(_this select 0) setVelocity [0,0,1]";
  52. };
  53. }
  54. class macro_new_vehicle(homing_spider_droid,Moveable_MKII)
  55. {
  56. class movable_script
  57. {
  58. init = [_this select 0] spawn macro_fnc_name(og10_move);
  59. };
  60. };
  61. class O_SWOP_Hailfire_base
  62. {
  63. class hailfire_aa_script
  64. {
  65. init = [_this select 0] spawn macro_fnc_name(hailfire_init);
  66. };
  67. };
  68. class macro_new_vehicle(e_web,shield)
  69. {
  70. class shield
  71. {
  72. init = [_this select 0] spawn macro_fnc_name(eweb_shield);
  73. };
  74. };
  75. class macro_new_vehicle(droideka,camo)
  76. {
  77. class droideka_movable
  78. {
  79. init = [_this select 0] spawn macro_fnc_name(droidekka_move);
  80. };
  81. };
  82. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  83. {
  84. class dwarf_movable
  85. {
  86. init = [_this select 0] spawn macro_fnc_name(dwarf_move);
  87. };
  88. };
  89. class macro_new_vehicle(marid,MkII_CIS)// not ran
  90. {
  91. class Lock_this_shit
  92. {
  93. init = "(_this select 0) setVehicleLock ""LOCKED""";
  94. };
  95. };
  96. class macro_new_vehicle(artillery,CIS_Arty)
  97. {
  98. class Add_arty
  99. {
  100. init = [_this select 0] spawn macro_fnc_name(hemtt_rocket_arty);
  101. };
  102. };
  103. class macro_new_vehicle(bacta,healing)//add doggo to spell,no heal
  104. {
  105. class add_heal
  106. {
  107. init = [_this select 0] spawn macro_fnc_name(add_heal_action);
  108. };
  109. // class add_doggo
  110. // {
  111. // init = [_this select 0] spawn macro_fnc_name(add_doggo);
  112. // }
  113. };
  114. class macro_new_vehicle(ATTE,MkII)
  115. {
  116. class set_mass
  117. {
  118. init = [_this select 0,72800] spawn macro_fnc_name(set_mass);
  119. };
  120. }
  121. class macro_new_vehicle(ATTE,uav_MkII)//good
  122. {
  123. class set_mass
  124. {
  125. init = [_this select 0,72800] spawn macro_fnc_name(set_mass);
  126. };
  127. };
  128. class macro_new_vehicle(delta,7a_Mk2)
  129. {
  130. class set_mass
  131. {
  132. init = [_this select 0,10200] spawn macro_fnc_name(set_mass);
  133. };
  134. };
  135. class macro_new_vehicle(delta,7b_Mk2)
  136. {
  137. class set_mass
  138. {
  139. init = [_this select 0,10200] spawn macro_fnc_name(set_mass);
  140. };
  141. };
  142. class macro_new_vehicle(eta,lime_Mk2)
  143. {
  144. class set_mass
  145. {
  146. init = [_this select 0,15000] spawn macro_fnc_name(set_mass);
  147. };
  148. };
  149. class macro_new_vehicle(turret_ATTE,Stomper)
  150. {
  151. class atte_uav_init
  152. {
  153. init = [_this select 0] spawn macro_fnc_name(atte_uav_init);
  154. };
  155. };
  156. class macro_new_vehicle(warden_tank,mobile)
  157. {
  158. class adsd_tow
  159. {
  160. init = [_this select 0] spawn macro_fnc_name(warden_tow);
  161. };
  162. };
  163. class O_SWOP_AAT_1
  164. {
  165. class lock_me_in_hamachi
  166. {
  167. init = [_this select 0] spawn macro_fnc_name(aatInit);
  168. }
  169. };
  170. class macro_new_vehicle(laat,cargo_Mk2)
  171. {
  172. class laatc_lift
  173. {
  174. init = [_this select 0] spawn macro_fnc_name(vehicle_lift);
  175. };
  176. };
  177. class macro_new_vehicle(HMP,gunship)
  178. {
  179. class turret1
  180. {
  181. init = [_this select 0,macro_single_quote(macro_new_vehicle(Praetorian_Variant,opfor)),[0,5,-.5]] spawn macro_fnc_name(apply_aircraft_turrets);
  182. };
  183. class turret2
  184. {
  185. init = [_this select 0,macro_single_quote(macro_new_vehicle(Praetorian_Variant,opfor)),[5,0,-.5]] spawn macro_fnc_name(apply_aircraft_turrets);
  186. };
  187. class turret3
  188. {
  189. init = [_this select 0,macro_single_quote(macro_new_vehicle(Praetorian_Variant,opfor)),[-5,0,-.5]] spawn macro_fnc_name(apply_aircraft_turrets);
  190. };
  191. };
  192. #include "_init_functions/cis_aircraft_turrets.hpp"
  193. #include "_init_functions/empire_aircraft_turrets.hpp"
  194. #include "_init_functions/rebel_aircraft_turrets.hpp"
  195. #include "_init_functions/republic_aircraft_turrets.hpp"
  196. #include "_init_functions/resistance_aircraft_turrets.hpp"
  197. };
  198. class Extended_Deleted_EventHandlers
  199. {
  200. class macro_new_vehicle(droideka,base)
  201. {
  202. macro_remove_attached_stuff_XEH
  203. };
  204. class O_SWOP_Hailfire_base //error
  205. {
  206. macro_remove_attached_stuff_XEH
  207. };
  208. class macro_new_vehicle(homing_spider_droid,Moveable_MKII)
  209. {
  210. macro_remove_attached_stuff_XEH
  211. };
  212. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  213. {
  214. macro_remove_attached_stuff_XEH
  215. };
  216. class macro_new_vehicle(artillery,CIS_Arty)
  217. {
  218. macro_remove_attached_stuff_XEH
  219. };
  220. class macro_new_vehicle(ATTE,MkII)
  221. {
  222. macro_remove_attached_stuff_XEH
  223. }
  224. class macro_new_vehicle(turret_ATTE,Stomper)
  225. {
  226. macro_remove_attached_stuff_XEH
  227. }
  228. class macro_new_vehicle(e_web,shield)
  229. {
  230. macro_remove_attached_stuff_XEH
  231. };
  232. #include "_delete_functions/remove_aircraft_turret.hpp"
  233. };
  234. class Extended_GetIn_EventHandlers
  235. {
  236. class Plane
  237. {
  238. class fuck_auto_vectoring
  239. {
  240. GetIn = "(_this select 2) action ['VTOLVectoring', (_this select 0)];";
  241. };
  242. };
  243. };