fix error if EPOCH_playerEnergyMax was nil
another test case for swapBuilding if still not fixed.
removed hitpoints var from heal and godmode as it is not used.
This commit is contained in:
vbawol 2017-09-25 17:19:53 -05:00
parent d318d99a86
commit 2154402d85
3 changed files with 10 additions and 3 deletions

View File

@ -25,6 +25,13 @@ if (!isNull _object && !(_class isEqualTo "")) then {
case 1: {
_newObj attachTo [_object,[0,0,0]];
};
/*
case 2: {
_newObj setPosWorld _objectPos;
_newObj setDir (getDir _object);
_newObj setVectorUp (vectorup _object);
};
*/
};
deleteVehicle _object;

View File

@ -1438,8 +1438,8 @@ _skn_admincode = compileFinal ("
player allowDamage false;
{
missionNamespace setVariable[format['EPOCH_player%1', _x], EPOCH_defaultVars select(EPOCH_customVars find _x)]
} forEach['Temp','Hunger','Thirst','Toxicity','Stamina','HitPoints','BloodP'];
EPOCH_playerEnergy = EPOCH_playerEnergyMax;
} forEach['Temp','Hunger','Thirst','Toxicity','Stamina','BloodP'];
EPOCH_playerEnergy = missionNamespace getVariable ['EPOCH_playerEnergyMax', 2500];
uiSleep 0.25;
!"+_skn_tg_godMode+"
};

View File

@ -30,7 +30,7 @@ class CfgSecConf
resetTempGroup = "Epoch_my_tempGroup = []; Epoch_my_tempGroupUID = '';";
tempGroupUpdate = "Epoch_my_tempGroup = _this; call EPOCH_tempGroup_update;";
tempGroupUidUpdate = "Epoch_my_tempGroupUID = _this;";
healPlayer = "{missionNamespace setVariable[format['EPOCH_player%1', _x], EPOCH_defaultVars select(EPOCH_customVars find _x)]} forEach['Temp','Hunger','Thirst','Toxicity','Stamina','HitPoints','BloodP','Alcohol','Radiation'];";
healPlayer = "{missionNamespace setVariable[format['EPOCH_player%1', _x], EPOCH_defaultVars select(EPOCH_customVars find _x)]} forEach['Temp','Hunger','Thirst','Toxicity','Stamina','BloodP','Alcohol','Radiation'];";
tradeComplete = "EPOCH_TRADE_COMPLETE = _this;";
};