config.cpp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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,camo)
  70. {
  71. class droideka_movable
  72. {
  73. init = [_this select 0] spawn macro_fnc_name(droidekka_move);
  74. };
  75. };
  76. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  77. {
  78. class dwarf_movable
  79. {
  80. init = [_this select 0] spawn macro_fnc_name(dwarf_move);
  81. };
  82. };
  83. class macro_new_vehicle(marid,MkII_CIS)// not ran
  84. {
  85. class Lock_this_shit
  86. {
  87. init = "(_this select 0) setVehicleLock ""LOCKED""";
  88. };
  89. };
  90. class macro_new_vehicle(artillery,CIS_Arty)
  91. {
  92. class Add_arty
  93. {
  94. init = [_this select 0] spawn macro_fnc_name(hemtt_rocket_arty);
  95. };
  96. };
  97. class macro_new_vehicle(bacta,healing)//add doggo to spell,no heal
  98. {
  99. class add_heal
  100. {
  101. init = [_this select 0] spawn macro_fnc_name(add_heal_action);
  102. };
  103. // class add_doggo
  104. // {
  105. // init = [_this select 0] spawn macro_fnc_name(add_doggo);
  106. // }
  107. };
  108. class macro_new_vehicle(ATTE,MkII)
  109. {
  110. class set_mass
  111. {
  112. init = [_this select 0,72800] spawn macro_fnc_name(set_mass);
  113. };
  114. }
  115. class macro_new_vehicle(ATTE,uav_MkII)//good
  116. {
  117. class set_mass
  118. {
  119. init = [_this select 0,72800] spawn macro_fnc_name(set_mass);
  120. };
  121. };
  122. class macro_new_vehicle(turret_ATTE,Stomper)
  123. {
  124. class atte_uav_init
  125. {
  126. init = [_this select 0] spawn macro_fnc_name(atte_uav_init);
  127. };
  128. };
  129. class macro_new_vehicle(warden_tank,mobile)
  130. {
  131. class adsd_tow
  132. {
  133. init = [_this select 0] spawn macro_fnc_name(warden_tow);
  134. };
  135. };
  136. class O_SWOP_AAT_1
  137. {
  138. class lock_me_in_hamachi
  139. {
  140. init = [_this select 0] spawn macro_fnc_name(aatInit);
  141. }
  142. };
  143. class macro_new_vehicle(laat,cargo_Mk2)
  144. {
  145. class laatc_lift
  146. {
  147. init = [_this select 0] spawn macro_fnc_name(vehicle_lift);
  148. };
  149. };
  150. #include "_init_functions/cis_aircraft_turrets.hpp"
  151. #include "_init_functions/empire_aircraft_turrets.hpp"
  152. #include "_init_functions/rebel_aircraft_turrets.hpp"
  153. #include "_init_functions/republic_aircraft_turrets.hpp"
  154. #include "_init_functions/resistance_aircraft_turrets.hpp"
  155. };
  156. class Extended_Deleted_EventHandlers
  157. {
  158. class macro_new_vehicle(droideka,base)
  159. {
  160. macro_remove_attached_stuff_XEH
  161. };
  162. class O_SWOP_Hailfire_base //error
  163. {
  164. macro_remove_attached_stuff_XEH
  165. };
  166. class macro_new_vehicle(homing_spider_droid,Moveable_MKII)
  167. {
  168. macro_remove_attached_stuff_XEH
  169. };
  170. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  171. {
  172. macro_remove_attached_stuff_XEH
  173. };
  174. class macro_new_vehicle(artillery,CIS_Arty)
  175. {
  176. macro_remove_attached_stuff_XEH
  177. };
  178. class macro_new_vehicle(ATTE,MkII)
  179. {
  180. macro_remove_attached_stuff_XEH
  181. }
  182. class macro_new_vehicle(turret_ATTE,Stomper)
  183. {
  184. macro_remove_attached_stuff_XEH
  185. }
  186. class macro_new_vehicle(e_web,shield)
  187. {
  188. macro_remove_attached_stuff_XEH
  189. };
  190. #include "_delete_functions/remove_aircraft_turret.hpp"
  191. };
  192. class Extended_GetIn_EventHandlers
  193. {
  194. class Plane
  195. {
  196. class fuck_auto_vectoring
  197. {
  198. GetIn = "(_this select 2) action ['VTOLVectoring', (_this select 0)];";
  199. };
  200. };
  201. };