This commit is contained in:
vbawol 2017-09-04 10:54:55 -05:00
parent 9fc38dd537
commit 31f65f6bee
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ if (_playerRadiation > 1) then {
[_radiationVal, 2] call epoch_setRadiation;
// if player has geiger counter make sound based on rads level
if ('ItemGeigerCounter_EPOCH' in assignedItems player) then { // TODO change classname to match
if ('ItemGeigerCounter_EPOCH' in assignedItems player) then {
_level = round(linearConversion [0,100,_radsLevel,0,3,true]);
_sound = format ["geiger_%1",_level];
playSound _sound;

View File

@ -22,7 +22,7 @@ if (_outOfBounds) then {
_radsLevel = (_radioActiveSite getVariable ["EPOCH_Rads", 0]) / (player distance _radioActiveSite);
_playerRadiation = ((_playerRadiation + _radsLevel) min 100) max 0;
} else {
// handle reduction of rads in master loop
// TODO handle reduction of rads in master loop
_anitRadiation = player getVariable ["EPOCH_antiRadiation", 0];
if (_anitRadiation > 0) then {
// lower radiation by 0.1 per tick