Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "basicdefines_A3.hpp"
- class DefaultEventhandlers;
- class CfgVehicleClasses
- {
- class Police_Vehicles
- {
- displayName = "Police_Vehicles";
- };
- };
- class CfgPatches
- {
- class Police
- {
- units[] = {"Aus_CROWN"};
- weapons[] = {};
- requiredVersion = 0.1;
- requiredAddons[] = {"A3_Soft_F"};
- };
- };
- class CfgSounds
- {
- class Siren1
- {
- sound[] = {"\Aus_CROWN\sound\wail.wav",db+5,1};
- name = "siren1";
- titles[] = {};
- };
- class Siren2
- {
- sound[] = {"\Aus_CROWN\sound\siren2.wav",db+5,1};
- name = "siren2";
- titles[] = {};
- };
- class Siren3
- {
- sound[] = {"\Aus_CROWN\sound\pulse.wav",db+5,1};
- name = "siren3";
- titles[] = {};
- };
- };
- class cfgWeapons
- {
- class SportCarHorn;
- class Civhorn: SportCarHorn
- {
- displayname = "Civhorn";
- reloadTime = 4.0;
- drySound[] = {"\Aus_CROWN\Sound\hornciv.wav",1,1};
- scope = 2;
- };
- class Takedown: SportCarHorn
- {
- displayName = "Takedown";
- reloadtime = 4.0;
- drysound[] = {"\Aus_CROWN\sound\Takedown.wav",1,1};
- scope = 2;
- };
- class Laser: SportCarHorn
- {
- displayName = "Laser";
- reloadtime = 4.0;
- drysound[] = {"\Aus_CROWN\sound\laser.wav",1,1};
- scope = 2;
- };
- class Pulse: SportCarHorn
- {
- displayName = "Pulse";
- reloadtime = 4.0;
- drysound[] = {"\Aus_CROWN\sound\pulse.wav",1,1};
- scope = 2;
- };
- class Policehorn: SportCarHorn
- {
- displayName = "Policehorn";
- reloadtime = 4.0;
- drysound[] = {"\Aus_CROWN\sound\policehorn.wav",1,1};
- scope = 2;
- };
- class Airhorn: SportCarHorn
- {
- displayName = "Airhorn";
- reloadtime = 4.0;
- drysound[] = {"\Aus_CROWN\sound\Airhorn.wav",1,1};
- scope = 2;
- };
- };
- class CfgVehicles
- {
- class LandVehicle;
- class Car: LandVehicle
- {
- class HitPoints;
- class NewTurret;
- };
- class Car_F: Car
- {
- class Turrets
- {
- class MainTurret: NewTurret
- {
- class ViewOptics;
- };
- };
- class HitPoints
- {
- class HitLFWheel;
- class HitLF2Wheel;
- class HitRFWheel;
- class HitRF2Wheel;
- class HitBody;
- class HitGlass1{};
- class HitGlass2;
- };
- class EventHandlers;
- class AnimationSources;
- };
- class Offroad_01_base_F: Car_F{};
- class C_Offroad_01_F: Offroad_01_base_F{};
- class CRFT_Car_Base: C_Offroad_01_F{};
- class Aus_CROWNBase: CRFT_Car_Base
- {
- extCameraPosition[] = {0,0.8,-6};
- driverLeftHandAnimName = "drivewheel";
- driverRightHandAnimName = "drivewheel";
- mapSize = 3.56;
- model = "Aus_CROWN\Aus_PD.p3d";
- author = "Butt";
- displayName = "BASE";
- vehicleclass = "Police_Vehicles";
- class Library
- {
- libTextDesc = "";
- };
- weapons[] = {"AM_horn_takedown1"};
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
- hiddenSelections[] = {"jump","light0","light2","light3","light4","light5","light6","lb-right-takedown","lb-right-front-corner","lb-right-back-corner","lb-back-red-1","lb-back-red-2","lb-back-red-3","lb-back-blue-3","lb-back-blue-2","lb-back-blue-1","lb-left-back-corner","lb-back-yellow-1","lb-back-yellow-2","lb-back-yellow-3","lb-back-yellow-4","lb-back-yellow-5","lb-back-yellow-6","lb-left-alley","lb-right-alley","lb-ion-blue","lb-ion-red"};
- hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
- picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
- Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
- terrainCoef = 6.5; /// different surface affects this car more, stick to tarmac
- turnCoef = 2.5; /// should match the wheel turn radius
- precision = 10; /// how much freedom has the AI for its internal waypoints - lower number means more precise but slower approach to way
- brakeDistance = 3.0; /// how many internal waypoints should the AI plan braking in advance
- acceleration = 15; /// how fast acceleration does the AI think the car has
- fireResistance = 5; /// lesser protection against fire than tanks
- armor = 32; /// just some protection against missiles, collisions and explosions
- cost = 50000; /// how likely is the enemy going to target this vehicle
- transportMaxBackpacks = 15; /// just some backpacks fit the trunk by default
- transportSoldier = 4; /// number of cargo except driver
- /// some values from parent class to show how to set them up
- wheelDamageRadiusCoef = 0.9; /// for precision tweaking of damaged wheel size
- wheelDestroyRadiusCoef = 0.4; /// for tweaking of rims size to fit ground
- maxFordingDepth = 0.5; /// how high water would damage the engine of the car
- waterResistance = 1; /// if the depth of water is bigger than maxFordingDepth it starts to damage the engine after this time
- crewCrashProtection = 0.25; /// multiplier of damage to crew of the vehicle => low number means better protection
- class Exhausts
- {
- class Exhaust1
- {
- position = "exhaust1";
- direction = "exhaust1_dir";
- effect = "ExhaustEffectOffroad";
- };
- };
- ejectDeadCargo = 1;
- ejectDeadDriver = 1;
- class Turrets{};
- hideWeaponsDriver = 1;
- hideWeaponsCargo = 1;
- driverAction = "driver_offroad01";
- getInAction = "GetInOffroad";
- getOutAction = "GetOutLow";
- cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
- cargoGetInAction[] = {"GetInLow"};
- cargoGetOutAction[] = {"GetOutLow"};
- #include "sounds.hpp"
- class RenderTargets
- {
- class LeftMirror
- {
- renderTarget = "rendertarget0";
- class CameraView1
- {
- pointPosition = "PIP0_pos";
- pointDirection = "PIP0_dir";
- renderQuality = 2;
- renderVisionMode = 0;
- fov = 0.7;
- };
- };
- class RearCam
- {
- renderTarget = "rendertarget1";
- class CameraView1
- {
- pointPosition = "PIP1_pos";
- pointDirection = "PIP1_dir";
- renderQuality = 2;
- renderVisionMode = 0;
- fov = 0.7;
- };
- };
- class FrontCam
- {
- renderTarget = "rendertarget2";
- class CameraView1
- {
- pointPosition = "PIP2_pos";
- pointDirection = "PIP2_dir";
- renderQuality = 2;
- renderVisionMode = 0;
- fov = 0.7;
- };
- };
- };
- #include "physx.hpp"
- class Damage
- {
- tex[] = {};
- mat[] = {"A3\soft_F\Quadbike_01\Data\Quadbike_01_base.rvmat","A3\soft_F\Quadbike_01\Data\Quadbike_01_base_damage.rvmat","A3\soft_F\Quadbike_01\Data\Quadbike_01_base_destruct.rvmat"};
- };
- class Reflectors
- {
- class LightCarHeadL01
- {
- color[] = {1900,1800,1700};
- ambient[] = {5,5,5};
- position = "LightCarHeadL01";
- direction = "LightCarHeadL01_end";
- hitpoint = "Light_L";
- selection = "Light_L";
- size = 1;
- innerAngle = 100;
- outerAngle = 179;
- coneFadeCoef = 10;
- intensity = 1;
- useFlare = 1;
- dayLight = 0;
- flareSize = 1.0;
- class Attenuation
- {
- start = 1.0;
- constant = 0;
- linear = 0;
- quadratic = 0.25;
- hardLimitStart = 30;
- hardLimitEnd = 60;
- };
- };
- class LightCarHeadL02: LightCarHeadL01
- {
- position = "LightCarHeadL02";
- direction = "LightCarHeadL02_end";
- FlareSize = 0.5;
- };
- class LightCarHeadR01: LightCarHeadL01
- {
- position = "LightCarHeadR01";
- direction = "LightCarHeadR01_end";
- hitpoint = "Light_R";
- selection = "Light_R";
- };
- class LightCarHeadR02: LightCarHeadR01
- {
- position = "LightCarHeadR01";
- direction = "LightCarHeadR01_end";
- FlareSize = 0.5;
- };
- };
- aggregateReflectors[] = {{ "LightCarHeadL01","LightCarHeadL02" },{ "LightCarHeadR01","LightCarHeadR02"}};
- };
- class Aus_PD: Aus_CROWNBase
- {
- displayname = "Police Sheriff";
- model = "\Aus_CROWN\Aus_PD.p3d";
- picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
- Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
- scope = 2;
- weapons[] = {"Takedown","Airhorn","Civhorn","Laser","Policehorn","Pulse"};
- typicalCargo[] = {"C_man_1"};
- cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45
- hiddenSelections[] = {"jump","light0","light2","light3","light4","light5","light6","light7","light8","light9","light10","light11","light12","light13","light14","light15","light16","light17","light18","light19","light20","light21","light22","light23","light24","light25","light26","radar_patrol_c","radar_patrol_d","radar_patrol_u","radar_fast_c","radar_fast_d","radar_fast_u","radar_target_c","radar_target_d","radar_target_u","target1","target2","target3","lock1","lock2","lock3","patrol1","patrol2","patrol3","Camo1","Plate1","Plate2","Plate3","Plate4","Plate5","Plate6","Plate7"};
- hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\pic0.paa","\aus_crown\textures\pic0.paa","\aus_crown\textures\pic0.paa","\aus_crown\textures\green\0.paa","\aus_crown\textures\green\0.paa","\aus_crown\textures\green\0.paa"};
- class eventhandlers
- {
- init = "_this execVM '\Aus_CROWN\data\Scripts\init.sqf';";
- };
- class UserActions
- {
- class Reset
- {
- displayName = "<t color='#ff0000'>Reset Lock/Fast</t>";
- position = "drivewheel";
- radius = 10;
- condition = "player IN this";
- statement = "this setobjecttexture [31,'\aus_crown\textures\pic0.paa']; this setobjecttexture [32,'\aus_crown\textures\pic0.paa']; this setobjecttexture [33,'\aus_crown\textures\pic0.paa']; Prevspeed = 0;";
- onlyForplayer = 1;
- };
- class codeOne
- {
- displayName = "<t color='#760a0a'>LED OFF</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
- statement = "this animate ['ani_lightbar', 0], this animate ['ani_sirens', 0], this animate ['ani_directional', 0]";
- onlyForplayer = 1;
- };
- class LightMode1
- {
- displayName = "<t color='#aff0000'>LED Only</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.1)";
- statement = "this animate ['ani_lightbar', 0.1], this animate ['ani_sirens', 0.0]";
- onlyForplayer = 1;
- };
- class LightMode2
- {
- displayName = "<t color='#ff5858'>LED Sirens</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.2)";
- statement = "this animate ['ani_lightbar', 0.2], this animate ['ani_sirens', 0.5]";
- onlyForplayer = 1;
- };
- class LightMode3
- {
- displayName = "<t color='#147a00'>Pattern 2</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.3)";
- statement = "this animate ['ani_lightbar', 0.3]";
- onlyForplayer = 1;
- };
- class LightMode4
- {
- displayName = "<t color='#147a00'>Pattern 3</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.4)";
- statement = "this animate ['ani_lightbar', 0.4], this animate ['ani_lightbar', 0.8]";
- onlyForplayer = 1;
- };
- class Siren1
- {
- displayName = "<t color='#147a00'>Siren1</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_sirens' != 0.4)";
- statement = "this animate ['ani_sirens', 0.4]";
- onlyForplayer = 1;
- };
- class Siren2
- {
- displayName = "<t color='#147a00'>Siren2</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_sirens' != 0.6)";
- statement = "this animate ['ani_sirens', 0.6]";
- onlyForplayer = 1;
- };
- class sirentoggleon
- {
- displayName="Toggle Siren";
- position="pos_switches";
- radius=1;
- onlyForplayer= false;
- condition="this animationPhase ""ani_siren""==0.5";
- statement="this animate [""ani_siren"", 0.4], this exec ""\aus_crown\data\scripts\sirenr.sqf""";
- };
- class sirentoggleoff
- {
- displayName="Toggle Siren";
- position="pos_switches";
- radius=1;
- onlyForplayer= false;
- condition="this animationPhase ""ani_siren""==0.5";
- statement="this animate [""ani_siren"", 0],this exec ""\aus_crown\data\scripts\siren.sqf""";
- };
- class LaptopLeft
- {
- displayName = "Laptop Left";
- position = "Switch";
- radius = 6;
- condition = "(this animationPhase ""Ani_laptops"" > 0.2)&& (alive this)";
- statement = "this animate ['ani_laptops', 0]";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class LaptopsRight
- {
- displayName = "Laptop Right";
- position = "Switch";
- radius = 6;
- condition = "((this animationPhase ""Ani_laptops"" < 0.3) || (this animationPhase ""Ani_laptops"" > 0.5)) && (alive this)";
- statement = "this animate ['ani_laptops', 0.4]";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class SpotFlipDown
- {
- displayName = "Spot Down Off";
- position = "Switch";
- radius = 6;
- condition = "(this animationPhase ""Ani_spotaxle"" > 0.2)&& (alive this)";
- statement = "this animate ['ani_spotaxle', 0], this animate ['ani_spot', 0]";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class SpotFlipUP
- {
- displayName = "SpotFlip_UP";
- position = "Switch";
- radius = 6;
- condition = "((this animationPhase ""Ani_spotaxle"" < 0.3) || (this animationPhase ""Ani_spotaxle"" > 0.5)) && (alive this)";
- statement = "this animate ['ani_spotaxle', 0.4], this animate ['ani_spot', 0.5]";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class Spot_on
- {
- displayName = "<t color='#a40000'>Spotlight on</t>";
- position = "spot_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_spot' != 0.5)";
- statement = "this animate ['ani_spot', 0.5]";
- onlyForplayer = 1;
- };
- class Spot_off
- {
- displayName = "<t color='#a40000'>Spotlight Off</t>";
- position = "spot_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_spot' != 0.0)";
- statement = "this animate ['ani_spot', 0.0]";
- onlyForplayer = 1;
- };
- class Open
- {
- displayName = "Open";
- position = "drivewheel";
- radius = 6;
- condition = "(this animationPhase ""CloseCover1"" > 0.2)&& (alive this)";
- statement = "this animate[""CloseCover1"",0]";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class Close
- {
- displayName = "Close";
- position = "lightbar_axis";
- radius = 6;
- condition = "((this animationPhase ""CloseCover1"" < 0.3) || (this animationPhase ""CloseCover1"" > 0.5)) && (alive this)";
- statement = "this animate[""CloseCover1"",0.4]";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class WipersOff
- {
- displayName = "Wipers Off";
- position = "Switch";
- radius = 2.5;
- condition = "(player == (driver this)) && (alive this) && (this getVariable [""kyo_wipersOn"", false])";
- statement = "[this, false] execVM ""\aus_crown\data\scripts\animateWipers.sqf"";";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- class WipersOn
- {
- displayName = "Wipers On";
- position = "Switch";
- radius = 2.5;
- condition = "(player == (driver this)) && (alive this) && !(this getVariable [""kyo_wipersOn"", false])";
- statement = "[this, true] execVM ""\aus_crown\data\scripts\animateWipers.sqf"";";
- onlyforplayer = 0;
- priority = 5;
- showWindow = 0;
- };
- };
- class AnimationSources: AnimationSources
- {
- class Zeroanimation
- {
- source = "user";
- animPeriod = 0;
- initPhase = 0;
- };
- class LightAnim
- {
- source = "user";
- animPeriod = 1;
- initPhase = 1;
- };
- class ani_lightbar
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- class Ani_laptops
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class Ani_spotaxle
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class Ani_wblade1
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class Ani_Sirens
- {
- source = "user";
- animPeriod = 0.2;
- initPhase = 0;
- };
- class Ani_wblade2
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class Ani_wblade3
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class CloseCover1
- {
- source = "user";
- initPhase = 0;
- animPeriod = 0.7;
- };
- class CloseCover2: CloseCover1
- {
- };
- class OneSecondAnim
- {
- source = "user";
- animPeriod = 1;
- initPhase=0;
- };
- class FiveSecondAnim
- {
- source = "user";
- animPeriod = 5;
- initPhase=0;
- };
- class Decal1
- {
- scope = 0;
- };
- class License1
- {
- scope = 0;
- };
- class License2
- {
- scope = 0;
- };
- class Ani_Ramp
- {
- source = "user";
- animPeriod = 2;
- initPhase = 0;
- };
- class ani_spot
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class slow_func2
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class slow_func
- {
- source = "user";
- animPeriod = 0.5;
- initPhase = 0;
- };
- class ani_directional
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- };
- fuelCapacity = 125;
- maxSpeed = 150;
- enginePower = 250;
- maxOmega = 700;
- peakTorque = 669;
- };
- class Aus_PD2: Aus_CROWNBase
- {
- displayname = "Police Patrol Wheelen";
- model = "\Aus_CROWN\Aus_PD2.p3d";
- picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
- Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
- scope = 2;
- weapons[] = {"AM_horn_airhorn","AM_horn_takedown1"};
- typicalCargo[] = {"C_man_1"};
- cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
- hiddenSelections[] = {"jump","light1","light2","light3","light4","light5","light6","y1","y2","y3","y4","ion1","ion2","ion3","ion4","strobe1","strobe2","inter1","inter2","strobe1","strobe2","lb-left-back-corner","lb-back-yellow-1","lb-back-yellow-2","lb-back-yellow-3","lb-back-yellow-4","lb-back-yellow-5","lb-back-yellow-6","lb-left-alley","lb-right-alley","lb-ion-blue","lb-ion-red","radar_patrol_c","radar_patrol_d","radar_patrol_u","radar_fast_c","radar_fast_d","radar_fast_u","radar_target_c","radar_target_d","radar_target_u","target1","target2","target3","lock1","lock2","lock3","patrol1","patrol2","patrol3","Camo1"};
- hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","a3l_client2\textures\pic0.paa","aus_crown\textures\pic0.paa","aus_crown\textures\pic0.paa","aus_crown\textures\green\0.paa","aus_crown\textures\green\0.paa","aus_crown\textures\green\0.paa","A3L_CVPI\data\skinPDSupervisor.paa"};
- class eventhandlers
- {
- init = "_this execVM '\Aus_CROWN\data\Scripts\init.sqf';";
- };
- class UserActions
- {
- class codeOne
- {
- displayName = "<t color='#ff0000'>LED OFF</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
- statement = "this animate ['ani_lightbar', 0], this animate ['ani_sirens', 0], this animate ['ani_wigs', 0]";
- onlyForplayer = 1;
- };
- class LightMode1
- {
- displayName = "<t color='#a40000'>LED/Sirens</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.5)";
- statement = "this animate ['ani_lightbar', 0.5], this animate ['ani_wigs', 0.5], this animate ['ani_sirens', 0.5]";
- onlyForplayer = 1;
- };
- class LightMode2
- {
- displayName = "<t color='#a40000'>LEDS</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.5)";
- statement = "this animate ['ani_lightbar', 0.5], this animate ['ani_wigs', 0.5], this animate ['ani_siren', 0.0]";
- onlyForplayer = 1;
- };
- class SPOTON
- {
- displayName = "Spot On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""SPOT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""SPOT"", true]";
- };
- class SPOTOFF
- {
- displayName = "Spot Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""SPOT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""SPOT"", false]";
- };
- class DIRECTLON
- {
- displayName = "Right On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""LEFT"", true]";
- };
- class DIRECTLOFF
- {
- displayName = "Right Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""LEFT"", false]";
- };
- class DIRECTRON
- {
- displayName = "Left On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""RIGHT"", true]";
- };
- class DIRECTROFF
- {
- displayName = "Left Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""RIGHT"", false]";
- };
- class HAZARDON
- {
- displayName = "Hazard On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""HAZARD"", true]";
- };
- class HAZARDOFF
- {
- displayName = "Hazard Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""HAZARD"", false]";
- };
- };
- class AnimationSources: AnimationSources
- {
- class Zeroanimation
- {
- source = "user";
- animPeriod = 0;
- initPhase = 0;
- };
- class LightAnim
- {
- source = "user";
- animPeriod = 1;
- initPhase = 1;
- };
- class ani_lightbar
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- class ani_sirens
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- class ani_wigs
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- class LampL
- {
- source = "user";
- animPeriod = 1.5;
- initPhase = 0;
- };
- class LampR
- {
- source = "user";
- animPeriod = 1.5;
- initPhase = 0;
- };
- };
- fuelCapacity = 125;
- maxSpeed = 220;
- enginePower = 230;
- maxOmega = 700;
- peakTorque = 669;
- };
- class Aus_PDSLICK: Aus_CROWNBase
- {
- displayname = "Police Slicktop";
- model = "\Aus_CROWN\Aus_PDSLICK.p3d";
- picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
- Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
- scope = 2;
- weapons[] = {"AM_horn_airhorn","AM_horn_takedown1"};
- typicalCargo[] = {"C_man_1"};
- cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
- hiddenSelections[] = {"jump","light0","light2","light3","light4","light5","light6","lb-right-takedown","lb-right-front-corner","lb-right-back-corner","lb-back-red-1","lb-back-red-2","lb-back-red-3","lb-back-blue-3","lb-back-blue-2","lb-back-blue-1","lb-left-back-corner","lb-back-yellow-1","lb-back-yellow-2","lb-back-yellow-3","lb-back-yellow-4","lb-back-yellow-5","lb-back-yellow-6","lb-left-alley","lb-right-alley","lb-ion-blue","lb-ion-red"};
- hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
- class eventhandlers
- {
- init = "_this execVM '\Aus_CROWN\data\Scripts\init.sqf';";
- };
- class UserActions
- {
- class codeOne
- {
- displayName = "<t color='#ff0000'>LED OFF</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
- statement = "this animate ['ani_lightbar', 0], this animate ['ani_siren', 0], this animate ['ani_directional', 0]";
- onlyForplayer = 1;
- };
- class LightMode1
- {
- displayName = "<t color='#a40000'>LED ON</t>";
- position = "lightbar_axis";
- radius = 10;
- condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.5)";
- statement = "this animate ['ani_lightbar', 0.5], this animate ['ani_directional', 0.5]";
- onlyForplayer = 1;
- };
- class SirensOn
- {
- displayName = "<t color='#00fcff'>Siren oN</t>";
- position = "gen_sirens_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "this animationPhase ""genSirens"" < 0.5 && driver this == player";
- statement = "this animate [""genSirens"",1]";
- };
- class SirensOff
- {
- displayName = "<t color='#029a9c'>Siren Off</t>";
- position = "gen_sirens_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "this animationPhase ""genSirens"" >= 0.5 && driver this == player";
- statement = "this animate [""genSirens"",0]";
- };
- class swivelmdtright
- {
- displayName="Swivel MDT Right";
- position="door1_axis";
- radius=1;
- onlyforplayer = false;
- condition="this animationPhase ""ani_door1""<0.5";
- statement="this animate [""ani_door1"", 1]";
- };
- class swivelmdtleft
- {
- displayName="Swivel MDT Left";
- position="door1_axis";
- radius=1;
- onlyforplayer = false;
- condition="this animationPhase ""ani_door1""==1";
- statement="this animate [""ani_door1"", 0]";
- };
- class DIRECTLON
- {
- displayName = "Right On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""LEFT"", true]";
- };
- class DIRECTLOFF
- {
- displayName = "Right Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""LEFT"", false]";
- };
- class DIRECTRON
- {
- displayName = "Left On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""RIGHT"", true]";
- };
- class DIRECTROFF
- {
- displayName = "Left Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""RIGHT"", false]";
- };
- class HAZARDON
- {
- displayName = "Hazard On";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "!(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""HAZARD"", true]";
- };
- class HAZARDOFF
- {
- displayName = "Hazard Off";
- position = "lightbar_axis";
- radius = 5;
- onlyforplayer = 1;
- condition = "(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
- statement = "this setvariable [""HAZARD"", false]";
- };
- };
- class AnimationSources: AnimationSources
- {
- class Zeroanimation
- {
- source = "user";
- animPeriod = 0;
- initPhase = 0;
- };
- class OneSecondAnim
- {
- source = "user";
- animPeriod = 1;
- initPhase=0;
- };
- class FiveSecondAnim
- {
- source = "user";
- animPeriod = 5;
- initPhase=0;
- };
- class LightAnim
- {
- source = "user";
- animPeriod = 1;
- initPhase = 1;
- };
- class ani_lightbar
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- class ani_direct
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- class ani_siren
- {
- source = "user";
- animPeriod = 1;
- initPhase = 0;
- };
- };
- fuelCapacity = 125;
- maxSpeed = 220;
- enginePower = 230;
- maxOmega = 700;
- peakTorque = 669;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement