Added cPlayer:SendRotation() API function.
This commit is contained in:
@@ -1124,6 +1124,17 @@ void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
||||
|
||||
|
||||
|
||||
void cPlayer::SendRotation(double a_YawDegrees, double a_PitchDegrees)
|
||||
{
|
||||
SetYaw(a_YawDegrees);
|
||||
SetPitch(a_PitchDegrees);
|
||||
m_ClientHandle->SendPlayerMoveLook();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Vector3d cPlayer::GetThrowStartPos(void) const
|
||||
{
|
||||
Vector3d res = GetEyePosition();
|
||||
|
||||
Reference in New Issue
Block a user