mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Implement/match CPlayerPed::SetTargetRotation(...)
This commit is contained in:
@ -281,6 +281,17 @@ float CPlayerPed::GetTargetRotation()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
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)
|
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||||
{
|
{
|
||||||
if(!m_pPed) return;
|
if(!m_pPed) return;
|
||||||
|
@ -42,6 +42,7 @@ public:
|
|||||||
WORD GetAmmo();
|
WORD GetAmmo();
|
||||||
|
|
||||||
float GetTargetRotation();
|
float GetTargetRotation();
|
||||||
|
void SetTargetRotation(float fRotation);
|
||||||
void GiveWeapon(int iWeaponID, int iAmmo);
|
void GiveWeapon(int iWeaponID, int iAmmo);
|
||||||
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
||||||
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
||||||
|
Reference in New Issue
Block a user