[saco] Implement/match CActorPed::ToggleImmunity(...)

This commit is contained in:
RD42 2024-10-30 18:28:36 +08:00
parent 007f7729f9
commit 7e8ea75194
2 changed files with 14 additions and 0 deletions

View File

@ -214,3 +214,16 @@ BOOL CActorPed::IsInVehicle()
//-----------------------------------------------------------
void CActorPed::ToggleImmunity(BYTE byteEnable)
{
if(!m_pPed) return;
m_byteImmune = byteEnable;
if(byteEnable)
ScriptCommand(&set_actor_immunities,m_dwGTAId,1,1,1,1,1);
else
ScriptCommand(&set_actor_immunities,m_dwGTAId,0,0,0,1,0);
}
//-----------------------------------------------------------

View File

@ -29,6 +29,7 @@ public:
int opt1, int opt2, int opt3, int opt4, int iUnk);
void ClearAnimations();
void ToggleImmunity(BYTE byteEnable);
PED_TYPE *m_pPed;
DWORD m_dwMarkerID;