config.cpp 5.4 KB

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