Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "basicDefines.hpp"
- #include "CrewAnimations.hpp"
- class CfgPatches {
- class Upsilon_airline {
- units[] = {UH60_Ldap_Ups_Air,UH60_FFAR_Ups_Air};
- weapons[] = {};
- requiredVersion = 1;
- requiredAddons[] = {"Extended_EventHandlers", "ace_main", "ace_c_vehicle","CAAir2", "CAWeapons", "CACharacters2"};
- version = 1;
- };
- };
- /*
- class CfgAmmo {
- class ; // External class reference
- class
- };*/
- /*
- class CfgWeapons {
- class FFARLauncher; // External class reference
- class HellfireLauncher;
- class Default; // External class reference
- };*/
- /*
- class CfgMagazines {
- class default;
- class VehicleMagazine; // External class reference
- //class ACE_7Rnd_70mm_FFAR_HE; // External class reference
- class FFARLauncher;
- //class ACE_SACLOS_Guidance;
- };*/
- class CfgVehicles
- {
- class AllVehicles ;
- class Air : AllVehicles
- {
- class Sounds ;
- };
- class Helicopter : Air
- {
- class Turrets
- {
- class MainTurret ;
- };
- class NewTurret ;
- class ViewPilot ;
- class AnimationSources ;
- class Sounds : Sounds
- {
- class Engine ;
- class Movement ;
- };
- };
- class AH1_Base : Helicopter
- {
- class UserActions ;
- };
- class AH1Z : AH1_Base
- {
- class Turrets : Turrets
- {
- class MainTurret : MainTurret
- {
- ace_sys_missileguidance_tracker = "M197";
- ace_sys_missileguidance_limitsOn = 1;
- ace_sys_missileguidance_limits[] = {
- 20, 20, 0, 0
- };
- ace_sys_missileguidance_tracklimits[] = {
- 30, 30
- };
- };
- };
- };
- //RealVehicles
- //*******************************************************************
- //west vehicles
- class UH60_FFAR_Ups_Air: Helicopter
- {
- model="\Upsilon_choppers\upsilon_chopper_FFAR";
- picture = "\Upsilon_choppers\ico\upsilon_chopper_ico.paa";
- Icon="\Upsilon_choppers\ico\upsilon_chopper_ico.paa";
- mapSize = 14;
- displayName= "Upsilon Airline [UH60_ffar]";
- showgunneroptics = false;
- weapons[]={FFARLauncher,CMFlareLauncher};
- magazines[]={38Rnd_FFAR,120Rnd_CMFlareMagazine};
- hasGunner = false;
- gunnerUsesPilotView = true;
- soundDammage[] = {"Ca\sounds\Air\Noises\alarm_loop1", db-40, 1};
- soundEngine[]={"\ca\sounds\air\uh1y\ext\ext-fly-mode2",db31,1};
- soundGetIn[]={"\ca\Sounds\Air\Noises\heli_door_01",db-20,1};
- soundGetOut[]={"\ca\Sounds\Air\Noises\heli_door_01",db-20,1};
- scope = public;
- side=TWest;
- crew = SoldierWPilot;
- maxSpeed = 320;
- accuracy=0.30;
- armor=30;
- damageResistance = 0.00242;
- cost=10000000;
- mainRotorSpeed = -1;
- driverInAction = UH60_Pilot;
- driverAction = UH60_Pilot;
- cargoAction[]={
- UH60_Cargo01,UH60_Cargo02
- };
- transportSoldier = 15;
- enableSweep=false;
- transportAmmo = 0;
- supplyRadius = 2.5;
- initCargoAngleY=+10; // cargo viewing limitations
- minCargoAngleY=-60;
- maxCargoAngleY=+120;
- type=2;
- //threat[] VSoft, VArmor, VAir
- threat[]={0.3, 1, 0.4};
- typicalCargo[]={SoldierWPilot,SoldierWPilot, SoldierWAT, SoldierWAT};
- transportMaxMagazines = 150;
- transportMaxWeapons = 30;
- forceHideDriver = true;
- castDriverShadow = true;
- castCargoShadow = true;
- /*class Reflectors
- {
- class Left
- {
- color[] = {0.2, 0.4, 0.5, 0.6};
- ambient[] = {0.8, 0.07, 0.07, 0.2};
- position = "L svetlo";
- direction = "konec L svetla";
- hitpoint = "L svetlo";
- selection = "L svetlo";
- size = 0.2;
- brightness = 0.06;
- };
- class Right
- {
- color[] = {0.2, 0.4, 0.5, 0.6};
- ambient[] = {0.8, 0.07, 0.07, 0.2};
- position = "L svetlo";
- direction = "konec L svetla";
- hitpoint = "L svetlo";
- selection = "L svetlo";
- size = 0.2;
- brightness = 0.06;
- };
- };*/
- dammageHalf[]=
- {
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr1_CA.paa,
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr1_CA.paa
- };
- dammageFull[]=
- {
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr2_CA.paa,
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr2_CA.paa
- };
- class Damage
- {
- tex[]={};
- mat[]={
- "ca\air\data\materialy\uh60_01.rvmat",
- "ca\air\data\materialy\uh60_01.rvmat",
- "ca\air\data\materialy\uh60_01_destruct.rvmat",
- "ca\air\data\materialy\uh60_02.rvmat",
- "ca\air\data\materialy\uh60_02.rvmat",
- "ca\air\data\materialy\uh60_02_destruct.rvmat",
- "ca\air\data\materialy\uh60_03.rvmat",
- "ca\air\data\materialy\uh60_03.rvmat",
- "ca\air\data\materialy\uh60_03_destruct.rvmat",
- "ca\air\data\materialy\uh60_04.rvmat",
- "ca\air\data\materialy\uh60_04.rvmat",
- "ca\air\data\materialy\uh60_04_destruct.rvmat"
- };
- };
- class Turrets {};
- class UserActions
- {
- class OpenDoor // action to open the door
- {
- displayName="Open Cargo Doors"; // string that's displayed in the action menu
- position="cargo_doors_action"; // name of the 'action point'
- radius=1.5; // how close the player has to be see this action
- condition="this animationPhase ""Move_cargo_doors"" > 0.5"; // check whether the door has moved already
- statement="this animate[""Move_cargo_doors"",0]"; // and if not, then start the animation
- onlyforplayer = true; // requirement by ArmA - presumably defines if AI can/cannot open doors etc
- };
- class CloseDoor // action to close the door
- {
- displayName="Close Cargo Doors";
- position="cargo_doors_action";
- radius=1.5;
- condition="this animationPhase ""Move_cargo_doors"" < 0.5";
- statement="this animate[""Move_cargo_doors"",1]";
- onlyforplayer = true;
- };
- };
- class AnimationSources
- {
- class userdoors
- {
- source = "user";
- animPeriod = 3; //seconds
- initPhase=0;
- };
- };
- class Sounds
- {
- class Engine
- {
- frequency = "rotorSpeed";
- volume = "camPos*((rotorSpeed-0.72)*4)";
- sound[] = {
- "upsilon_choppers\sounds\uh60_engine", 2.511890, 1.000000, 900
- };
- };
- class RotorLowOut
- {
- frequency = "rotorSpeed";
- volume = "camPos*(0 max (rotorSpeed-0.1))";
- cone[] = {
- 1.600000, 3.140000, 2.000000, 0.500000
- };
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 2.511890, 1.000000, 1400
- };
- };
- class RotorHighOut
- {
- frequency = "rotorSpeed";
- volume = "camPos*10*(0 max (rotorThrust-0.9))";
- cone[] = {
- 1.600000, 3.140000, 2.000000, 0.500000
- };
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 2.511890, 1.000000, 1600
- };
- };
- class EngineIn
- {
- frequency = "rotorSpeed";
- volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
- sound[] = {
- "upsilon_choppers\sounds\uh60_internal", 3.162278, 1.000000
- };
- };
- class RotorLowIn
- {
- frequency = "rotorSpeed";
- volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 3.162278, 1.000000
- };
- };
- class RotorHighIn
- {
- frequency = "rotorSpeed";
- volume = "(1-camPos)*3*(rotorThrust-0.9)";
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 3.162278, 1.000000
- };
- };
- };
- };
- class UH60_Ldap_Ups_Air: AH1Z
- {
- selectionHRotorStill = "mainRotorStatic";
- selectionHRotorMove = "mainRotorBlurred";
- selectionVRotorStill = "tailRotorStatic";
- selectionVRotorMove = "tailRotorBlurred";
- model="\Upsilon_choppers\upsilon_chopper_ldap";
- picture = "\Upsilon_choppers\ico\upsilon_chopper_ico.paa";
- Icon="\Upsilon_choppers\ico\upsilon_chopper_ico.paa";
- mapSize = 14;
- displayName= "Upsilon Airline [UH60_Ldap]";
- showgunneroptics = true;
- weapons[]={FFARLauncher,CMFlareLauncher};
- magazines[]={38Rnd_FFAR,120Rnd_CMFlareMagazine};
- hasGunner = 1;
- gunnerUsesPilotView = 0;
- //memoryPointRMissile = "Missile_2";
- soundEngine[]={\ca\air\Data\Sound\UH1_engine_v1,db31,1};
- soundGetIn[]={\ca\air\Data\Sound\heli_door3,db-20,1};
- soundGetOut[]={\ca\air\Data\Sound\heli_door3,db-20,1};
- scope = public;
- side=TWest;
- crew = SoldierWPilot;
- maxSpeed = 320;
- accuracy=0.30;
- armor=30;
- damageResistance = 0.00242;
- cost=10000000;
- mainRotorSpeed = -1;
- driverInAction = UH60_Pilot;
- driverAction = UH60_Pilot;
- cargoAction[]={
- UH60_Cargo02
- };
- transportSoldier = 12;
- //cargoIsCoDriver[] = {true,true,false};
- enableSweep=false;
- transportAmmo = 0;
- supplyRadius = 2.5;
- initCargoAngleY=+10; // cargo viewing limitations
- minCargoAngleY=-60;
- maxCargoAngleY=+120;
- type=2;
- //threat[] VSoft, VArmor, VAir
- threat[]={0.3, 1, 0.4};
- typicalCargo[]={SoldierWPilot,SoldierWPilot, SoldierWAT, SoldierWAT};
- transportMaxMagazines = 150;
- ace_air_fcs_enabled = 1;
- transportMaxWeapons = 30;
- forceHideDriver = true;
- castDriverShadow = true;
- castCargoShadow = true;
- laserScanner = true;
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- body = "mainTurret";
- gun = "mainGun";
- animationSourceBody = "mainTurret";
- animationSourceGun = "mainGun";
- primary = 1;
- gunnerAction = UH60_Cargo01;
- gunnerInAction = UH60_Cargo01;
- gunnerName = "Co Pilot";
- //weapons[] = { "ACE_DAGR_Launcher","ACE_SACLOS_Guidance" };
- //magazines[] = { "ACE_8Rnd_DAGR","ACE_SACLOS_Guidance" };
- weapons[] = {"HellfireLauncher", "ACE_SACLOS_Guidance"};
- magazines[] = {"ACE_8Rnd_Hellfire", , "ACE_SACLOS_Guidance"};
- //weapons[]={M197,Laserdesignator_mounted,ACE_HellfireLauncher};
- //magazines[]={Laserbatteries,ACE_8Rnd_Hellfire};
- memoryPointsGetInGunner= "pos gunner";
- memoryPointsGetInGunnerDir= "pos gunner dir";
- memoryPointGun = "gunnerview";
- primaryGunner = 1;
- gunnerOpticsModel = "\ca\air\optika_AH1Z";
- gunBeg = "gun_end";
- gunEnd = "gun_beg";
- minElev = -80;
- maxElev = 25;
- initElev = 0;
- minTurn = -180;
- maxTurn = 180;
- initTurn = 0;
- ace_sys_missileguidance_tracker = "M197";
- ace_sys_missileguidance_limitsOn = 1;
- ace_sys_missileguidance_limits[] = {20, 20, 0, 0};
- ace_sys_missileguidance_tracklimits[] = {30, 30};
- class ViewOptics
- {
- initAngleX = 0;
- minAngleX = -30;
- maxAngleX = 30;
- initAngleY = 0;
- minAngleY = -100;
- maxAngleY = 100;
- initFov = 0.7;
- minFov = 0.25;
- maxFov = 1.1;
- };
- };
- };
- /*class Turrets: Turrets
- {
- class CoPilotObs : MainTurret
- {
- stabilizedInAxes = "StabilizedInAxesBoth";
- proxyIndex = 3;
- gunnerName = "CoPilotObs";
- gunnerAction = UH1Y_Gunner02;
- gunnerInAction = UH1Y_Gunner02;
- body = "sensors_turret";
- gun = "sensors";
- animationSourceBody = "sensors_turret";
- animationSourceGun = "sensors";
- outGunnerMayFire = 1;
- gunBeg = "gun_end";
- gunEnd = "gun_begin";
- memoryPointGun = "gun_end";
- commanding = -1;
- weapons[] = {
- "Laserdesignator_mounted","HellfireLauncher"
- };
- magazines[] = {
- "Laserbatteries","8Rnd_Hellfire"
- };
- primaryGunner = 0;
- minElev = -80;
- maxElev = 25;
- initElev = 0;
- minTurn = -180;
- maxTurn = 180;
- initTurn = 0;
- gunnerOpticsModel = "\ca\weapons\optika_SOFLAM";
- memoryPointGunnerOptics = "gunnerview";
- gunnerForceOptics = 0;
- gunnerOpticsShowCursor = 0;
- class ViewOptics
- {
- initAngleX = 0;
- minAngleX = -30;
- maxAngleX = 30;
- initAngleY = 0;
- minAngleY = -100;
- maxAngleY = 100;
- initFov = 0.800000;
- minFov = 0.008300;
- maxFov = 0.800000;
- };
- gunnerCompartments = "Compartment2";
- startEngine = 0;
- soundServo[] = {
- "", 0.010000, 1.000000
- };
- memoryPointsGetInGunner = "pos gunner";
- memoryPointsGetInGunnerDir = "pos gunner dir";
- selectionFireAnim = "";
- castGunnerShadow = 1;
- viewGunnerShadow = 1;
- };
- };*/
- class Reflectors
- {
- class Left
- {
- color[] = {0.2, 0.4, 0.5, 0.6};
- ambient[] = {0.8, 0.07, 0.07, 0.2};
- position = "L svetlo";
- direction = "konec L svetla";
- hitpoint = "L svetlo";
- selection = "L svetlo";
- size = 0.2;
- brightness = 0.06;
- };
- class Right
- {
- color[] = {0.2, 0.4, 0.5, 0.6};
- ambient[] = {0.8, 0.07, 0.07, 0.2};
- position = "L svetlo";
- direction = "konec L svetla";
- hitpoint = "L svetlo";
- selection = "L svetlo";
- size = 0.2;
- brightness = 0.06;
- };
- };
- dammageHalf[]=
- {
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr1_CA.paa,
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr1_CA.paa
- };
- dammageFull[]=
- {
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr2_CA.paa,
- \ca\air\data\UH60_skla_CA.paa,\ca\air\data\UH60_sklabr2_CA.paa
- };
- class Damage
- {
- tex[]={};
- mat[]={
- "ca\air\data\materialy\uh60_01.rvmat",
- "ca\air\data\materialy\uh60_01.rvmat",
- "ca\air\data\materialy\uh60_01_destruct.rvmat",
- "ca\air\data\materialy\uh60_02.rvmat",
- "ca\air\data\materialy\uh60_02.rvmat",
- "ca\air\data\materialy\uh60_02_destruct.rvmat",
- "ca\air\data\materialy\uh60_03.rvmat",
- "ca\air\data\materialy\uh60_03.rvmat",
- "ca\air\data\materialy\uh60_03_destruct.rvmat",
- "ca\air\data\materialy\uh60_04.rvmat",
- "ca\air\data\materialy\uh60_04.rvmat",
- "ca\air\data\materialy\uh60_04_destruct.rvmat"
- };
- };
- class UserActions
- {
- class OpenDoor // action to open the door
- {
- displayName="Open Cargo Doors"; // string that's displayed in the action menu
- position="cargo_doors_action"; // name of the 'action point'
- radius=1.5; // how close the player has to be see this action
- condition="this animationPhase ""Move_cargo_doors"" > 0.5"; // check whether the door has moved already
- statement="this animate[""Move_cargo_doors"",0]"; // and if not, then start the animation
- onlyforplayer = true; // requirement by ArmA - presumably defines if AI can/cannot open doors etc
- };
- class CloseDoor // action to close the door
- {
- displayName="Close Cargo Doors";
- position="cargo_doors_action";
- radius=1.5;
- condition="this animationPhase ""Move_cargo_doors"" < 0.5";
- statement="this animate[""Move_cargo_doors"",1]";
- onlyforplayer = true;
- };
- class Laser_On
- {
- displayName = "$STR_ACE_UA_LASER_ON";
- position = "gunnerview";
- radius = 6;
- onlyForPlayer = 1;
- condition = "(alive this) && (player == gunner this) && isNil {this getVariable 'ace_sys_missileguidance_laser_designation'}";
- statement = "this setVariable ['ace_sys_missileguidance_laser_designation',true]; [this, currentWeapon this, true] spawn ace_sys_missileguidance_fnc_opt_laserloop";
- };
- //&& (player == gunner this)
- class Laser_Off : Laser_On
- {
- displayName = "$STR_ACE_UA_LASER_OFF";
- condition = "(alive this) && (player == gunner this) && (this getVariable 'ace_sys_missileguidance_laser_designation')";
- statement = "this setVariable ['ace_sys_missileguidance_laser_off',true]";
- };
- };
- class AnimationSources
- {
- class userdoors
- {
- source = "user";
- animPeriod = 3; //seconds
- initPhase=0;
- };
- };
- class Sounds
- {
- class Engine
- {
- frequency = "rotorSpeed";
- volume = "camPos*((rotorSpeed-0.72)*4)";
- sound[] = {
- "upsilon_choppers\sounds\uh60_engine", 2.511890, 1.000000, 900
- };
- };
- class RotorLowOut
- {
- frequency = "rotorSpeed";
- volume = "camPos*(0 max (rotorSpeed-0.1))";
- cone[] = {
- 1.600000, 3.140000, 2.000000, 0.500000
- };
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 2.511890, 1.000000, 1400
- };
- };
- class RotorHighOut
- {
- frequency = "rotorSpeed";
- volume = "camPos*10*(0 max (rotorThrust-0.9))";
- cone[] = {
- 1.600000, 3.140000, 2.000000, 0.500000
- };
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 2.511890, 1.000000, 1600
- };
- };
- class EngineIn
- {
- frequency = "rotorSpeed";
- volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
- sound[] = {
- "upsilon_choppers\sounds\uh60_internal", 3.162278, 1.000000
- };
- };
- class RotorLowIn
- {
- frequency = "rotorSpeed";
- volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 3.162278, 1.000000
- };
- };
- class RotorHighIn
- {
- frequency = "rotorSpeed";
- volume = "(1-camPos)*3*(rotorThrust-0.9)";
- sound[] = {
- "upsilon_choppers\sounds\uh60_rotor", 3.162278, 1.000000
- };
- };
- };
- };
- };
- class CfgNonAIVehicles
- {
- class ProxyDriver;
- class ProxyParasutista: ProxyDriver {};
- class ProxyWeapon;
- class ProxyAGM114Hellfire: ProxyWeapon {model = \ca\air\AGM114Hellfire; simulation = "maverickweapon";};
- class ProxyGBU12: ProxyWeapon {model = \ca\air\gbu12; simulation = "maverickweapon";};
- class ProxyAIM9XSidewinder: ProxyWeapon {model = \ca\air\AIM9XSidewinder; simulation = "maverickweapon";};
- class ProxyFlag;
- class ProxyFlag_Plane: ProxyFlag {model = "\ca\air\flag_plane";};
- class ProxyFlag_Plane_Big: ProxyFlag {model = "\ca\air\flag_plane_big";};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement