diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index 0f193877..567f57d0 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -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; }