mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs. A proper config should use numbers for those entries. This is the same how arma configs are written. The basicDefines.hpp has all the needed information stored. Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
57 lines
1.8 KiB
C++
57 lines
1.8 KiB
C++
class AH1Z;
|
|
class AH1Z_DZ: AH1Z {
|
|
scope = 2;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
class TransportMagazines {};
|
|
class TransportWeapons {};
|
|
commanderCanSee = 2+16+32;
|
|
gunnerCanSee = 2+16+32;
|
|
driverCanSee = 2+16+32;
|
|
fuelCapacity = 1333;
|
|
supplyRadius = 1.3;
|
|
|
|
class Turrets;
|
|
class MainTurret;
|
|
|
|
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 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];";
|
|
};
|
|
};
|
|
};
|
|
|
|
class AH1Z_DZE: AH1Z_DZ {
|
|
magazines[] = {"120Rnd_CMFlareMagazine"};
|
|
class Turrets: Turrets {
|
|
class MainTurret: MainTurret {
|
|
magazines[] = {};
|
|
};
|
|
};
|
|
}; |