Skip to content

Commit 2853c20

Browse files
committed
fix not c6m1 static witch after add map_transition pair
1 parent d65ec73 commit 2853c20

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

-3.63 KB
Binary file not shown.

addons/sourcemod/scripting/l4d2_map_transitions.sp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
#pragma newdecls required
33

44
#include <sourcemod>
5-
//#include <l4d2_direct>
6-
//#include <left4downtown>
75
#include <left4dhooks>
86
#define L4D2UTIL_STOCKS_ONLY 1
97
#include <l4d2util>
10-
#include <colors>
118

129
#define DEBUG 0
1310

@@ -82,8 +79,8 @@ Action OnRoundEnd_Post(Handle hTimer)
8279
LogMessage("Map transitioned from: %s to: %s", sCurrentMapName, sNextMapName);
8380
#endif
8481

85-
CPrintToChatAll("{olive}[MT]{default} Starting transition from: {blue}%s{default} to: {blue}%s", sCurrentMapName, sNextMapName);
86-
ForceChangeLevel(sNextMapName, "Map Transitions");
82+
PrintToServer("[MT] Starting transition from: %s to: %s", sCurrentMapName, sNextMapName); // none of player can see PrintToChat text when changing map
83+
L4D_RestartScenarioFromVote(sNextMapName); // Use this instead and c6m1 will spawn witch correctly
8784
}
8885

8986
return Plugin_Stop;

0 commit comments

Comments
 (0)