123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- //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 Weird_Shuttles
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- class CfgPatches
- {
- class macro_patch_name(Weird_Shuttles)
- {
- addonRootClass=macro_patch_name(vehicles)
- requiredAddons[]=
- {
- macro_patch_name(vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- "sh_flyable",
- macro_new_vehicle(shuttle,Millenium_Falcon),
- "techno_union"
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "../../common/sensor_templates.hpp"
- class CBA_Extended_EventHandlers_base;
- class CfgVehicles
- {
- class Plane;
- class Xarc;
- class Strategic;
- class swop_lambda:Xarc
- {
- class ACE_SelfActions;
- };
- class Plane_Base_F:Plane
- {
- class Turrets;
- class ACE_SelfActions;
- };
- class sh_flyable: swop_lambda
- {
- scope = 2;
- icon = "\lamda\symb.paa";
- model = "\shut\sh_flyable.p3d";
- picture = "\lamda\symb.paa";
- class ACE_SelfActions:ACE_SelfActions
- {
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- class EventHandlers {
- class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
- };
- };
-
- class swop_MF: Plane_Base_F
- {
-
- transportSoldier = 30;
- class ACE_SelfActions:ACE_SelfActions
- {
- #include "../../common/universal_hud_color_changer.hpp"
- };
- #include "../../common/universal_mfd.hpp"
- class Turrets:Turrets
- {
- class MainTurret;
- };
- };
- class macro_new_vehicle(shuttle,Millenium_Falcon) : Swop_mf
- {
- faction = macro_rebel_faction
- editorSubcategory = macro_editor_cat_air(Rebel_vtol)
- vehicleClass = macro_editor_vehicle_type_air(Rebel)
- scope = 2;
- altFullForce = 6000;
- airBrakeFrictionCoef = 80.4;
- altNoForce = 9000;
- armor = 600;
- forceInGarage=1;
- displayname = "Millenium Falcon Mk.I";
- class EventHandlers{};
- class UserActions
- {
- class AfterburnerOn
- {
- displayName = "<t color='#4C9900'>[Afterburner On]</t>";
- shortcut = "";
- condition = "speed this >50 and (!(this getVariable 'AfterburnerMF'))";
- statement = "this setVariable ['AfterburnerMF',true];this spawn nes4day_afterburnerMF";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 50;
- onlyforplayer = 1;
- };
- class AfterburnerOff
- {
- displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
- shortcut = "";
- condition = "(this getVariable 'AfterburnerMF')";
- statement = "this setVariable ['AfterburnerMF',false]";
- priority = 1e+011;
- displayNameDefault = "";
- position = "pilotview";
- radius = 50;
- onlyforplayer = 1;
- };
- };
- weapons[] = {
- macro_new_weapon(wynd,a2a),
- macro_new_weapon(wynd,agm),
- macro_new_weapon(wynd,ugm),
- macro_basic_air_weapons,
- macro_new_weapon(generic,ion_aircraft_cannon)
- };
- magazines[] = {
-
- macro_new_mag(a2a,4),
- macro_new_mag(agm,6),
- macro_new_mag(ugm,10),
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_blue,1000),
- macro_new_mag(generic_aircraft_cannon_blue,1000)
- };
- class Turrets:Turrets
- {
- class MainTurret:MainTurret
- {
-
- weapons[] = {
-
- macro_basic_air_weapons,
- macro_new_weapon(generic,republic_aircraft_cannon)
- };
- magazines[] = {
-
- macro_basic_air_mags,
- macro_new_mag(generic_aircraft_cannon_green,1000),
- macro_new_mag(generic_aircraft_cannon_green,1000)
- };
- };
- };
- };
-
- class techno_union : Strategic
- {
- scope = 2;
- scopeCurator = 2; // public
- model = "\RD501_Vehicles\static\technounion\techno_union.p3d"; // our p3d model.
- placement = vertical;
- mapSize = 3;
- author="Spartan163"; // Icon size in the editor.
- displayName = "Techno Union Frigate"; // List Name in the editor.
- vehicleClass = "Coop_Structure"; // Faction Class.
- faction = "RD501FactionOpfor"; // Faction
- icon = "\RD501_Vehicles\static\technounion\dataTechnoU\TechnoU.paa";
- cost = 0;
- armor = 8000;
- };
- };
|