mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
[saco] Implement and match CPlayerPed::ResetPointers()
This commit is contained in:
parent
29fc46aa00
commit
4a743549b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user