mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Match CLocalPlayer::FUNC_10006FE0, the enter-vehicle key handler; fcomp/test ah, 5/jp is a float <
This commit is contained in:
1 parent
773bf14843
commit
0fedc9c0bc
3 files changed
+30
No files matched your search
@@ -125,6 +125,8 @@ public:
|
||||
|
||||
int sub_100ADFA0(); // .text:100ADFA0
|
||||
BOOL FUNC_100ABFC0(); // .text:100ABFC0
|
||||
BYTE FUNC_100ABC50(); // .text:100ABC50
|
||||
void FUNC_100AC410(DWORD dwGtaId, int a2); // .text:100AC410
|
||||
void FUNC_100ADFB0(int iLevel); // .text:100ADFB0
|
||||
int FUNC_100ADC90(); // .text:100ADC90
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
#include "../main.h"
|
||||
#include "../game/util.h"
|
||||
#include "../game/keystuff.h"
|
||||
|
||||
extern CGame *pGame;
|
||||
extern CNetGame *pNetGame;
|
||||
@@ -290,3 +291,29 @@ void CLocalPlayer::FUNC_10005AD0(WORD a1, int a2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// the enter-vehicle key handler; 46 is the parachute, which has to be put away
|
||||
void CLocalPlayer::FUNC_10006FE0()
|
||||
{
|
||||
GTA_CONTROLSET *pKeys = GameGetInternalKeys();
|
||||
CVehiclePool *pVehiclePool = pNetGame->GetVehiclePool();
|
||||
|
||||
if(pKeys->wKeys1[8] && !pKeys->wKeys2[8])
|
||||
{
|
||||
WORD wVehicleId = pVehiclePool->FUNC_1001EC00();
|
||||
if(wVehicleId < MAX_VEHICLES && pVehiclePool->field_3074[wVehicleId])
|
||||
{
|
||||
CVehicle *pVehicle = (CVehicle *)pVehiclePool->FUNC_10001120(wVehicleId);
|
||||
if(pVehicle->FUNC_1009F0C0() < 8.0f)
|
||||
{
|
||||
if(m_pPlayerPed->FUNC_100ABC50() == 46)
|
||||
m_pPlayerPed->SetArmedWeapon(0, 0);
|
||||
|
||||
m_pPlayerPed->FUNC_100AC410(pVehicle->m_dwGTAId, 1);
|
||||
FUNC_10005AD0(wVehicleId, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,6 +123,7 @@ public:
|
||||
void RequestClass(int iClass); // .text:100058D0
|
||||
void SendStatsUpdate(); // .text:10005D00
|
||||
void FUNC_10005AD0(WORD a1, int a2); // .text:10005AD0
|
||||
void FUNC_10006FE0(); // .text:10006FE0
|
||||
void FUNC_10005BF0(WORD a1); // .text:10005BF0
|
||||
void FUNC_10003570(); // .text:10003570
|
||||
|
||||
|
||||
Reference in new issue
Block a user