mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match CWeapon__FireSniper_Hook
This commit is contained in:
+20
-1
@@ -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
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user