]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a new hook for client shutdown (disconnects etc)
authorMario <mario@smbclan.net>
Mon, 20 Feb 2017 02:39:08 +0000 (12:39 +1000)
committerMario <mario@smbclan.net>
Mon, 20 Feb 2017 02:39:08 +0000 (12:39 +1000)
gamemodes.cfg
qcsrc/client/main.qc

index 13a04fb422df3a828e611cf6ac5366670021b85b..80d99022669f30b3819d93f0ba2da519c9bb30cc 100644 (file)
@@ -39,6 +39,7 @@ alias cl_hook_gamestart_ka
 alias cl_hook_gamestart_ft
 alias cl_hook_gamestart_inv
 alias cl_hook_gameend "rpn /cl_matchcount dup load 1 + =" // increase match count every time a game ends
+alias cl_hook_shutdown
 alias cl_hook_activeweapon
 
 alias _sv_hook_gamestart "set _sv_hook_gametype $1; _sv_hook_gamestart_stage2"
index a24d07d3ad08485dd0a1b878d0ea4f453e714c20..a231cd4dc42bf8420601f99eff8a18bc9b8b0bbe 100644 (file)
@@ -209,6 +209,8 @@ void Shutdown()
                        localcmd("\ncl_hook_gameend\n");
        }
 
+       localcmd("\ncl_hook_shutdown\n");
+
        deactivate_minigame();
        HUD_MinigameMenu_Close(NULL, NULL, NULL);
 }