From 81262fbe1948cda391ed3346e34a9b2e85021abe Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 21 Apr 2016 13:07:36 -0400 Subject: [PATCH] Fix change clothes triggering radiation --- CHANGE LOG 1.0.6.txt | 1 + SQF/dayz_code/system/player_spawn_2.sqf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGE LOG 1.0.6.txt b/CHANGE LOG 1.0.6.txt index 398cdd296..5eb4a8766 100644 --- a/CHANGE LOG 1.0.6.txt +++ b/CHANGE LOG 1.0.6.txt @@ -73,6 +73,7 @@ [FIXED] Duplicate objectUIDs occasionally causing vehicles to swap classes or be deleted across restarts @ebaydayz #1504 [FIXED] DZE_BuildingLimit now counts buildables only instead of all object types. Thanks jOoPs @ebaydayz [FIXED] Reworked death messages. Fixed messages not always showing, undefined errors and wrong distance bug. Added bled out, killed by zombie, etc. MPHit event handler (fnc_plyrHit) is no longer needed. @ebaydayz +[FIXED] Player no longer hears radiation sound when changing clothes. @ebaydayz [UPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1 [UPDATED] .bat files updated in Config-Examples @Raziel23x diff --git a/SQF/dayz_code/system/player_spawn_2.sqf b/SQF/dayz_code/system/player_spawn_2.sqf index cd612bc26..6415c4820 100644 --- a/SQF/dayz_code/system/player_spawn_2.sqf +++ b/SQF/dayz_code/system/player_spawn_2.sqf @@ -142,7 +142,7 @@ while {1 == 1} do { _outsideMap = ((dayz_myPosition select 0) < dayz_minpos || (dayz_myPosition select 1) < dayz_minpos || (dayz_myPosition select 0) > dayz_maxpos || (dayz_myPosition select 1) > dayz_maxpos); - if((_outsideMap || DZE_Quarantine) && !r_player_dead && !isNull (findDisplay 46)) then { + if ((_outsideMap || DZE_Quarantine) && {!r_player_dead} && {!isNull (findDisplay 46)} && {player distance (getMarkerPos "respawn_west") > 200}) then { DZE_InRadiationZone = true; }; player setVariable["posForceUpdate",true,true];