Evie Addon Details

Watch - Add Favorite

DM EndRound - Version 2.1

posted on 2006-09-26 17:45:07
by GODJonez
4
w00ts
w00t!
Requires: Tags: css deathmatch dods hl2dm round sdk server-tools TF2 timer

Description

Forces "Round Draw" after specified time. This addon is mainly intended for DeathMatch servers or other servers where the rounds last infinitely long due to scripts or mods used, but the server admin would like to make the rounds last for a limited time only, starting new ones.

This addon defaults to using the mp_roundtime server variable to determine when to end the round. However, this can be overridden with dm_roundtime; mp_roundtime controls the in-game round time clock and is therefore limited to a value between 1.0 and 9.0 (in minutes). In contrary dm_roundtime accepts any value between 0.0 to over the maximum uptime of your server.

One more advantage in dm_roundtime compared to mp_roundtime is that you can set it not only as floating point number being minutes, but also in a fashion of minutes:seconds, for example "dm_roundtime 6:42" would make rounds last at most exactly 6 minutes and 42 seconds.

All server variables this script addon creates:
  • dm_endround_v - the version of this script, this variable is also listed in server query
  • dm_endround - value can be either 0 or 1, defaults to 1. When set to 0, this addon does not force round ending but still updates dm_realround variable. When set to 1, behavior is as expected.
  • dm_endround_effect - value can be either 0 or 1, defaults to 1. When set to 1, the script will play the "Round draw" radio sound and freeze players on ending the round (CS:S only), it will take 2 seconds for the new round to start. When set to 0, the round is ended and new one starts immediately with no sound.
  • dm_realround - A read-only variable telling whether there is a round active or not. This is set to 1 when freeze time ends and set to 0 when the round ends. Works in CS:S, DOD:S and TF2.
  • dm_roundtime - Not really a server variable but acts like one, described in detail above.
  • dm_disabled_maps - List of partial map names (separated with commas) where forced round endings must not happen. For example to disable this addon on all bombing and hostage rescue maps in Counter-Strike: Source, one would like to set this variable to "cs_,de_".


Since version 2.0 this addon requires EventScripts 2.0 or newer and supports Counter-Strike: Source, Day of Defeat: Source, Team Fortress 2 and all Source games that use round_start, round_end or the corresponding events of the games mentioned specifically earlier.

Note: after loading this script it does not become effective until the next round, so if you load it in the middle of a round, that round will not be forced to end by this script, but the next one will.

Installation

Write es_install dmendround to server console or using RCON. If you like, you can also use the optional autoload parameter with es_install to make this script load automatically every time the server is started.

Alternative way is to download this script from the download link above and extract to your game folder. Then load it using es_load dmendround in server console or through RCON, or add the line in autoexec.cfg to make it load automatically on server start.

Version Notes For 2.1 (Announce this update)

Updated on: 2008-08-25 11:07:49 EST by GODJonez
  • Added new server variable dm_disabled_maps that can be used to disable the forced round ending on maps that match any of the partial names in the value of that variable.
  • [*]Fixed a problem where DM EndRound would continue to use the old value of mp_roundtime even if the value of that variable was changed.

( Previous Versions )