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 Praetorian_Variant
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define macro_new_prea_class(name) vehicle_classname##_##name
- class CfgPatches
- {
- class macro_patch_name(Praetorian_Variants)
- {
- addonRootClass=macro_patch_name(vehicles)
- requiredAddons[]=
- {
- macro_patch_name(vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(Praetorian_Variant,normal),
- macro_new_vehicle(Praetorian_Variant,blufor),
- macro_new_vehicle(Praetorian_Variant,opfor),
- macro_new_vehicle(Praetorian_Variant,rebel),
- macro_new_vehicle(Praetorian_Variant,republic),
- macro_new_vehicle(Praetorian_Variant,imperial),
- macro_new_vehicle(Praetorian_Variant,Ion),
- macro_new_vehicle(Praetorian_Variant,Purple)
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "../../common/sensor_templates.hpp"
- class DefaultEventhandlers;
- class CfgVehicles
- {
- class StaticMGWeapon;
- class AAA_System_01_base_F:StaticMGWeapon
- {
- class Turrets;
- };
- class B_AAA_System_01_F:AAA_System_01_base_F
- {
- class Components;
- class Turrets: Turrets
- {
- class MainTurret;
- };
- };
- class macro_new_vehicle(Praetorian_Variant,normal): B_AAA_System_01_F
- {
- scope = 2;
- forceInGarage=1;
- allowTabLock = 1;
- canUseScanner = 1;
- driverCanSee = 31;
- gunnerCanSee = 31;
- commanderCanSee = 31;
- canLock = 2;
- cmImmunity = 1;
- lockAcquire = 0;
- weaponLockDelay = 0;
- radarType = 2;
- irScanToEyeFactor = 1;
- irScanRangeMin = 0;
- irScanRangeMax = 100000;
- irScanGround = 1;
- laserScanner = 1;
- weaponLockSystem = "0";
- radarTarget = 0;
- receiveRemoteTargets = true;
- reportRemoteTargets = true;
- reportOwnPosition = true;
- scopecurator = 2;
- displayName = "CIS B.E.A.R.D AA";
- side = 0;
- editorPreview = "";
- author = "RD501";
- visualTarget = 0;
- visualTargetSize = 0;
- reportOwnPosition = true;
- radarTargetSize = 0;
- radarTarget = 0;
- nvTarget = 0;
- laserTarget = 0;
- laserScanner = 0;
- irTarget = 0;
- irTargetSize = 0;
- countermeasureActivationRadius = 2000;
- faction = macro_cis_faction
- editorSubcategory = macro_editor_cat(AA)
- vehicleClass = macro_editor_vehicle_type(AA)
- //faction = "RD501FactionOpfor";
- hiddenSelectionsTextures[] =
- {
- "awing\t_awing_03_cw.paa",
- "awing\t_awing_03_cw.paa"
- };
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- canUseScanner = 1;
- weapons[] = {
- macro_new_weapon(generic,preatorian_gun_opfor)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_preatorian,1000),
- macro_new_mag(generic_aircraft_gun_preatorian,1000)
- };
- };
- };
- class components: Components
- {
- class SensorsManagerComponent
- {
- class components
- {
- class IRSensorComponent: SensorTemplateIR
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- maxFogSeeThrough= -1;
- nightRangeCoef = 1;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- maxFogSeeThrough= -1;
- nightRangeCoef = 1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- maxFogSeeThrough= -1;
- nightRangeCoef = 1;
- };
- };
- class NVSensorComponent: SensorTemplateNV
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- };
- class LaserSensorComponent: SensorTemplateLaser
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- };
- class PassiveRadarSensorComponent: SensorTemplatePassiveRadar
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- };
- class VisualSensorComponent: SensorTemplateVisual
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- };
- class ManSensorComponent: SensorTemplateMan
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- };
- class DataLinkSensorComponent: SensorTemplateDataLink
- {
- typeRecognitionDistance = 16000;
- angleRangeHorizontal = 360;
- angleRangeVertical = 360;
- groundNoiseDistanceCoef = -1;
- maxGroundNoiseDistance = 1600;
- minSpeedThreshold = 0;
- maxSpeedThreshold = 2000;
- class AirTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- class GroundTarget
- {
- minRange = 0;
- maxRange = 16000;
- objectDistanceLimitCoef = -1;
- viewDistanceLimitCoef = -1;
- };
- };
- };
- };
- };
- class EventHandlers :DefaultEventhandlers{};
- };
- class macro_new_vehicle(Praetorian_Variant,blufor) : macro_new_vehicle(Praetorian_Variant,normal)
- {
- side = 1;
- displayName = "Laser Turret (AA)";
- faction = macro_republic_faction
- //editorSubcategory = macro_editor_cat(AA)
- //vehicleClass = macro_editor_vehicle_type(AA)
- //faction = "RD501Faction";
- hiddenSelectionsTextures[] =
- {
- macro_vehicle_textures\Fast_Infantry_Transport\FAT.paa,
- macro_vehicle_textures\Fast_Infantry_Transport\FAT.paa
- };
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,preatorian_gun_opfor)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_preatorian,1000),
- macro_new_mag(generic_aircraft_gun_preatorian,1000)
- };
- };
- };
- };
- class macro_new_vehicle(Praetorian_Variant,opfor): macro_new_vehicle(Praetorian_Variant,normal)
- {
- displayName = "Laser Cannons (opfor)";
- faction = "";
- scope = 1;//?
- scopecurator = 1;
- weaponLockSystem = "2+4+8";
-
- hiddenSelectionsTextures[] =
- {
- "awing\t_awing_03_cw.paa",
- "awing\t_awing_03_cw.paa"
- };
-
-
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,aircraft_laser)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun,1000),
- macro_new_mag(generic_aircraft_gun,1000)
- };
- minTurn=-45;
- maxTurn=45;
- minElev = -45;
- maxElev = +45;
- aiRateOfFire = 0.0001;
- maxHorizontalRotSpeed = 3000;
- maxVerticalRotSpeed = 3000;
- stabilizedInAxes = 4;
- };
- };
- };
- class macro_new_vehicle(Praetorian_Variant,rebel): macro_new_vehicle(Praetorian_Variant,normal)//
- {
- side = 1;
- displayName = "Laser Cannons (rebel)";
- faction = macro_rebel_faction
- editorSubcategory = macro_editor_cat(AA)
- vehicleClass = macro_editor_vehicle_type(AA)
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,rebel_aircraft_laser)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun,1000),
- macro_new_mag(generic_aircraft_gun,1000)
- };
- };
- };
- };
- class macro_new_vehicle(Praetorian_Variant,republic): macro_new_vehicle(Praetorian_Variant,normal)//
- {
- displayName = "Laser Cannons (republic)";
- side = 1;
- faction =
- editorSubcategory = macro_editor_cat(AA)
- vehicleClass = macro_editor_vehicle_type(AA)
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,tie_aircraft_laser)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_green,1000),
- macro_new_mag(generic_aircraft_gun_green,1000)
- };
- };
- };
- };
- class macro_new_vehicle(Praetorian_Variant,imperial): macro_new_vehicle(Praetorian_Variant,normal)//
- {
- displayName = "Laser Cannons (Imperial)";
- faction = macro_empire_faction
- editorSubcategory = macro_editor_cat(AA)
- vehicleClass = macro_editor_vehicle_type(AA)
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,tie_aircraft_laser)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_green,1000),
- macro_new_mag(generic_aircraft_gun_green,1000)
- };
- };
- };
- };
- class macro_new_vehicle(Praetorian_Variant,Ion): macro_new_vehicle(Praetorian_Variant,normal)//
- {
- side = 1;
- faction = macro_resistance_faction
- editorSubcategory = macro_editor_cat(AA)
- vehicleClass = macro_editor_vehicle_type(AA)
- displayName = "Laser Cannons (I.O.N)";
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,ion_aircraft_laser)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_blue,1000),
- macro_new_mag(generic_aircraft_gun_blue,1000)
- };
- };
- };
- };
- class macro_new_vehicle(Praetorian_Variant,Purple): macro_new_vehicle(Praetorian_Variant,normal)//
- {
- displayName = "Laser Cannons (PURPLEE)";
- faction = "";
- // editorSubcategory = macro_editor_cat(AA)
- // vehicleClass = macro_editor_vehicle_type(AA)
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(generic,purple_aircraft_laser)
- };
- magazines[] = {
- macro_new_mag(generic_aircraft_gun_purple,1000),
- macro_new_mag(generic_aircraft_gun_purple,1000)
- };
- };
- };
- };
-
- };
|