Fix an rpt error when players doing a bunnyhop and getting pushed to the ground by zombies

This commit is contained in:
A Man
2022-06-26 15:59:03 +02:00
parent 3ca11a161c
commit e6adae7265

View File

@@ -220,7 +220,7 @@ if (_isVehicle) then {
//head hit, legs, pushed from back //head hit, legs, pushed from back
_knockdown = ["head_hit","legs"]; _knockdown = ["head_hit","legs"];
if (_wound in _knockdown) then { if (_wound in _knockdown) then {
if (((diag_tickTime - _lastTackle) > 7) && (_speed >= 5.62)) then { if (((diag_tickTime - _lastTackle) > 7) && (_speed >= 5.62) && {!((animationState player) in ["bunnyhopunarmed","bunnyhoprifle"])}) then {
switch true do { switch true do {
/* /*
//Removed for now //Removed for now
@@ -292,7 +292,7 @@ if (_isVehicle) then {
}; };
// Make player dive after making sure the zed can see you. // Make player dive after making sure the zed can see you.
if (_movePlayer != "") then { if (!isNil "_movePlayer" && {_movePlayer != ""}) then {
player setVariable ["lastTackle", diag_tickTime]; player setVariable ["lastTackle", diag_tickTime];
_doRE = ({isPlayer _x} count (player nearEntities ["AllVehicles",100]) > 1); _doRE = ({isPlayer _x} count (player nearEntities ["AllVehicles",100]) > 1);