mirror of
https://github.com/halpz/re3.git
synced 2024-12-26 18:15:27 +00:00
commit
c63de7ec43
|
@ -2,5 +2,5 @@
|
||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
#include "Remote.h"
|
#include "Remote.h"
|
||||||
|
|
||||||
WRAPPER void CRemote::GivePlayerRemoteControlledCar(float, float, float, float) { EAXJMP(0x435C30); }
|
WRAPPER void CRemote::GivePlayerRemoteControlledCar(float, float, float, float, uint16) { EAXJMP(0x435C30); }
|
||||||
WRAPPER void CRemote::TakeRemoteControlledCarFromPlayer(void) { EAXJMP(0x435DA0); }
|
WRAPPER void CRemote::TakeRemoteControlledCarFromPlayer(void) { EAXJMP(0x435DA0); }
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
class CRemote
|
class CRemote
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void GivePlayerRemoteControlledCar(float, float, float, float);
|
static void GivePlayerRemoteControlledCar(float, float, float, float, uint16);
|
||||||
static void TakeRemoteControlledCarFromPlayer(void);
|
static void TakeRemoteControlledCarFromPlayer(void);
|
||||||
};
|
};
|
||||||
|
|
|
@ -2550,7 +2550,7 @@ int8 CRunningScript::ProcessCommandsFrom200To299(int32 command)
|
||||||
CVector pos = *(CVector*)&ScriptParams[1];
|
CVector pos = *(CVector*)&ScriptParams[1];
|
||||||
if (pos.z <= -100.0f)
|
if (pos.z <= -100.0f)
|
||||||
pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y);
|
pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y);
|
||||||
CRemote::GivePlayerRemoteControlledCar(pos.x, pos.y, pos.z, DEGTORAD(*(float*)&ScriptParams[4]));
|
CRemote::GivePlayerRemoteControlledCar(pos.x, pos.y, pos.z, DEGTORAD(*(float*)&ScriptParams[4]), MI_RCBANDIT);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_ALTER_WANTED_LEVEL:
|
case COMMAND_ALTER_WANTED_LEVEL:
|
||||||
|
|
Loading…
Reference in a new issue