config.cpp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. #include "_init_functions/cis_aircraft_turrets.hpp"
  158. #include "_init_functions/empire_aircraft_turrets.hpp"
  159. #include "_init_functions/rebel_aircraft_turrets.hpp"
  160. #include "_init_functions/republic_aircraft_turrets.hpp"
  161. #include "_init_functions/resistance_aircraft_turrets.hpp"
  162. };
  163. class Extended_Deleted_EventHandlers
  164. {
  165. class macro_new_vehicle(droideka,base)
  166. {
  167. macro_remove_attached_stuff_XEH
  168. };
  169. class O_SWOP_Hailfire_base //error
  170. {
  171. macro_remove_attached_stuff_XEH
  172. };
  173. class macro_new_vehicle(homing_spider_droid,Moveable_MKII)
  174. {
  175. macro_remove_attached_stuff_XEH
  176. };
  177. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  178. {
  179. macro_remove_attached_stuff_XEH
  180. };
  181. class macro_new_vehicle(artillery,CIS_Arty)
  182. {
  183. macro_remove_attached_stuff_XEH
  184. };
  185. class macro_new_vehicle(ATTE,MkII)
  186. {
  187. macro_remove_attached_stuff_XEH
  188. }
  189. class macro_new_vehicle(turret_ATTE,Stomper)
  190. {
  191. macro_remove_attached_stuff_XEH
  192. }
  193. class macro_new_vehicle(e_web,shield)
  194. {
  195. macro_remove_attached_stuff_XEH
  196. };
  197. #include "_delete_functions/remove_aircraft_turret.hpp"
  198. };
  199. class Extended_GetIn_EventHandlers
  200. {
  201. class Plane
  202. {
  203. class fuck_auto_vectoring
  204. {
  205. GetIn = "(_this select 2) action ['VTOLVectoring', (_this select 0)];";
  206. };
  207. };
  208. };