Skip to content

Commit 9319f24

Browse files
committed
ScrVehRan: Fix helicopter-trailer chaos on finale_heist_prepd
1 parent eb2db0c commit 9319f24

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build-count.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
530
1+
538

src/vehicles/vehicles.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,15 @@ class ScriptVehicleRandomizer
307307
info->GetArg<float> (4) = 75.0f;
308308
}
309309

310+
static void
311+
FixFinaleHeistPrepdHelicopter (scrThread::Info *info)
312+
{
313+
if (scrThread::CheckActiveThread ("finale_heist_prepd"_joaat))
314+
{
315+
info->GetArg<float> (5) = -5.0f;
316+
}
317+
}
318+
310319
/*******************************************************/
311320
static bool
312321
FixMichael2MissionDisruption (YscUtilsOps &ops)
@@ -373,6 +382,7 @@ class ScriptVehicleRandomizer
373382
RB_C_DO_CONFIG ("ScriptVehicleRandomizer", LogSpawnedVehicles,
374383
ForcedVehicle);
375384

385+
HOOK ("ATTACH_ENTITY_TO_ENTITY", FixFinaleHeistPrepdHelicopter);
376386
HOOK ("APPLY_FORCE_TO_ENTITY", FixFinaleC2Physics);
377387
HOOK_A ("IS_VEHICLE_MODEL", RemoveTriathlonFailState);
378388
HOOK_A ("IS_PED_IN_MODEL", RemoveTriathlonFailState);

0 commit comments

Comments
 (0)