mirror of
https://github.com/halpz/re3.git
synced 2025-06-29 13:26:19 +00:00
Merge remote-tracking branch 'upstream/miami' into miami
This commit is contained in:
@ -110,6 +110,9 @@ public:
|
||||
static CVehicle *pPlayerVehicle;
|
||||
static CVector StaticCamCoors;
|
||||
static uint32 StaticCamStartTime;
|
||||
|
||||
//TODO(MIAMI)
|
||||
static void RemoveAllPickupsOfACertainWeaponGroupWithNoAmmo(eWeaponType) {}
|
||||
};
|
||||
|
||||
extern uint16 AmmoForWeapon[20];
|
||||
|
@ -3772,7 +3772,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
|
||||
CPed* pNearPed = ped->m_nearPeds[i];
|
||||
if (pNearPed->m_leader == ped) {
|
||||
pNearPed->Teleport(pos);
|
||||
pNearPed->PositionPedOutOfCollision(); // TODO(MIAMI): this is PositionAnyPedOutOfCollision!!!
|
||||
pNearPed->PositionAnyPedOutOfCollision();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,8 @@
|
||||
// TODO: figure out the meaning of this
|
||||
enum { SOME_FLAG = 0x80 };
|
||||
|
||||
bool CTrafficLights::bGreenLightsCheat;
|
||||
|
||||
void
|
||||
CTrafficLights::DisplayActualLight(CEntity *ent)
|
||||
{
|
||||
@ -310,6 +312,12 @@ CTrafficLights::LightForPeds(void)
|
||||
uint8
|
||||
CTrafficLights::LightForCars1(void)
|
||||
{
|
||||
if (CWeather::Wind > 1.1f)
|
||||
return CAR_LIGHTS_GREEN;
|
||||
|
||||
if (bGreenLightsCheat)
|
||||
return CAR_LIGHTS_GREEN;
|
||||
|
||||
uint32 period = CTimer::GetTimeInMilliseconds() % 16384;
|
||||
|
||||
if(period < 5000)
|
||||
@ -323,6 +331,12 @@ CTrafficLights::LightForCars1(void)
|
||||
uint8
|
||||
CTrafficLights::LightForCars2(void)
|
||||
{
|
||||
if (CWeather::Wind > 1.1f)
|
||||
return CAR_LIGHTS_GREEN;
|
||||
|
||||
if (bGreenLightsCheat)
|
||||
return CAR_LIGHTS_GREEN;
|
||||
|
||||
uint32 period = CTimer::GetTimeInMilliseconds() % 16384;
|
||||
|
||||
if(period < 6000)
|
||||
|
@ -16,6 +16,8 @@ enum {
|
||||
class CTrafficLights
|
||||
{
|
||||
public:
|
||||
static bool bGreenLightsCheat;
|
||||
|
||||
static void DisplayActualLight(CEntity *ent);
|
||||
static void ScanForLightsOnMap(void);
|
||||
static int FindTrafficLightType(CEntity *light);
|
||||
|
Reference in New Issue
Block a user