[saco] Implement/match CWeapon__FireSniper_Hook

This commit is contained in:
ricardoofnl
2026-08-30 13:25:34 +07:00
parent 001f9bbacc
commit 793b1593a6
2 changed files with 22 additions and 1 deletions
+20 -1
View File
@@ -1837,9 +1837,28 @@ NUDE CWorld__ProcessLineOfSight_Hook()
//-----------------------------------------------------------
ENTITY_TYPE* pSniperFiringEntity = 0;
NUDE CWeapon__FireSniper_Hook()
{
// TODO: CWeapon__FireSniper_Hook
_asm mov eax, [esp+0x4]
_asm mov pSniperFiringEntity, eax
_asm pushad
if(pSniperFiringEntity != (ENTITY_TYPE*)GamePool_FindPlayerPed())
{
__asm
{
popad
retn 0xC
}
}
if(pGame && pGame->FindPlayerPed())
pGame->FindPlayerPed()->FUNC_100AFA70();
_asm popad
_asm ret 0xC
}
//-----------------------------------------------------------
+2
View File
@@ -141,6 +141,8 @@ public:
VECTOR* GetBonePosition(int iBone, VECTOR *vecPos);
VECTOR* GetTransformedBonePosition(int iBone, VECTOR *vecOffset);
BOOL FUNC_100AFA70(); // .text:100AFA70
int m_iCellPhoneEnabled;
int field_4C[10];
struc_97 field_74[10];