mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 13:14:08 +00:00
script 500-599 plus bugfix
This commit is contained in:
parent
9d4140734f
commit
d579ee1b64
14 changed files with 907 additions and 22 deletions
|
@ -996,6 +996,19 @@ CWorld::RemoveFallenCars(void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
CWorld::StopAllLawEnforcersInTheirTracks(void)
|
||||
{
|
||||
int poolSize = CPools::GetVehiclePool()->GetSize();
|
||||
for (int poolIndex = poolSize - 1; poolIndex >= 0; poolIndex--) {
|
||||
CVehicle* veh = CPools::GetVehiclePool()->GetSlot(poolIndex);
|
||||
if (veh) {
|
||||
if (veh->bIsLawEnforcer)
|
||||
veh->SetMoveSpeed(0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CWorld::Process(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue