change position to eye angles

This commit is contained in:
jenzur 2020-10-02 19:48:04 +02:00
parent 55da3bc311
commit 4fdd1670a1

View File

@ -344,8 +344,10 @@ public void trace_hulling_bot()
{
//ran into wall
float move_angles[3];
GetClientEyePosition(present, move_angles);
move_angles[1] += 5.0;
GetClientEyeAngles(present, move_angles);
move_angles[0] = 0.0;
move_angles[1] += 15;
move_angles[2] = 0.0;
TeleportEntity(present, NULL_VECTOR, move_angles, NULL_VECTOR);
}
}