mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Wrong defaults (just in case not loaded full in))
This commit is contained in:
parent
3ce54194b3
commit
8f55acf9a6
@ -36,7 +36,7 @@ _isSnap = false;
|
||||
|
||||
_playerEnergyKeyFinal = "EPOCH_playerEnergy";
|
||||
if !(isNil "_playerEnergyKey") then {_playerEnergyKeyFinal = _playerEnergyKey};
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,[]];
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,0];
|
||||
|
||||
if (_playerEnergy <= 0) exitWith {
|
||||
["Need Energy", 5] call Epoch_message;
|
||||
@ -110,7 +110,7 @@ if (isText(_simulClassConfig)) then {
|
||||
EPOCH_Z_OFFSET = _offset select 2;
|
||||
_lastCheckTime = diag_tickTime;
|
||||
while {EPOCH_target == _currentTarget} do {
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,[]];
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,0];
|
||||
if (_playerEnergy <= 0) exitWith { EPOCH_target = objNull; };
|
||||
_rejectMove = false;
|
||||
if ((diag_tickTime - _lastCheckTime) > 10) then {
|
||||
|
@ -39,7 +39,7 @@ if (_item == "") exitWith{ EPOCH_target = objNull; };
|
||||
|
||||
_playerEnergyKeyFinal = "EPOCH_playerEnergy";
|
||||
if !(isNil "_playerEnergyKey") then {_playerEnergyKeyFinal = _playerEnergyKey};
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,[]];
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,0];
|
||||
|
||||
if (_playerEnergy <= 0) exitWith{
|
||||
["Need Energy", 5] call Epoch_message;
|
||||
|
@ -34,7 +34,7 @@ _tapDiag = _playerDeathScreen;
|
||||
|
||||
_playerAliveTimeKeyFinal = "EPOCH_playerAliveTime";
|
||||
if !(isNil "_playerAliveTimeKey") then {_playerAliveTimeKeyFinal = _playerAliveTimeKey};
|
||||
_playerAliveTime = missionNamespace getVariable [_playerAliveTimeKeyFinal,[]];
|
||||
_playerAliveTime = missionNamespace getVariable [_playerAliveTimeKeyFinal,0];
|
||||
|
||||
_doRevenge = ((getNumber(_config >> "playerDisableRevenge") isEqualTo 0) && _playerAliveTime >= _playerRevengeMinAliveTime);
|
||||
|
||||
|
@ -280,7 +280,7 @@ if (_dikCode in (actionKeys "TacticalView")) then {
|
||||
_handled = true;
|
||||
};
|
||||
if (_dikCode in (actionKeys "NightVision")) then {
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,[]];
|
||||
_playerEnergy = missionNamespace getVariable [_playerEnergyKeyFinal,0];
|
||||
if (_playerEnergy == 0) then {
|
||||
["Night Vision Goggles: Need Energy", 5] call Epoch_message;
|
||||
_handled = true;
|
||||
|
Loading…
Reference in New Issue
Block a user