123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- //get generlized macros
- #include "../../../RD501_main/config_macros.hpp"
- //General name of the vehicle
- #define vehicle_addon nuclass
- class CfgPatches
- {
- class macro_patch_name(nuclass)
- {
- addonRootClass=macro_patch_name(vehicles)
- requiredAddons[]=
- {
- macro_patch_name(vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(nuclass,mk1)
- };
- weapons[]=
- {
-
- };
- };
- };
- class CfgVehicles
- {
- class 3as_nuclass_base;
- class 3as_nuclass_f: 3as_nuclass_base
- {
- class UserActions;
- };
- class 3AS_Nuclass : 3as_nuclass_f
- {
- class UserActions: UserActions
- {
- class rampOpen;
- class rampClose;
- class frontrampOpen;
- class frontrampClose;
- };
- };
- class macro_new_vehicle(nuclass,mk1) : 3AS_Nuclass
- {
- scope=2;
- displayName="Republic NuClass Mk.I"
- armor=2300;
- faction = macro_republic_faction
- editorSubcategory = macro_editor_cat_air(Republic_heli)
- vehicleClass = macro_editor_vehicle_type_air(Republic)
- transportSoldier=35;
-
- #include "../../common/common_pilotCamera.hpp"
- RD501_magclamp_large[] = {0.0,1.5,-0.5};
- RD501_magclamp_small_forbidden=1;
- RD501_magclamp_large_offset[]={0.0,0.0,-10.0};
- weapons[]=
- {
- "ParticleBeamCannon_Nu",
- "CMFlareLauncher",
- "missiles_DAR",
- macro_new_weapon(generic,kannon),
- "Laserdesignator_pilotCamera"
- };
- magazines[]=
- {
- "240Rnd_CMFlare_Chaff_Magazine",
- "240Rnd_CMFlare_Chaff_Magazine",
- "240Rnd_CMFlare_Chaff_Magazine",
- "240Rnd_CMFlare_Chaff_Magazine",
- "Laser_Battery_F",
- "Laser_Battery_F",
- "Laser_Battery_F",
- "24Rnd_missiles",
- "24Rnd_missiles",
- "24Rnd_missiles",
- "24Rnd_missiles",
- macro_new_mag(Kannon,100),
- macro_new_mag(Kannon,100),
- "Laserbatteries"
- };
- class UserActions:UserActions
- {
- class ThrusterEngage
- {
- displayName = "";
- displayNameDefault = "";
- textToolTip = "";
- position = "pilotview";
- radius = 20;
- priority = 0;
- onlyForPlayer = 1;
- condition = "((player == driver this) AND (alive this))";
- statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
- shortcut="User19"
- };
- class ThrusterDisengage: ThrusterEngage
- {
- priority = 0;
- displayName = "";
- displayNameDefault = "";
- textToolTip = "";
- condition = "((player == driver this) AND (alive this))";
- statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
- shortcut="User20"
- };
- class rampOpen: rampOpen
- {
- condition="(this animationSourcePhase 'ramp' == 0) AND (alive this) AND (player in [gunner this, driver this])";
- };
- class rampClose: rampClose
- {
- condition="(this animationSourcePhase 'ramp' == 1) AND (alive this) AND (player in [gunner this, driver this])";
- };
- class frontrampOpen: frontrampOpen
- {
- condition="(this animationSourcePhase 'rampfront' == 0) AND (alive this) AND (player in [gunner this, driver this])";
- };
- class frontrampClose: frontrampClose
- {
- condition="(this animationSourcePhase 'rampfront' == 1) AND (alive this) AND (player in [gunner this, driver this])";
- };
- };
- class ACE_SelfActions
- {
- class ACE_Passengers
- {
- condition = "alive _target";
- displayName = "Passengers";
- insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
- statement = "";
- };
- };
- };
- };
|