123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491 |
- //Get this addons macro
- //get the macro for the air macro_patch_name(vehicles)
- //get generlized macros
- #include "../../../RD501_main/config_macros.hpp"
- //General name of the vehicle
- #define vehicle_addon saber
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define new_saber_class(name) vehicle_classname##_##name
- #define macro_republic_skin hiddenSelectionsTextures[] = {"tx130s\imp_tank_rep_a_c.paa"};
- //common mag-weap
- #define macro_common_weap\
- "Laserdesignator_pilotCamera"
- #define macro_common_mag\
- "Laserbatteries"
- //super saber mag-weap
- #define macro_super_saber_weap\
- macro_common_weap,\
- macro_new_weapon(saber_gun,mbt)
- #define macro_super_saber_mag\
- macro_common_mag,\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),
- //normal saber mag-weap
- #define macro_saber_weap\
- macro_common_weap,\
- macro_new_weapon(super_mg,z6)
- #define macro_saber_mag\
- macro_common_mag,\
- macro_new_mag(supercharged_z6,400),\
- macro_new_mag(supercharged_z6,400),\
- macro_new_mag(supercharged_z6,400),\
- macro_new_mag(supercharged_z6,400),\
- macro_new_mag(supercharged_z6,400),\
- macro_new_mag(supercharged_z6,400),\
- macro_new_mag(supercharged_z6,400)
- #define macro_saber_weap_imperial\
- macro_common_weap,\
- macro_new_weapon(super_mg,dlt19)
- #define macro_saber_mag_imperial\
- macro_common_mag,\
- macro_new_mag(supercharged_dlt19,200),\
- macro_new_mag(supercharged_dlt19,200),\
- macro_new_mag(supercharged_dlt19,200),\
- macro_new_mag(supercharged_dlt19,200),\
- macro_new_mag(supercharged_dlt19,200),\
- macro_new_mag(supercharged_dlt19,200),\
- macro_new_mag(supercharged_dlt19,200)
- #define macro_saber_main_weap\
- macro_common_weap,\
- macro_new_weapon(saber_gun,td),\
- "SmokeLauncher"
- #define macro_saber_main_mag\
- macro_common_mag,\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),\
- macro_new_mag(saber_tx130,10),\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag",\
- "smokelaunchermag"
-
- #define macro_saber_driver\
- weapons[] = {"SmokeLauncher","Laserdesignator_pilotCamera","CMFlareLauncher"};\
- magazines[] = {"300Rnd_CMFlare_Chaff_Magazine","Laserbatteries","smokelaunchermag","smokelaunchermag","smokelaunchermag","smokelaunchermag","smokelaunchermag","smokelaunchermag","smokelaunchermag","smokelaunchermag"};
- #define macro_command_saber_smoke\
- smokeLauncherGrenadeCount = 12;\
- smokeLauncherVelocity = 14;\
- smokeLauncherOnTurret = 1;\
- smokeLauncherAngle = 360;
- #define macro_saber_smoke\
- smokeLauncherGrenadeCount = 24;\
- smokeLauncherVelocity = 14;\
- smokeLauncherOnTurret = 0;\
- smokeLauncherAngle = 160;
- class CfgPatches
- {
- class macro_patch_name(saber)
- {
- addonRootClass=macro_patch_name(vehicles)
- requiredAddons[]=
- {
- macro_patch_name(vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(saber,republic_tx130_MkII),
- macro_new_vehicle(saber,republic_tx130_gl_MkII),
- macro_new_vehicle(saber,republic_tx130_super_MkII),
- macro_new_vehicle(saber,republic_tx130_recon_MkII)
- /*macro_new_vehicle(saber,empire_super_saber_MkII),
- macro_new_vehicle(saber,empire_saber_MkII),
- macro_new_vehicle(saber,empire_command_saber_MkII),
- macro_new_vehicle(saber,republic_super_saber_MkII),
- macro_new_vehicle(saber,republic_saber_MkII),
- macro_new_vehicle(saber,republic_command_saber_MkII)*/
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "../../common/sensor_templates.hpp"
- class DefaultEventhandlers;
- class CfgVehicles
- {
- //O_JM_TX130_1 empire command
- //O_JM_TX130m1_1 normal
- //O_JM_TX130m2_1 super
- class LandVehicle;
- class Tank: LandVehicle
- {
- class NewTurret;
- class Sounds;
- class HitPoints;
- };
- class Tank_F: Tank
- {
- class Turrets
- {
- class MainTurret: NewTurret
- {
- class Turrets
- {
- class CommanderOptics;
- };
- };
- };
- };
- class 3as_saber_01_Base: Tank_F
- {
- RD501_magclamp_small_offset[] = {0.0,0.0,-3.0};
- RD501_magclamp_large_offset[] = {0.0,0.0,-3.0};
- class Turrets:Turrets
- {
- class MainTurret_bottom: NewTurret{};
- class Mainturret_top:MainTurret_bottom{};
- };
- };
- #include "inheritance.hpp"
- class 3as_saber_Base:3as_saber_01_Base
- {
- class Turrets:Turrets
- {
- class MainTurret_bottom:MainTurret_bottom{};
- class Mainturret_top:Mainturret_top{};
- };
- };
- class 3as_saber_m1:3as_saber_Base
- {
- class Turrets: Turrets
- {
- class MainTurret_bottom:MainTurret_bottom{};
- class Mainturret_top:Mainturret_top{};
- };
- };
- class 3as_saber_m1G;
- class 3as_saber_super_base:3as_saber_01_Base
- {
- class Turrets:Turrets
- {
- class Mainturret_super: MainTurret_bottom{};
- };
- };
- class 3as_saber_super:3as_saber_super_base
- {
- class Turrets: Turrets
- {
- class Mainturret_super: Mainturret_super{};
- };
- };
- class 3as_saber_03_Base:3as_saber_01_Base
- {
- class Turrets:Turrets
- {
- class MainTurret_top: Mainturret_top{};
- class MainTurret_bottom: MainTurret_bottom{};
- };
- };
- class 3as_saber_m1Recon:3as_saber_03_Base
- {
- class Turrets: Turrets
- {
- class MainTurret_top: Mainturret_top{};
- class MainTurret_bottom: MainTurret_bottom{};
- };
- };
- class macro_new_vehicle(saber,republic_tx130_MkII):3as_saber_m1
- {
- scope=2;
- forceInGarage = 1;
- scopeCurator=2;
- displayName = "Saber TX-130 Mk.II"
- faction = macro_republic_faction
- editorSubcategory = macro_editor_cat(tank)
- vehicleClass = macro_editor_vehicle_type(tank)
- #include "../../common/smallvehiclekit.hpp"
- class Turrets: Turrets
- {
- class MainTurret_bottom : MainTurret_bottom{
- weapons[]=
- {
- macro_new_weapon(saber_main,cannon),
- "SmokeLauncher",
- "missiles_DAGR"
- };
- magazines[]=
- {
- macro_new_mag(saber_main,10),
- macro_new_mag(saber_main,10),
- macro_new_mag(saber_main,10),
- macro_new_mag(saber_main,10),
- macro_new_mag(saber_main,10),
- macro_new_mag(saber_main,10),
- macro_new_mag(saber_main,10),
- "SmokeLauncherMag",
- "12Rnd_PG_missiles"
- };
- };
- class Mainturret_top : Mainturret_top
- {
- weapons[]=
- {
- macro_new_weapon(saber_mg,50cal),
- "SmokeLauncher"
- };
- magazines[]=
- {
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- "SmokeLauncherMag"
- };
- };
- };
- };
- class macro_new_vehicle(saber,republic_tx130_gl_MkII):3as_saber_m1G
- {
- scope=2;
- forceInGarage = 1;
- scopeCurator=2;
- displayName = "Saber TX-130 GL Mk.II"
- faction = macro_republic_faction
- editorSubcategory = macro_editor_cat(tank)
- vehicleClass = macro_editor_vehicle_type(tank)
- #include "../../common/smallvehiclekit.hpp"
- };
- class macro_new_vehicle(saber,republic_tx130_super_MkII):3as_saber_super
- {
- scope=2;
- forceInGarage = 1;
- scopeCurator=2;
- displayName = "Saber TX-130 Super Mk.II"
- faction = macro_republic_faction
- editorSubcategory = macro_editor_cat(tank)
- vehicleClass = macro_editor_vehicle_type(tank)
- #include "../../common/smallvehiclekit.hpp"
- class Turrets: Turrets
- {
- class Mainturret_super: Mainturret_super
- {
- weapons[]=
- {
- macro_new_weapon(saber_cannon,supermkii),
- macro_new_weapon(saber_mg,50cal),
- "SmokeLauncher"
- };
- magazines[]=
- {
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_super_3as,25),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- "SmokeLauncherMag"
- };
- };
- };
- };
- class macro_new_vehicle(saber,republic_tx130_recon_MkII):3as_saber_m1Recon
- {
- scope=2;
- forceInGarage = 1;
- scopeCurator=2;
- displayName = "Saber TX-130 Recon Mk.II"
- faction = macro_republic_faction
- editorSubcategory = macro_editor_cat(tank)
- vehicleClass = macro_editor_vehicle_type(tank)
- #include "../../common/smallvehiclekit.hpp"
- class Turrets: Turrets
- {
- class MainTurret_top: Mainturret_top{};
- class MainTurret_bottom: MainTurret_bottom
- {
- weapons[]=
- {
- macro_new_weapon(saber_cannon,recon),
- macro_new_weapon(saber_mg,50cal),
- "SmokeLauncher",
- "missiles_DAGR"
- };
- magazines[]=
- {
- macro_new_mag(saber_recon,100),
- macro_new_mag(saber_recon,100),
- macro_new_mag(saber_recon,100),
- macro_new_mag(saber_recon,100),
- macro_new_mag(saber_recon,100),
- macro_new_mag(saber_recon,100),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- macro_new_mag(saber_mg,300),
- "SmokeLauncherMag",
- "12Rnd_PG_missiles"
- };
- };
- };
- };
- };
- class CfgWeapons
- {
- class 3AS_Sabre_MG;
- class 3AS_Sabre_Cannons_Super;
- class LMG_M200;
- class 3as_saber_autocannon_30mm:LMG_M200
- {
- class HE;
- };
- class 3AS_Sabre_Cannons;
- class macro_new_weapon(saber_main,cannon): 3AS_Sabre_Cannons
- {
- magazines[]=
- {
- macro_new_mag(saber_main,10)
- };
- };
- class macro_new_weapon(saber_mg,50cal):3AS_Sabre_MG
- {
- magazineReloadTime=3;
- magazines[]=
- {
- macro_new_mag(saber_mg,300)
- };
- };
- class macro_new_weapon(saber_cannon,supermkii):3AS_Sabre_Cannons_Super
- {
- magazineReloadTime=6;
- magazines[]=
- {
- macro_new_mag(saber_super_3as,25)
- };
- };
- class macro_new_weapon(saber_cannon,recon):3as_saber_autocannon_30mm
- {
- class HE: HE
- {
- magazines[]=
- {
- macro_new_mag(saber_recon,100)
- };
- magazineReloadTime=3;
- };
- };
- };
- class CfgMagazines
- {
- class 3AS_300Rnd_SabreMG_Mag;
- class 3AS_10Rnd_Sabre_mag;
- class 3as_saber_80Rnd_autocannon_30mm_mag;
- class 3as_25rnd_Sabre_Super_Mag;
- class macro_new_mag(saber_mg,300):3AS_300Rnd_SabreMG_Mag
- {
- displayName="300 Rnd Heavy MG Ammo";
- displayNameShort="Heavy MG";
- ammo=macro_new_ammo(saber_mg)
- };
- class macro_new_mag(saber_recon,100):3as_saber_80Rnd_autocannon_30mm_mag
- {
- count=100;
- ammo=macro_new_ammo(saber_auto)
- };
- class macro_new_mag(saber_main,10): 3AS_10Rnd_Sabre_mag
- {
- displayNameShort="HEAT";
- ammo=macro_new_ammo(saber_main)
- };
- class macro_new_mag(saber_super_3as,25): 3as_25rnd_Sabre_Super_Mag
- {
- ammo=macro_new_ammo(saber_super_3as)
- };
- };
- class CfgAmmo
- {
- class 3AS_EC60_BluePlasma;
- class 3AS_Sabre_HE;
- class 3as_saber_autocannon_ammo;
- class 3AS_Sabre_AT;
- class macro_new_ammo(saber_mg):3AS_EC60_BluePlasma
- {
- hit=30;
- indirectHit=0;
- indirectHitRange=0;
- cartridge="FxCartridge_127";
- visibleFire=8;
- audibleFire=120;
- dangerRadiusBulletClose=12;
- dangerRadiusHit=16;
- suppressionRadiusBulletClose=8;
- suppressionRadiusHit=12;
- cost=5;
- airLock=1;
- caliber=2.5999999;
- typicalSpeed=880;
- timeToLive=10;
- model = "\RD501_Vehicle_Weapons\_ammo\data\laser_small_green.p3d";
- tracerScale=1;
- tracerStartTime=0;
- tracerEndTime=10;
- };
- class macro_new_ammo(saber_auto): 3as_saber_autocannon_ammo
- {
- model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_green.p3d";
- tracerScale=1;
- tracerStartTime=0;
- tracerEndTime=10;
- };
- class macro_new_ammo(saber_main): 3AS_Sabre_HE
- {
- model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_green.p3d";
- tracerScale=1;
- tracerStartTime=0;
- tracerEndTime=10;
- };
- class macro_new_ammo(saber_super_3as): 3AS_Sabre_AT
- {
- model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_green.p3d";
- tracerScale=1;
- tracerStartTime=0;
- tracerEndTime=10;
- };
- };
|