From 2457a645c5dcbb47c70389db47df8fc4bcb06b36 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 29 Jan 2021 22:43:16 +0100 Subject: [PATCH] fixed rotating on ladders --- AutismBotIngame/scripting/autism_bot_info.sp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index 1765f6e1..66503265 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -444,11 +444,14 @@ public void trace_hulling_bot() } //currently detects when two walls meet and create a corner float move_angles[3]; - GetClientEyeAngles(present, move_angles); - move_angles[0] = 0.0; - move_angles[1] += 35.0; - move_angles[2] = 0.0; - TeleportEntity(present, NULL_VECTOR, move_angles, NULL_VECTOR); + if (GetEntityMoveType(present) != MOVETYPE_LADDER) + { + GetClientEyeAngles(present, move_angles); + move_angles[0] = 0.0; + move_angles[1] += 35.0; + move_angles[2] = 0.0; + TeleportEntity(present, NULL_VECTOR, move_angles, NULL_VECTOR); + } return; } }