[saco] Implement/match CPlayerPed::SetTargetRotation(...)

This commit is contained in:
RD42 2024-08-05 18:12:18 +08:00
parent 195f63f62e
commit e56e35f94e
2 changed files with 12 additions and 0 deletions

View File

@ -279,6 +279,17 @@ float CPlayerPed::GetTargetRotation()
return fZAngle;
}
//-----------------------------------------------------------
void CPlayerPed::SetTargetRotation(float fRotation)
{
if(!m_pPed) return;
if(!GamePool_Ped_GetAt(m_dwGTAId)) return;
m_pPed->fRotation2 = DegToRad(fRotation);
m_pPed->fRotation1 = DegToRad(fRotation);
}
//-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)

View File

@ -42,6 +42,7 @@ public:
WORD GetAmmo();
float GetTargetRotation();
void SetTargetRotation(float fRotation);
void GiveWeapon(int iWeaponID, int iAmmo);
void SetArmedWeapon(int iWeaponType, bool bUnk);
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();