Implemented optional support for the ConfigList plugin. It will execute the "zr_post_exec" list right before post map configs if it exists. Example usage in randommode.cfg and swarm.cfg.
This commit is contained in:
5
cstrike/cfg/sourcemod/zombiereloaded/classic.cfg
Normal file
5
cstrike/cfg/sourcemod/zombiereloaded/classic.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
// Dummy config that's not doing anything so classic settings will be kept. It's
|
||||
// still possible to add stuff here for configuring classic mode if something
|
||||
// differ from the default configuration.
|
||||
|
||||
// Used by randommode.cfg.
|
@ -1,4 +1,4 @@
|
||||
// Place this in cfg/sourcemod/zombiereloaded to use it.
|
||||
|
||||
// Use survivor mode in cs_italy.
|
||||
exec sourcemod/zombiereloaded/survivor.cfg
|
||||
// Enable a random mode in cs_italy.
|
||||
exec sourcemod/zombiereloaded/randommode.cfg
|
||||
|
7
cstrike/cfg/sourcemod/zombiereloaded/randommode.cfg
Normal file
7
cstrike/cfg/sourcemod/zombiereloaded/randommode.cfg
Normal file
@ -0,0 +1,7 @@
|
||||
cfglist_create zr_modes
|
||||
cfglist_add zr_modes sourcemod/zombiereloaded/classic.cfg
|
||||
cfglist_add zr_modes sourcemod/zombiereloaded/nemesis.cfg
|
||||
cfglist_add zr_modes sourcemod/zombiereloaded/survivor.cfg
|
||||
cfglist_add zr_modes sourcemod/zombiereloaded/swarm.cfg
|
||||
cfglist_exec_random zr_modes
|
||||
cfglist_delete zr_modes
|
@ -23,3 +23,9 @@ zr_infect_mzombie_respawn 1
|
||||
// Disable respawning.
|
||||
zr_respawn 0
|
||||
zr_zspawn 0
|
||||
|
||||
// Use the ConfigList plugin to post execute swarm.post.cfg. ZR will detect this
|
||||
// plugin and execute the "zr_post_exec" list if it exists.
|
||||
cfglist_delete zr_post_exec
|
||||
cfglist_create zr_post_exec
|
||||
cfglist_add zr_post_exec sourcemod/zombiereloaded/swarm.post.cfg
|
||||
|
Reference in New Issue
Block a user