config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 macro_new_vehicle(droideka,normal)
  35. {
  36. class droideka_movable
  37. {
  38. init = [_this select 0] spawn macro_fnc_name(droidekka_move);
  39. };
  40. };
  41. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  42. {
  43. class dwarf_movable
  44. {
  45. init = [_this select 0] spawn macro_fnc_name(dwarf_move);
  46. };
  47. };
  48. class macro_new_vehicle(crab_droid,Movable_MkII)
  49. {
  50. class crab_movable
  51. {
  52. init = [_this select 0] spawn macro_fnc_name(dwarf_move);
  53. };
  54. };
  55. class macro_new_vehicle(bacta,healing)//add doggo to spell,no heal
  56. {
  57. class add_heal
  58. {
  59. init = [_this select 0] spawn macro_fnc_name(add_heal_action);
  60. };
  61. // class add_doggo
  62. // {
  63. // init = [_this select 0] spawn macro_fnc_name(add_doggo);
  64. // }
  65. };
  66. class macro_new_vehicle(warden_tank,mobile)
  67. {
  68. class adsd_tow
  69. {
  70. init = [_this select 0] spawn macro_fnc_name(warden_tow);
  71. };
  72. };
  73. #include "_init_functions/cis_aircraft_turrets.hpp"
  74. };
  75. class Extended_Deleted_EventHandlers
  76. {
  77. class macro_new_vehicle(droideka,base)
  78. {
  79. macro_remove_attached_stuff_XEH
  80. };
  81. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
  82. {
  83. macro_remove_attached_stuff_XEH
  84. };
  85. #include "_delete_functions/remove_aircraft_turret.hpp"
  86. };
  87. class Extended_GetIn_EventHandlers
  88. {
  89. class Plane
  90. {
  91. class fuck_auto_vectoring
  92. {
  93. GetIn = "(_this select 2) action ['VTOLVectoring', (_this select 0)];";
  94. };
  95. };
  96. };