123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- #include "../RD501_main/config_macros.hpp"
- #include "_init_functions/common_xeh.hpp"
- #define macro_remove_turret\
- class remove_attched_turrets \
- {\
- deleted = [_this select 0] spawn macro_fnc_name(remove_attached_objects);\
- };\
- #define macro_remove_attached_stuff_XEH\
- class remove_atached_stuff \
- {\
- deleted = [_this select 0] spawn macro_fnc_name(remove_attached_objects);\
- };\
- #define macro_fix_xeh\
- class anti_wobble\
- {\
- init = "(_this select 0) setVelocity [0,0,100]";\
- };
- class CfgPatches
- {
- class macro_patch_name(vehicles)
- {
- author=DANKAUTHORS
- requiredAddons[]=
- {
- macro_lvl2_req
- };
- requiredVersion=0.1;
- units[]={};
- weapons[]={};
- };
- };
- class Extended_Init_EventHandlers
- {
- class SW_SpeederBike_base
- {
- class anti_wobble
- {
- init = "(_this select 0) setVelocity [0,0,1]";
- };
- };
- class SW_BARC
- {
- class anti_wobble
- {
- init = "(_this select 0) setVelocity [0,0,1]";
- };
- }
-
- class macro_new_vehicle(homing_spider_droid,Moveable_MKII)
- {
- class movable_script
- {
- init = [_this select 0] spawn macro_fnc_name(og10_move);
- };
- };
- class O_SWOP_Hailfire_base
- {
- class hailfire_aa_script
- {
- init = [_this select 0] spawn macro_fnc_name(hailfire_init);
- };
- };
- class macro_new_vehicle(e_web,shield)
- {
- class shield
- {
- init = [_this select 0] spawn macro_fnc_name(eweb_shield);
- };
- };
- class macro_new_vehicle(droideka,camo)
- {
- class droideka_movable
- {
- init = [_this select 0] spawn macro_fnc_name(droidekka_move);
- };
- };
- class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
- {
- class dwarf_movable
- {
- init = [_this select 0] spawn macro_fnc_name(dwarf_move);
- };
- };
- class macro_new_vehicle(marid,MkII_CIS)// not ran
- {
- class Lock_this_shit
- {
- init = "(_this select 0) setVehicleLock ""LOCKED""";
- };
- };
- class macro_new_vehicle(artillery,CIS_Arty)
- {
- class Add_arty
- {
- init = [_this select 0] spawn macro_fnc_name(hemtt_rocket_arty);
- };
- };
- class macro_new_vehicle(bacta,healing)//add doggo to spell,no heal
- {
- class add_heal
- {
- init = [_this select 0] spawn macro_fnc_name(add_heal_action);
- };
- // class add_doggo
- // {
- // init = [_this select 0] spawn macro_fnc_name(add_doggo);
- // }
- };
- class macro_new_vehicle(ATTE,MkII)
- {
- class set_mass
- {
- init = [_this select 0,72800] spawn macro_fnc_name(set_mass);
- };
- }
- class macro_new_vehicle(ATTE,uav_MkII)//good
- {
- class set_mass
- {
- init = [_this select 0,72800] spawn macro_fnc_name(set_mass);
- };
- };
- class macro_new_vehicle(turret_ATTE,Stomper)
- {
- class atte_uav_init
- {
- init = [_this select 0] spawn macro_fnc_name(atte_uav_init);
- };
- };
- class macro_new_vehicle(warden_tank,mobile)
- {
- class adsd_tow
- {
- init = [_this select 0] spawn macro_fnc_name(warden_tow);
- };
- };
- class O_SWOP_AAT_1
- {
- class lock_me_in_hamachi
- {
- init = [_this select 0] spawn macro_fnc_name(aatInit);
- }
- };
- class macro_new_vehicle(laat,cargo_Mk2)
- {
- class laatc_lift
- {
- init = [_this select 0] spawn macro_fnc_name(vehicle_lift);
- };
- };
- #include "_init_functions/cis_aircraft_turrets.hpp"
- #include "_init_functions/empire_aircraft_turrets.hpp"
- #include "_init_functions/rebel_aircraft_turrets.hpp"
- #include "_init_functions/republic_aircraft_turrets.hpp"
- #include "_init_functions/resistance_aircraft_turrets.hpp"
- };
- class Extended_Deleted_EventHandlers
- {
-
- class macro_new_vehicle(droideka,base)
- {
- macro_remove_attached_stuff_XEH
- };
- class O_SWOP_Hailfire_base //error
- {
- macro_remove_attached_stuff_XEH
- };
- class macro_new_vehicle(homing_spider_droid,Moveable_MKII)
- {
- macro_remove_attached_stuff_XEH
- };
- class macro_new_vehicle(dwarf_spider_droid,Movable_MkII)
- {
- macro_remove_attached_stuff_XEH
- };
- class macro_new_vehicle(artillery,CIS_Arty)
- {
- macro_remove_attached_stuff_XEH
- };
- class macro_new_vehicle(ATTE,MkII)
- {
- macro_remove_attached_stuff_XEH
- }
- class macro_new_vehicle(turret_ATTE,Stomper)
- {
- macro_remove_attached_stuff_XEH
- }
- class macro_new_vehicle(e_web,shield)
- {
- macro_remove_attached_stuff_XEH
- };
- #include "_delete_functions/remove_aircraft_turret.hpp"
- };
- class Extended_GetIn_EventHandlers
- {
- class Plane
- {
- class fuck_auto_vectoring
- {
- GetIn = "(_this select 2) action ['VTOLVectoring', (_this select 0)];";
- };
- };
- };
|