Skip to content

Commit 3bc5209

Browse files
committed
fix: coop start timing
Previously, `teleport_start.Enable` would somehow be fired *before* the map resets if you reset on calibration, making the timer completely wrong. Now it happens at the right time (when the video "ends")
1 parent 3125e6a commit 3bc5209

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resource/basemodui_english.txt

3 KB
Binary file not shown.

scripts/vscripts/speedrunmod_coop.nut

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ if ( pszMapName == "mp_coop_start" )
205205
EntFireByHandle( Entities.FindByName( null, "@global_no_taunting_blue" ), "TurnOff", "", 0, null, null );
206206
EntFireByHandle( Entities.FindByName( null, "@global_no_taunting_orange" ), "TurnOff", "", 0, null, null );
207207

208-
// Enable both triggers that bring players to the top.
209-
EntFire( "teleport_start", "Enable" );
210-
211208
// Skip the video from playing on map loads.
212209
local pRelayStartConnected = Entities.FindByName( null, "@relay_start_both_connected" )
213210
if ( pRelayStartConnected )
214211
{
215-
EntFireByHandle( pRelayStartConnected, "Disable", "", 0, null, null );
212+
// Enable both triggers that bring players to the top.
213+
// This also starts SAR timer.
214+
EntFireByHandle( pRelayStartConnected, "AddOutput", "OnTrigger teleport_start:Enable", 0, null, null );
216215
}
216+
EntFire( "playmovie_connect_intro", "Kill" );
217217

218218
// Skip the starting dialogue.
219219
EntFireByHandle( Entities.FindByName( null, "relay_start_glados_coop" ), "Disable", "", 0, null, null );

0 commit comments

Comments
 (0)