Skip to content

Commit b5cfdcf

Browse files
committed
Restore replicated flag on timescale/cheats if missing
1 parent 233fe00 commit b5cfdcf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
29 Bytes
Binary file not shown.

addons/sourcemod/scripting/tf2ware_ultimate.sp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define PLUGIN_NAME "TF2Ware Ultimate"
1313
// if changing this, change it in VScript's config.nut too
14-
#define PLUGIN_VERSION "1.3.0"
14+
#define PLUGIN_VERSION "1.3.1"
1515

1616
// unused event repurposed for vscript <-> sourcemod communication
1717
#define PROXY_EVENT "tf_map_time_remaining"
@@ -201,7 +201,10 @@ void Enable()
201201
sv_cheats = FindConVar("sv_cheats");
202202
sm_flood_time = FindConVar("sm_flood_time");
203203

204+
// incase a faulty plugin removes replicated flag, make sure to restore it
205+
host_timescale.Flags = host_timescale.Flags | FCVAR_REPLICATED;
204206
host_timescale.SetFloat(1.0, true, false);
207+
sv_cheats.Flags = sv_cheats.Flags | FCVAR_REPLICATED;
205208
sv_cheats.SetInt(1, true, false);
206209

207210
// bump this because loading minigames from disk frequently takes a few ms and clogs the log

0 commit comments

Comments
 (0)