Prevent bunny hop near base building items to reduce glitching into walls.

This commit is contained in:
[VB]AWOL
2013-09-18 09:34:33 -05:00
parent 326770ed86
commit ff5c02f397
2 changed files with 10 additions and 3 deletions

View File

@@ -262,8 +262,15 @@ if (!isDedicated) then {
_handled = false;
if (_dikCode in (actionKeys "GetOver")) then {
if (player isKindOf "PZombie_VB") exitWith {
if (player isKindOf "PZombie_VB") then {
player switchAction "walkf";
} else {
_inBuilding = [player] call fnc_isInsideBuilding;
_nearbyObjects = nearestObjects[getPosATL player, dayz_disallowedVault, 8];
if (_inBuilding or (count _nearbyObjects > 0)) then {
[objNull, player, rSwitchMove,"GetOver"] call RE;
player playActionNow "GetOver";
};
};
};
//if (_dikCode == 57) then {_handled = true}; // space