fixed rotating on ladders

This commit is contained in:
Christian 2021-01-29 22:43:16 +01:00
parent 509a2ad03e
commit 2457a645c5

View File

@ -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;
}
}