]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add comments to cl_hooks as the default values
authordrjaska <drjaska83@gmail.com>
Thu, 25 Jan 2024 14:49:15 +0000 (16:49 +0200)
committerdrjaska <drjaska83@gmail.com>
Thu, 25 Jan 2024 15:01:58 +0000 (17:01 +0200)
gamemodes-client.cfg

index c9cbc17671ac633d79f1d0b7782d5d3084b7df9f..5eada91f1b388c5534fb75e2beb2b24ff9068b5e 100644 (file)
@@ -14,32 +14,36 @@ alias asay_drop "say_team (%l) dropped %w ; impulse 17"
 seta cl_matchcount 0 // incremented by cl_hook_gameend and used by playerstats to know when to
 alias _cl_hook_gamestart "set _cl_hook_gametype $1; _cl_hook_gamestart_stage2"
 alias _cl_hook_gamestart_stage2 "cl_hook_gamestart_all; cl_hook_gamestart_${_cl_hook_gametype}"
-alias cl_hook_gamestart_all
-alias cl_hook_gamestart_nop  //is only called when CSQC unloads before knowing the gametype, very unlikely
-alias cl_hook_gamestart_dm
-alias cl_hook_gamestart_tdm
-alias cl_hook_gamestart_dom
-alias cl_hook_gamestart_ctf
-alias cl_hook_gamestart_lms
-alias cl_hook_gamestart_ca
-alias cl_hook_gamestart_kh
-alias cl_hook_gamestart_ons
-alias cl_hook_gamestart_as
-alias cl_hook_gamestart_rc
-alias cl_hook_gamestart_nb
-alias cl_hook_gamestart_cts
-alias cl_hook_gamestart_ka
-alias cl_hook_gamestart_ft
-alias cl_hook_gamestart_inv
-alias cl_hook_gamestart_duel
-alias cl_hook_gamestart_mayhem
-alias cl_hook_gamestart_tmayhem
-alias cl_hook_gamestart_tka
-alias cl_hook_gamestart_surv
-alias cl_hook_gameintermission
-alias cl_hook_gameend
-alias cl_hook_shutdown
-alias cl_hook_activeweapon
-alias cl_hook_demostart
-alias cl_hook_demointermission
-alias cl_hook_demoend
+alias cl_hook_gamestart_all "" "// this alias is called after loading into a match"
+alias cl_hook_gamestart_nop "" "// this alias is only called when CSQC unloads before knowing the gametype, very unlikely"
+alias cl_hook_gamestart_dm "" "// this alias is called after loading into deathmatch"
+alias cl_hook_gamestart_tdm "" "// this alias is called after loading into team deathmatch"
+alias cl_hook_gamestart_dom "" "// this alias is called after loading into domination"
+alias cl_hook_gamestart_ctf "" "// this alias is called after loading into capture the flag"
+alias cl_hook_gamestart_lms "" "// this alias is called after loading into last man standing"
+alias cl_hook_gamestart_ca "" "// this alias is called after loading into clan arena"
+alias cl_hook_gamestart_kh "" "// this alias is called after loading into keyhunt"
+alias cl_hook_gamestart_ons "" "// this alias is called after loading into onslaught"
+alias cl_hook_gamestart_as "" "// this alias is called after loading into assault"
+alias cl_hook_gamestart_rc "" "// this alias is called after loading into race"
+alias cl_hook_gamestart_nb "" "// this alias is called after loading into nexball"
+alias cl_hook_gamestart_cts "" "// this alias is called after loading into complete the stage"
+alias cl_hook_gamestart_ka "" "// this alias is called after loading into keepaway"
+alias cl_hook_gamestart_ft "" "// this alias is called after loading into freezetag"
+alias cl_hook_gamestart_inv "" "// this alias is called after loading into invasion"
+alias cl_hook_gamestart_duel "" "// this alias is called after loading into duel"
+alias cl_hook_gamestart_mayhem "" "// this alias is called after loading into mayhem"
+alias cl_hook_gamestart_tmayhem "" "// this alias is called after loading into team mayhem"
+alias cl_hook_gamestart_tka "" "// this alias is called after loading into team keepaway"
+alias cl_hook_gamestart_surv "" "// this alias is called after loading into survival"
+
+alias cl_hook_gameintermission "" "// this alias is called when intermission starts in a match"
+alias cl_hook_gameend "" "// this alias is called when intermission starts in a match or client quits from a match before intermission"
+
+alias cl_hook_shutdown "" "// this alias is called when the CSQC unloads"
+
+alias cl_hook_demostart "" "// this alias is called when a demo replay starts"
+alias cl_hook_demointermission "" "// this alias is called when intermission starts in a demo replay"
+alias cl_hook_demoend "" "// this alias is called when a demo replay ends"
+
+alias cl_hook_activeweapon "" "// this alias is called when switching weapons, with the new weapon's name as the first argument ( $1 )"