mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CPlayerPed::SetTargetRotation(...)
This commit is contained in:
parent
195f63f62e
commit
e56e35f94e
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user