Wrong defaults (just in case not loaded full in))

This commit is contained in:
He-Man 2019-10-24 20:02:26 +02:00
parent 3ce54194b3
commit 8f55acf9a6
4 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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);

View File

@ -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;