From 88741dae437ab9055cab1fc901ca24ac2a19dd3b Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 1 Jan 2023 22:06:38 +0100 Subject: [PATCH] fixed ladder issue --- AutismBotIngame/scripting/autism_bot_info.sp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index 7e9db80d..3ed4c1fe 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -126,7 +126,13 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3 { //we use info we just got from OnPlayerRunCmdPre to determine if to jump if (!IsValidClient(client) || !IsPlayerAlive(client) || !is_bot_player(client)) return Plugin_Continue; - if ((GetEntityMoveType(client) & MOVETYPE_LADDER) || GetEntProp(client, Prop_Data, "m_nWaterLevel") != 0) + if ((GetEntityMoveType(client) & MOVETYPE_LADDER)) + { + GetEntPropVector(client, Prop_Send, "m_vecOrigin", coords_run_cmd[client]); + return Plugin_Continue; + } + + if (GetEntProp(client, Prop_Data, "m_nWaterLevel") != 0) { return Plugin_Continue; }