trying to fix teleport issue when running into tp
This commit is contained in:
parent
e80286157d
commit
29d3aa5c26
@ -147,7 +147,7 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3
|
||||
has_to_jump_bots[client] = 2;
|
||||
return Plugin_Continue;
|
||||
}
|
||||
if (has_to_jump_bots[client] == 1)
|
||||
if (has_to_jump_bots[client] == 1 && !bot_follow_tp[client])
|
||||
{
|
||||
//teleport back on ground so can jump
|
||||
TeleportEntity(client, coords_run_cmd[client], NULL_VECTOR, NULL_VECTOR);
|
||||
@ -532,7 +532,6 @@ public Action recursive_pressing(Handle timer, any data)
|
||||
if (!IsPointVisible(ClientPos, friend_prev) && distance_prev_friend_prior > 500.0)
|
||||
{
|
||||
bot_follow_tp[client] = true;
|
||||
has_to_jump_bots[client] = 2;
|
||||
}
|
||||
}
|
||||
if (IsValidClient(target_friend[client]) && !bot_follow_tp[client])
|
||||
@ -558,7 +557,6 @@ public Action recursive_pressing(Handle timer, any data)
|
||||
targetfriend_prev_coords[client][1] = 0.0;
|
||||
targetfriend_prev_coords[client][2] = 0.0;
|
||||
bot_follow_tp[client] = false;
|
||||
has_to_jump_bots[client] = 0;
|
||||
}
|
||||
state = 8; //if its walking into a TP or up/down a ladder it matters to use +forward;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user