change position to eye angles
This commit is contained in:
parent
55da3bc311
commit
4fdd1670a1
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user