changed mind about where tracehulling should be performed

This commit is contained in:
jenz 2023-10-28 00:38:54 +02:00
parent a049ed7f9a
commit 6465427290

View File

@ -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)