mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
comments
This commit is contained in:
parent
9fc38dd537
commit
31f65f6bee
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user