L4D2Tools: Fix missing hMPGamemode initalization

This commit is contained in:
Jackzie 2021-01-03 12:23:10 -06:00
parent e18e59689b
commit 5c2bf73186
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View file

@ -31,6 +31,7 @@ public void OnPluginStart() {
hLaserNotice = CreateConVar("sm_laser_use_notice", "1.0", "Enable notification of a laser box being used", FCVAR_NONE, true, 0.0, true, 1.0);
hFinaleTimer = CreateConVar("sm_time_finale", "0.0", "Record the time it takes to complete finale. 0 -> OFF, 1 -> Gauntlets Only, 2 -> All finales", FCVAR_NONE, true, 0.0, true, 2.0);
hFFNotice = CreateConVar("sm_ff_notice", "0.0", "Notify players if a FF occurs. 0 -> Disabled, 1 -> In chat, 2 -> In Hint text", FCVAR_NONE, true, 0.0, true, 2.0);
hMPGamemode = FindConVar("mp_gamemode");
HookEvent("player_use", Event_PlayerUse);
HookEvent("player_hurt", Event_PlayerHurt);