mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Implement/match CRadar__DrawMap__FindPlayerSpeed_Hook
This commit is contained in:
+11
-1
@@ -46,6 +46,7 @@ DWORD dwParam2;
|
||||
DWORD dwParamThis;
|
||||
|
||||
DWORD unnamed_101516D4;
|
||||
DWORD unnamed_10151710;
|
||||
DWORD unnamed_10151810;
|
||||
DWORD unnamed_10151814;
|
||||
DWORD unnamed_10151818;
|
||||
@@ -761,7 +762,16 @@ NUDE CObject__Render_Hook()
|
||||
|
||||
NUDE CRadar__DrawMap__FindPlayerSpeed_Hook()
|
||||
{
|
||||
// TODO: CRadar__DrawMap__FindPlayerSpeed_Hook
|
||||
// keep the map still while the local player is a vehicle passenger
|
||||
if(pGame && pGame->FindPlayerPed() && pGame->FindPlayerPed()->IsInVehicle() &&
|
||||
pGame->FindPlayerPed()->sub_100ABFC0())
|
||||
{
|
||||
_asm lea eax, unnamed_10151710
|
||||
_asm ret
|
||||
}
|
||||
|
||||
_asm mov edx, 0x56E090 ;// FindPlayerSpeed
|
||||
_asm jmp edx
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
@@ -49,6 +49,7 @@ public:
|
||||
void SetStateFlags(DWORD dwStateFlags);
|
||||
BOOL IsDead();
|
||||
BOOL IsInVehicle();
|
||||
BOOL sub_100ABFC0(); // .text:100ABFC0
|
||||
BYTE GetActionTrigger();
|
||||
void SetActionTrigger(BYTE byteTrigger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user