diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index 89d73510..8f91ade7 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -227,8 +227,6 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3 { get_new_angles(client, target_enemy[client], angles); } - if (GetEntProp(client, Prop_Data, "m_nWaterLevel") == 0 && GetEntityMoveType(client) != MOVETYPE_LADDER) - trace_hulling_bot(client); } if ((GetEntityMoveType(client) & MOVETYPE_LADDER)) @@ -719,6 +717,8 @@ public Action recursive_pressing(Handle timer, any data) { state = 7; } + if (GetEntProp(client, Prop_Data, "m_nWaterLevel") == 0 && GetEntityMoveType(client) != MOVETYPE_LADDER) + trace_hulling_bot(client); char message[generic_length * 7]; Format(message, sizeof(message), "dist_target: %f enemy_distance: %f targeteam: %i state: %i", dist_target, enemy_distance, targeteam, state); if (specific_bot_player[client] == 1)