mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 09:39:16 +01:00
added some missing functions
This commit is contained in:
parent
f6fb473cf9
commit
b5c4866964
@ -106,7 +106,7 @@ const int32 gaCarsToCollectInCraigsGarages[TOTAL_COLLECTCARS_GARAGES][TOTAL_COLL
|
|||||||
{ MI_VOODOO, MI_CUBAN, MI_CADDY, MI_BAGGAGE, MI_MRWHOOP, MI_PIZZABOY }
|
{ MI_VOODOO, MI_CUBAN, MI_CADDY, MI_BAGGAGE, MI_MRWHOOP, MI_PIZZABOY }
|
||||||
};
|
};
|
||||||
|
|
||||||
const int32 gaCarsToCollectIn60Seconds[] = { MI_CHEETAH, MI_TAXI, MI_ESPERANT, MI_SENTINEL, MI_IDAHO }; // what is this?
|
const int32 gaCarsToCollectIn60Seconds[] = { MI_CHEETAH, MI_TAXI, MI_ESPERANT, MI_SENTINEL, MI_IDAHO };
|
||||||
|
|
||||||
int32 CGarages::BankVansCollected;
|
int32 CGarages::BankVansCollected;
|
||||||
bool CGarages::BombsAreFree;
|
bool CGarages::BombsAreFree;
|
||||||
@ -2357,3 +2357,41 @@ CGarages::IsModelIndexADoor(uint32 id)
|
|||||||
id == MI_GARAGEDOOR25 ||
|
id == MI_GARAGEDOOR25 ||
|
||||||
id == MI_GARAGEDOOR26;
|
id == MI_GARAGEDOOR26;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGarages::StopCarFromBlowingUp(CAutomobile* pCar)
|
||||||
|
{
|
||||||
|
pCar->m_fFireBlowUpTimer = 0.0f;
|
||||||
|
pCar->m_fHealth = Max(pCar->m_fHealth, 300.0f);
|
||||||
|
pCar->Damage.SetEngineStatus(Max(pCar->Damage.GetEngineStatus(), 275));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CGarage::Does60SecondsNeedThisCarAtAll(int mi)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < ARRAY_SIZE(gaCarsToCollectIn60Seconds); i++) {
|
||||||
|
if (gaCarsToCollectIn60Seconds[i] == mi)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CGarage::Does60SecondsNeedThisCar(int mi)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < ARRAY_SIZE(gaCarsToCollectIn60Seconds); i++) {
|
||||||
|
if (gaCarsToCollectIn60Seconds[i] == mi)
|
||||||
|
return m_bCollectedCarsState & BIT(i);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CGarage::MarkThisCarAsCollectedFor60Seconds(int mi)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < ARRAY_SIZE(gaCarsToCollectIn60Seconds); i++) {
|
||||||
|
if (gaCarsToCollectIn60Seconds[i] == mi)
|
||||||
|
m_bCollectedCarsState |= BIT(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CGarage::IsPlayerEntirelyInsideGarage()
|
||||||
|
{
|
||||||
|
return IsEntityEntirelyInside3D(FindPlayerVehicle() ? (CEntity*)FindPlayerVehicle() : (CEntity*)FindPlayerPed(), 0.0f);
|
||||||
|
}
|
||||||
|
@ -182,6 +182,10 @@ public:
|
|||||||
void FindDoorsEntities();
|
void FindDoorsEntities();
|
||||||
void FindDoorsEntitiesSectorList(CPtrList&, bool);
|
void FindDoorsEntitiesSectorList(CPtrList&, bool);
|
||||||
void PlayerArrestedOrDied();
|
void PlayerArrestedOrDied();
|
||||||
|
bool Does60SecondsNeedThisCarAtAll(int mi);
|
||||||
|
bool Does60SecondsNeedThisCar(int mi);
|
||||||
|
void MarkThisCarAsCollectedFor60Seconds(int mi);
|
||||||
|
bool IsPlayerEntirelyInsideGarage();
|
||||||
|
|
||||||
bool IsPointInsideGarage(CVector);
|
bool IsPointInsideGarage(CVector);
|
||||||
bool IsPointInsideGarage(CVector, float);
|
bool IsPointInsideGarage(CVector, float);
|
||||||
@ -254,6 +258,7 @@ public:
|
|||||||
static bool IsModelIndexADoor(uint32 id);
|
static bool IsModelIndexADoor(uint32 id);
|
||||||
static void SetFreeBombs(bool bValue) { BombsAreFree = bValue; }
|
static void SetFreeBombs(bool bValue) { BombsAreFree = bValue; }
|
||||||
static void SetFreeResprays(bool bValue) { RespraysAreFree = bValue; }
|
static void SetFreeResprays(bool bValue) { RespraysAreFree = bValue; }
|
||||||
|
static void StopCarFromBlowingUp(CAutomobile*);
|
||||||
static void SetMaxNumStoredCarsForGarage(int16 garage, uint8 num) { aGarages[garage].m_nMaxStoredCars = num; }
|
static void SetMaxNumStoredCarsForGarage(int16 garage, uint8 num) { aGarages[garage].m_nMaxStoredCars = num; }
|
||||||
|
|
||||||
static bool IsCarSprayable(CVehicle*);
|
static bool IsCarSprayable(CVehicle*);
|
||||||
|
Loading…
Reference in New Issue
Block a user