Threarah
10-21-2006, 08:00 AM
/*
Day of Defeat Match Plugin
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
Features:
- Automated POV and HLTV demo recording and naming with delay taken into consideration
- Customisable messages for individual servers/competitions
- Final score tallying
- Automated end of round screenshots
- Ability for teams to toggle their 'ready' status
- Support for multiple config sets (comes with an example config set, and a CAL rule based config set)
- Easily customisable timelimit - comes in handy for overtime situations
- The map being played is automatically reloaded at half time
- Multi language support (the language file contains only English at this time)
- Coin toss
- Global chat restriction (optional)
- Full match stats collection for later use with PsychoStats (optional)
- File consistency enforcement (optional)
Requirements:
- AMXModX - last tested on v1.76a
- DoDX and sockets modules
- stats_logging.amxx and DoDFun module if stats collection is being used
- Disable as many unused plugins as possible to avoid conflicts
Installation:
- Compile and put in your 'plugins' directory.
- Add 'dod_match.amxx' to your 'plugins.ini' file
Configuration sets:
- Config sets are stored in self-named sub-directories in the 'addons/amxmodx/configs/dod_match' directory.
- A config set consists of a 'plugin.cfg' (plugin configuration) file, a'match.cfg' (match configuration) file, an optional 'unlock.cfg' (run on dmp_unlock) file, optional map specific config files, and optional file consistency check ('fcc_*.cfg') files.
- Edit the 'defaultcfgset' file found in the 'addons/amxmodx/configs/dod_match' directory to set the name of the config set that should be used on server startup.
- Have a browse of the 'example' config set to see how things work.
Usage:
- Commands (ADMIN_LEVEL_A aka 'm' access is required):
* dmp_lock <password>
- Removes the timelimit, puts a password on the server and shows that password to everyone currently connected (save HLTV)
* dmp_start <teama> <teamb> <Demos: none | recpov | rechltv | recboth> <timelimit>
- Initialises a match on the current map with the desired settings.
* 'teama' and 'teamb' are the names of the teams involved. Don't use spaces in the team names. These are used to name POV and HLTV demos.
* 'timelimit' is the length of a half in minutes.
- The first half will begin when both teams are ready.
- The second half will begin when both teams are ready and HLTV is back in the server (if HLTV is being used to record)
* dmp_stop
- Abort the match. This can only be run once the match has begun. To change options prior to the match beginning use dmp_start.
* dmp_unlock
- Removes the password from the server and runs the config set's 'unlock.cfg'. If no unlock.cfg is found then the fallback 'unlock.cfg' in the main config directory will be run.
* dmp_toss
- Randomly returns HEADS or TAILS
* dmp_setcfgset <cfgset>
- Sets the config set. This command cannot be run during a match. The map will be reloaded when this command is run.
- CVARS:
* dmp_hltv_delay <delay in seconds>
- The delay set on the HLTV server in seconds. Default is 30.
* dmp_hltv_rcon <password>
- Remote console access password for the HLTV server.
All other dmp_* CVARS should not be touched unless you know what you're doing.
Notes:
- Leave mp_timelimit, mp_clan_readyrestart out of your match.cfg.
- HLTV servers using NAT may crash the server.
- CVAR enforcement will most likely return following the next AMXModX release as it is not possible with AMXModX 1.55.
History:
This plugin was originally used in the New Zealand Multiplayer Games League (http://www.mgleague.co.nz).
Feedback is most welcome :o)
Contact me if you can make translations so I can include them in the archive.
- Threarah (threarah@bage.net.nz)
Changelog:
v1.2.0 (15/9/2005)
* Added: multiple config set support
* Added: dictionary file (multilanguage) support
* Changed: plugin name - was previously 'League Match Plugin'
* Changed: lmp_* to dmp_*
v1.1.4 (25/8/2005)
* Removed: perform on connect due to HLDS update preventing WWCL/HLG style CVAR enforcement. Improved CVAR enforcement may be added at a later date.
v1.1.3
* Fixed: updated to work with the beta release of AMXModX 1.50
* Fixed: empty lines in lmp_perform.cfg are now ignored
v1.1.2
* Fixed: empty lines in dmp_files*.cfg server crash
* Added: map-specific file consistency checking (dmp_files_dod_mapname.cfg)
* Changed: league.cfg is now lmp_match.cfg
* Changed: public.cfg is now lmp_public.cfg
* Changed: leagueperform.cfg is now lmp_perform.cfg
* Changed: leaguefiles.cfg is now lmp_files_global.cfg
v1.1.1
* Changed: global chat restricion is now a compile-time option
v1.1.0
* Added: optional 'Perform on connect'
* Added: coin toss
* Changed: stats collection is now a compile-time option
v1.0.5
* Added: optional file consistnecy checking
v1.0.0
* Initial release
*/
Day of Defeat Match Plugin
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
Features:
- Automated POV and HLTV demo recording and naming with delay taken into consideration
- Customisable messages for individual servers/competitions
- Final score tallying
- Automated end of round screenshots
- Ability for teams to toggle their 'ready' status
- Support for multiple config sets (comes with an example config set, and a CAL rule based config set)
- Easily customisable timelimit - comes in handy for overtime situations
- The map being played is automatically reloaded at half time
- Multi language support (the language file contains only English at this time)
- Coin toss
- Global chat restriction (optional)
- Full match stats collection for later use with PsychoStats (optional)
- File consistency enforcement (optional)
Requirements:
- AMXModX - last tested on v1.76a
- DoDX and sockets modules
- stats_logging.amxx and DoDFun module if stats collection is being used
- Disable as many unused plugins as possible to avoid conflicts
Installation:
- Compile and put in your 'plugins' directory.
- Add 'dod_match.amxx' to your 'plugins.ini' file
Configuration sets:
- Config sets are stored in self-named sub-directories in the 'addons/amxmodx/configs/dod_match' directory.
- A config set consists of a 'plugin.cfg' (plugin configuration) file, a'match.cfg' (match configuration) file, an optional 'unlock.cfg' (run on dmp_unlock) file, optional map specific config files, and optional file consistency check ('fcc_*.cfg') files.
- Edit the 'defaultcfgset' file found in the 'addons/amxmodx/configs/dod_match' directory to set the name of the config set that should be used on server startup.
- Have a browse of the 'example' config set to see how things work.
Usage:
- Commands (ADMIN_LEVEL_A aka 'm' access is required):
* dmp_lock <password>
- Removes the timelimit, puts a password on the server and shows that password to everyone currently connected (save HLTV)
* dmp_start <teama> <teamb> <Demos: none | recpov | rechltv | recboth> <timelimit>
- Initialises a match on the current map with the desired settings.
* 'teama' and 'teamb' are the names of the teams involved. Don't use spaces in the team names. These are used to name POV and HLTV demos.
* 'timelimit' is the length of a half in minutes.
- The first half will begin when both teams are ready.
- The second half will begin when both teams are ready and HLTV is back in the server (if HLTV is being used to record)
* dmp_stop
- Abort the match. This can only be run once the match has begun. To change options prior to the match beginning use dmp_start.
* dmp_unlock
- Removes the password from the server and runs the config set's 'unlock.cfg'. If no unlock.cfg is found then the fallback 'unlock.cfg' in the main config directory will be run.
* dmp_toss
- Randomly returns HEADS or TAILS
* dmp_setcfgset <cfgset>
- Sets the config set. This command cannot be run during a match. The map will be reloaded when this command is run.
- CVARS:
* dmp_hltv_delay <delay in seconds>
- The delay set on the HLTV server in seconds. Default is 30.
* dmp_hltv_rcon <password>
- Remote console access password for the HLTV server.
All other dmp_* CVARS should not be touched unless you know what you're doing.
Notes:
- Leave mp_timelimit, mp_clan_readyrestart out of your match.cfg.
- HLTV servers using NAT may crash the server.
- CVAR enforcement will most likely return following the next AMXModX release as it is not possible with AMXModX 1.55.
History:
This plugin was originally used in the New Zealand Multiplayer Games League (http://www.mgleague.co.nz).
Feedback is most welcome :o)
Contact me if you can make translations so I can include them in the archive.
- Threarah (threarah@bage.net.nz)
Changelog:
v1.2.0 (15/9/2005)
* Added: multiple config set support
* Added: dictionary file (multilanguage) support
* Changed: plugin name - was previously 'League Match Plugin'
* Changed: lmp_* to dmp_*
v1.1.4 (25/8/2005)
* Removed: perform on connect due to HLDS update preventing WWCL/HLG style CVAR enforcement. Improved CVAR enforcement may be added at a later date.
v1.1.3
* Fixed: updated to work with the beta release of AMXModX 1.50
* Fixed: empty lines in lmp_perform.cfg are now ignored
v1.1.2
* Fixed: empty lines in dmp_files*.cfg server crash
* Added: map-specific file consistency checking (dmp_files_dod_mapname.cfg)
* Changed: league.cfg is now lmp_match.cfg
* Changed: public.cfg is now lmp_public.cfg
* Changed: leagueperform.cfg is now lmp_perform.cfg
* Changed: leaguefiles.cfg is now lmp_files_global.cfg
v1.1.1
* Changed: global chat restricion is now a compile-time option
v1.1.0
* Added: optional 'Perform on connect'
* Added: coin toss
* Changed: stats collection is now a compile-time option
v1.0.5
* Added: optional file consistnecy checking
v1.0.0
* Initial release
*/