mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 18:10:00 +00:00
Remote done
This commit is contained in:
parent
041d342faf
commit
14ed50a559
|
@ -9,6 +9,8 @@
|
||||||
#include "PlayerInfo.h"
|
#include "PlayerInfo.h"
|
||||||
#include "Vehicle.h"
|
#include "Vehicle.h"
|
||||||
|
|
||||||
|
//--MIAMI: file done
|
||||||
|
|
||||||
void
|
void
|
||||||
CRemote::GivePlayerRemoteControlledCar(float x, float y, float z, float rot, uint16 model)
|
CRemote::GivePlayerRemoteControlledCar(float x, float y, float z, float rot, uint16 model)
|
||||||
{
|
{
|
||||||
|
@ -35,17 +37,24 @@ CRemote::GivePlayerRemoteControlledCar(float x, float y, float z, float rot, uin
|
||||||
|
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle = car;
|
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle = car;
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->RegisterReference((CEntity**)&CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle);
|
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->RegisterReference((CEntity**)&CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle);
|
||||||
TheCamera.TakeControl(car, CCam::MODE_BEHINDCAR, INTERPOLATION, CAMCONTROL_SCRIPT);
|
if (car->GetVehicleAppearance() == VEHICLE_APPEARANCE_PLANE || car->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI) {
|
||||||
|
TheCamera.TakeControl(car, CCam::MODE_CAM_ON_A_STRING, INTERPOLATION, CAMCONTROL_SCRIPT);
|
||||||
|
TheCamera.SetZoomValueCamStringScript(0);
|
||||||
|
} else
|
||||||
|
TheCamera.TakeControl(car, CCam::MODE_BEHINDCAR, INTERPOLATION, CAMCONTROL_SCRIPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
CRemote::TakeRemoteControlledCarFromPlayer(void)
|
CRemote::TakeRemoteControlledCarFromPlayer(bool unk)
|
||||||
{
|
{
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->VehicleCreatedBy = RANDOM_VEHICLE;
|
if (CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->VehicleCreatedBy == MISSION_VEHICLE) {
|
||||||
CCarCtrl::NumMissionCars--;
|
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->VehicleCreatedBy = RANDOM_VEHICLE;
|
||||||
CCarCtrl::NumRandomCars++;
|
CCarCtrl::NumMissionCars--;
|
||||||
|
CCarCtrl::NumRandomCars++;
|
||||||
|
}
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->bIsLocked = false;
|
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->bIsLocked = false;
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_nTimeLostRemoteCar = CTimer::GetTimeInMilliseconds();
|
CWorld::Players[CWorld::PlayerInFocus].m_nTimeLostRemoteCar = CTimer::GetTimeInMilliseconds();
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_bInRemoteMode = true;
|
CWorld::Players[CWorld::PlayerInFocus].m_bInRemoteMode = true;
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->bRemoveFromWorld = true;
|
CWorld::Players[CWorld::PlayerInFocus].field_D5 = unk;
|
||||||
|
CWorld::Players[CWorld::PlayerInFocus].field_D6 = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@ class CRemote
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void GivePlayerRemoteControlledCar(float, float, float, float, uint16);
|
static void GivePlayerRemoteControlledCar(float, float, float, float, uint16);
|
||||||
static void TakeRemoteControlledCarFromPlayer(void);
|
static void TakeRemoteControlledCarFromPlayer(bool);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue