mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement and match CPlayerPed::ResetPointers()
This commit is contained in:
@@ -50,6 +50,16 @@ CPlayerPed::CPlayerPed()
|
||||
field_2F9 = 0;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// If the game has internally destroyed the ped
|
||||
// during this frame, the ped pointer should become 0
|
||||
|
||||
void CPlayerPed::ResetPointers()
|
||||
{
|
||||
m_pPed = GamePool_Ped_GetAt(m_dwGTAId);
|
||||
m_pEntity = (ENTITY_TYPE *)m_pPed;
|
||||
}
|
||||
|
||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
||||
@@ -16,6 +16,8 @@ class CPlayerPed : public CEntity
|
||||
{
|
||||
public:
|
||||
|
||||
void ResetPointers();
|
||||
|
||||
WORD GetAmmo();
|
||||
|
||||
void GiveWeapon(int iWeaponID, int iAmmo);
|
||||
|
||||
Reference in New Issue
Block a user