123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- //Get this addons macro
- //get the macro for the air RD501_patch_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 RD501_patch_Praetorian_Variants
- {
- addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
- requiredAddons[]=
- {
- RD501_patch_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,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 LandVehicle;
- class StaticWeapon: LandVehicle
- {
- class Turrets;
- };
- class StaticMGWeapon: StaticWeapon
- {
- class Turrets: Turrets
- {
- class MainTurret;
- };
- class Components;
- };
- class AAA_System_01_base_F:StaticMGWeapon
- {
- class Components:Components{};
- class Turrets: Turrets
- {
- class MainTurret:MainTurret{};
- };
- };
- class B_AAA_System_01_F:AAA_System_01_base_F
- {
- class Components:Components{};
- class Turrets: Turrets
- {
- class MainTurret: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;
- radarTargetSize = 0;
- nvTarget = 0;
- laserTarget = 0;
- irTarget = 0;
- irTargetSize = 0;
- countermeasureActivationRadius = 2000;
- faction = MACRO_QUOTE(macro_faction(CIS));
- editorSubcategory = MACRO_QUOTE(macro_editor_cat(AA));
- vehicleClass = MACRO_QUOTE(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,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,preatorian_turret_opfor)
- };
- 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;
- };
- };
- };
- };
|