123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605 |
- //Get this addons macro
- //get the macro for the air subaddon
- //get generlized macros
- #include "../../../RD501_main/config_macros.hpp"
- //General name of the vehicle
- #define vehicle_addon TIE
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define macro_new_tie_class(name) vehicle_classname##_##name
- #define macro_inherit_ace_selfactions(classname,base)\
- class classname:base\
- {\
- class ACE_SelfActions;\
- };
- class CfgPatches
- {
- class macro_patch_name(TIE)
- {
- addonRootClass=macro_patch_name(vehicles)
- requiredAddons[]=
- {
- macro_patch_name(vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(TIE,stryker_MkII),
- macro_new_vehicle(TIE,interceptor_MkII),
- macro_new_vehicle(TIE,fighter_MkII),
- macro_new_vehicle(TIE,defender_MkII),
- macro_new_vehicle(TIE,bomber_MkII),
- macro_new_vehicle(TIE,x1_MkII),
- macro_new_vehicle(TIE,fo),
- macro_new_vehicle(TIE,sf),
- macro_new_vehicle(TIE,silencer)
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "../../common/sensor_templates.hpp"
- class CfgVehicles
- {
- class Plane_Base_F;
- class Xtiestkr;
-
- macro_inherit_ace_selfactions(swop_tie_stryker,Xtiestkr)
- macro_inherit_ace_selfactions(swop_tie_int,Plane_Base_F)
- macro_inherit_ace_selfactions(swop_tie,Plane_Base_F)
- macro_inherit_ace_selfactions(swop_tiedef,Plane_Base_F)
- macro_inherit_ace_selfactions(swop_tieb,Plane_Base_F)
- macro_inherit_ace_selfactions(swop_tiex1,Plane_Base_F)
-
-
- class macro_new_vehicle(TIE,stryker_MkII) : swop_tie_stryker
- {
- scope = 2;
- forceInGarage=1;
- displayName="TIE Stryker Class Mk.II";
- altFullForce = 6000;
- altNoForce = 9000;
- airBrakeFrictionCoef = 80.4;
- armor = 100;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
- statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIE')";
- statement = "this setVariable ['AfterBurnerTIE',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
-
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- };
- class macro_new_vehicle(TIE,interceptor_MkII) : swop_tie_int
- {
- forceInGarage=1;
- displayName="TIE Interceptor Class Mk.II";
- scope = 2;
- altFullForce = 6000;
- airBrakeFrictionCoef = 80.4;
- altNoForce = 9000;
- armor = 100;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
- statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIE')";
- statement = "this setVariable ['AfterBurnerTIE',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- };
- class macro_new_vehicle(TIE,fighter_MkII) : swop_tie
- {
- forceInGarage=1;
- displayName="TIE Fighter Class Mk.II";
- scope = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- armor = 200;
- airBrakeFrictionCoef = 80.4;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
- statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIE')";
- statement = "this setVariable ['AfterBurnerTIE',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- };
- class macro_new_vehicle(TIE,defender_MkII) : swop_tiedef
- {
- forceInGarage=1;
- displayName="TIE Defender Class Mk.II";
- scope = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- armor = 200;
- airBrakeFrictionCoef = 80.4;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIEdef'))";
- statement = "this setVariable ['AfterBurnerTIEdef',true];this spawn nes4day_afterburnerTIEdef";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIEdef')";
- statement = "this setVariable ['AfterBurnerTIEdef',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,ion_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_blue,1000),
- macro_new_mag(generic_aircraft_cannon_blue,1000)
- };
-
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- };
- class macro_new_vehicle(TIE,bomber_MkII) : swop_tieb
- {
- forceInGarage=1;
- displayName="TIE Bomber Class Mk.II";
- scope = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- armor = 400;
- airBrakeFrictionCoef = 80.4;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
-
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon),
- macro_new_weapon(bomb,cluster),
- macro_new_weapon(bomb,SDB),
- macro_new_weapon(bomb,LGB)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(cluster_bomb,4),
- macro_new_mag(cluster_bomb,4),
- macro_new_mag(cluster_bomb,4),
- macro_new_mag(sdb_bomb,4),
- macro_new_mag(sdb_bomb,4),
- macro_new_mag(sdb_bomb,4),
- macro_new_mag(lgb_bomb,4),
- macro_new_mag(lgb_bomb,4),
- macro_new_mag(lgb_bomb,4)
- };
-
-
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- };
- class macro_new_vehicle(TIE,x1_MkII) : swop_tiex1
- {
- forceInGarage=1;
- displayName="TIE X1 Class Mk.II";
- scope = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- armor = 600;
-
- airBrakeFrictionCoef = 80.4;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
- statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIE')";
- statement = "this setVariable ['AfterBurnerTIE',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
-
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- };
- class Xtiefo;
- macro_inherit_ace_selfactions(swop_tie_silencer,Plane_Base_F)
- macro_inherit_ace_selfactions(swop_tiefo,Xtiefo)
- macro_inherit_ace_selfactions(swop_tiefosf,Xtiefo)
- class macro_new_vehicle(TIE,fo) : swop_tiefo
- {
- forceInGarage=1;
- displayName="TIE First Order Class Mk.II";
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- scope = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- armor = 100;
-
- airBrakeFrictionCoef = 80.4;
- faction = macro_first_order_faction
- editorSubcategory = macro_editor_cat_air(First_Order)
- vehicleClass = macro_editor_vehicle_type_air(First_Order)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
- statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIE')";
- statement = "this setVariable ['AfterBurnerTIE',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- };
- class macro_new_vehicle(TIE,sf) : swop_tiefosf
- {
- forceInGarage=1;
- displayName="TIE Special Forces Class Mk.II";
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- scope = 2;
- scopecurator = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- airBrakeFrictionCoef = 80.4;
- armor = 200;
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat_air(Empire_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Empire)
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
- statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIE')";
- statement = "this setVariable ['AfterBurnerTIE',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- };
- class macro_new_vehicle(TIE,silencer) : swop_tie_silencer
- {
- forceInGarage=1;
- displayName="TIE Silencer Class Mk.II";
- scope = 2;
- altFullForce = 6000;
- altNoForce = 9000;
- armor = 600;
- airBrakeFrictionCoef = 80.4;
- faction = macro_first_order_faction
- editorSubcategory = macro_editor_cat_air(First_Order)
- vehicleClass = macro_editor_vehicle_type_air(First_Order)
- class ACE_SelfActions:ACE_SelfActions
- {
-
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- class UserActions
- {
-
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIEsil'))";
- statement = "this setVariable ['AfterBurnerTIEsil',true];this spawn nes4day_afterburnerTIEsil";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterBurnerTIEsil')";
- statement = "this setVariable ['AfterBurnerTIEsil',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 15;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_basic_air_weapons,
- macro_new_weapon(generic,imperial_aircraft_cannon)
- };
- magazines[] = {
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- };
-
-
-
-
-
- };
|