mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-22 08:00:49 +03:00
Add extra animations to ArmoredSUV, MV22, UH1Y
This commit is contained in:
45
SQF/dayz_code/Configs/CfgVehicles/Helicopter/AH1Z.hpp
Normal file
45
SQF/dayz_code/Configs/CfgVehicles/Helicopter/AH1Z.hpp
Normal file
@@ -0,0 +1,45 @@
|
||||
class AH1Z;
|
||||
class AH1Z_DZ: AH1Z {
|
||||
scope = public;
|
||||
crew = "";
|
||||
typicalCargo[] = {};
|
||||
class TransportMagazines {};
|
||||
class TransportWeapons {};
|
||||
commanderCanSee = 2+16+32;
|
||||
gunnerCanSee = 2+16+32;
|
||||
driverCanSee = 2+16+32;
|
||||
fuelCapacity = 1333;
|
||||
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
killed = "_this call BIS_Effects_EH_Killed;";
|
||||
engine = "if (_this select 1) then {(_this select 0) animate ['mainrotor_folded',1]; (_this select 0) animate ['mainrotor_unfolded',0]; (_this select 0) animate ['rotorshaft_unfolded',0];} else {_this select 0 setVariable ['engineOffTime',diag_tickTime,false];};"; //Unfold
|
||||
};
|
||||
class UserActions {
|
||||
//class Repair {ACTION_REPAIR; radius = 8;};
|
||||
//class Salvage {ACTION_SALVAGE; radius = 8;};
|
||||
class Fold {
|
||||
displayName = $STR_AM_PACK;
|
||||
displayNameDefault = $STR_AM_PACK;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "!isEngineOn this && {player == driver this} && {this animationPhase 'mainrotor_unfolded' == 0} && {diag_tickTime - (this getVariable ['engineOffTime',0]) > 20}";
|
||||
statement = "this animate ['mainrotor_folded',0]; this animate ['mainrotor_unfolded',1]; this animate ['rotorshaft_unfolded',1];";
|
||||
};
|
||||
class Unfold {
|
||||
displayName = $STR_AM_UNPACK;
|
||||
displayNameDefault = $STR_AM_UNPACK;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "!isEngineOn this && {player == driver this} && {this animationPhase 'mainrotor_unfolded' == 1}";
|
||||
statement = "this animate ['mainrotor_folded',1]; this animate ['mainrotor_unfolded',0]; this animate ['rotorshaft_unfolded',0];";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -37,7 +37,7 @@ class CH53_DZE : USEC_ch53_E {
|
||||
class Repair {ACTION_REPAIR; radius = 8;};
|
||||
class Salvage {ACTION_SALVAGE; radius = 8;};
|
||||
class RampOpen {
|
||||
displayName = "Open Ramp";
|
||||
displayName = $STR_EPOCH_OPEN_RAMP;
|
||||
position = "ramp action";
|
||||
showWindow = 0;
|
||||
radius = 5;
|
||||
@@ -46,7 +46,7 @@ class CH53_DZE : USEC_ch53_E {
|
||||
onlyforplayer = 0;
|
||||
};
|
||||
class RampClose {
|
||||
displayName = "Close Ramp";
|
||||
displayName = $STR_EPOCH_CLOSE_RAMP;
|
||||
position = "ramp action";
|
||||
showWindow = 0;
|
||||
radius = 5;
|
||||
|
||||
@@ -300,7 +300,9 @@ class Mi171Sh_CZ_EP1_DZ: Mi17_base {
|
||||
class HUDoff {
|
||||
displayName = $STR_AM_HUDON;
|
||||
displayNameDefault = $STR_AM_HUDON;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "(player==driver this)and(this animationphase ""HUDAction"" !=0)";
|
||||
@@ -309,7 +311,9 @@ class Mi171Sh_CZ_EP1_DZ: Mi17_base {
|
||||
class HUDon {
|
||||
displayName = $STR_AM_HUDOFF;
|
||||
displayNameDefault = $STR_AM_HUDOFF;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "(player==driver this)and(this animationphase ""HUDAction"" !=1)";
|
||||
|
||||
@@ -88,13 +88,21 @@ class UH1Y_DZ: UH1_Base {
|
||||
magazines[] = {"2000Rnd_762x51_M134"};
|
||||
};
|
||||
};*/
|
||||
class DefaultEventhandlers;
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
killed = "_this call BIS_Effects_EH_Killed;";
|
||||
engine = "if (_this select 1) then {(_this select 0) animate ['mainrotor_folded',1]; (_this select 0) animate ['mainrotor_unfolded',0];} else {_this select 0 setVariable ['engineOffTime',diag_tickTime,false];};"; //Unfold
|
||||
};
|
||||
class UserActions {
|
||||
//class Repair {ACTION_REPAIR; radius = 8;};
|
||||
//class Salvage {ACTION_SALVAGE; radius = 8;};
|
||||
class HUDoff {
|
||||
displayName = $STR_AM_HUDON;
|
||||
displayNameDefault = $STR_AM_HUDON;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "(player==driver this)and(this animationphase ""HUDAction"" !=1)";
|
||||
@@ -103,12 +111,36 @@ class UH1Y_DZ: UH1_Base {
|
||||
class HUDon {
|
||||
displayName = $STR_AM_HUDOFF;
|
||||
displayNameDefault = $STR_AM_HUDOFF;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "(player==driver this)and(this animationphase ""HUDAction"" !=0)";
|
||||
statement = "this animate [""HUDAction"",0];this animate [""HUDAction_1"",0]";
|
||||
};
|
||||
class Fold {
|
||||
displayName = $STR_AM_PACK;
|
||||
displayNameDefault = $STR_AM_PACK;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "!isEngineOn this && {player == driver this} && {this animationPhase 'mainrotor_unfolded' == 0} && {diag_tickTime - (this getVariable ['engineOffTime',0]) > 20}";
|
||||
statement = "this animate ['mainrotor_folded',0]; this animate ['mainrotor_unfolded',1];";
|
||||
};
|
||||
class Unfold {
|
||||
displayName = $STR_AM_UNPACK;
|
||||
displayNameDefault = $STR_AM_UNPACK;
|
||||
priority = 0;
|
||||
position = "zamerny";
|
||||
showWindow = 0;
|
||||
radius = 1;
|
||||
onlyForPlayer = 1;
|
||||
condition = "!isEngineOn this && {player == driver this} && {this animationPhase 'mainrotor_unfolded' == 1}";
|
||||
statement = "this animate ['mainrotor_folded',1]; this animate ['mainrotor_unfolded',0];";
|
||||
};
|
||||
};
|
||||
};
|
||||
class UH1Y_DZE: UH1Y_DZ {
|
||||
|
||||
Reference in New Issue
Block a user