From ff5c02f397bd36496bea911b115fefe60430da81 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 18 Sep 2013 09:34:33 -0500 Subject: [PATCH] Prevent bunny hop near base building items to reduce glitching into walls. --- SQF/dayz_code/init/compiles.sqf | 9 ++++++++- SQF/dayz_code/init/variables.sqf | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index 8307325cd..f1c818c75 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -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 diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 5ba5451c2..30417b4ed 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -452,8 +452,8 @@ if(isNil "dayz_zedsAttackVehicles") then { // update objects dayz_updateObjects = ["Car", "Helicopter", "Motorcycle", "Ship", "TentStorage", "VaultStorage","LockboxStorage","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ"]; -dayz_disallowedVault = ["TentStorage", "BuiltItems"]; -dayz_reveal = ["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems"]; +dayz_disallowedVault = ["TentStorage", "BuiltItems","ModularItems","DZE_Base_Object"]; +dayz_reveal = ["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"]; dayz_allowedObjects = ["TentStorage","TentStorageDomed","TentStorageDomed2", "VaultStorageLocked", "Hedgehog_DZ", "Sandbag1_DZ","TrapBear","Fort_RazorWire","WoodGate_DZ","Land_HBarrier1_DZ","Land_HBarrier3_DZ","Fence_corrugated_DZ","M240Nest_DZ","CanvasHut_DZ","ParkBench_DZ","MetalGate_DZ","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","Plastic_Pole_EP1_DZ","Generator_DZ","StickFence_DZ","LightPole_DZ","FuelPump_DZ","DesertCamoNet_DZ","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ","SandNest_DZ","DeerStand_DZ","MetalPanel_DZ","WorkBench_DZ","WoodFloor_DZ","WoodLargeWall_DZ","WoodLargeWallDoor_DZ","WoodLargeWallWin_DZ","WoodSmallWall_DZ","WoodSmallWallWin_DZ","WoodSmallWallDoor_DZ","LockboxStorageLocked","WoodFloorHalf_DZ","WoodFloorQuarter_DZ","WoodStairs_DZ","WoodStairsSans_DZ","WoodSmallWallThird_DZ","WoodLadder_DZ","Land_DZE_GarageWoodDoor","Land_DZE_LargeWoodDoor","Land_DZE_WoodDoor","Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallHalf_DZ","CinderWall_DZ","CinderWallDoorway_DZ","CinderWallDoor_DZ","CinderWallDoorLocked_DZ","CinderWallSmallDoorway_DZ","CinderWallDoorSmall_DZ","CinderWallDoorSmallLocked_DZ","MetalFloor_DZ"]; DZE_LockableStorage = ["VaultStorage","VaultStorageLocked","LockboxStorageLocked","LockboxStorage"];