fixed rotating on ladders
This commit is contained in:
parent
509a2ad03e
commit
2457a645c5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user