mp_disable_respawn_times 1
mp_respawnwavetime 5
Above will give you 5 second respawn time if placed in server.cfg - however will place you in the "Custom" tab, edit the maps as described below to avoid being placed on the custom tab. Or use mods/patches to work around custom tab.
* updated 20 February 08 - The only map affected is cp_badlands*
Since I've received a few emails asking how exactly it's done without using any additional plugins or mods on your server, I'll explain it here.
This guide applies to windows only, however the pre-editted maps supplied at the bottom of this post will work on a linux server. This guide also assumes you are using source dedicated server, and have a maps folder containing the necessary maps. If you are running your server from home, or not using the dedicated server software, you will need cgfscape to extract the maps. This goes beyond the scope of this tutorial, and is not covered.
First download a copy of EntEd. Once downloaded fire it up, and open up the map you want to edit.
Edit -> Find -> logic_auto
You'll see a section of code looking something like
{
//
//
classname "logic_auto"
//
//
}
Before the close curly bracket, insert the following code:
- Code: Select all
"OnMultiNewRound" "tf_gamerules,setblueteamrespawnwavetime,2,0,-1"
"OnMultiNewRound" "tf_gamerules,setredteamrespawnwavetime,2,0,-1"
"OnMultiNewMap" "tf_gamerules,setblueteamrespawnwavetime,2,0,-1"
"OnMultiNewMap" "tf_gamerules,setredteamrespawnwavetime,2,0,-1"
"OnMapSpawn" "tf_gamerules,setblueteamrespawnwavetime,2,0,-1"
"OnMapSpawn" "tf_gamerules,setredteamrespawnwavetime,2,0,-1"
The above code will set the respawn time to 4 seconds. The respawn time is controlled by the third last paramater, in this case the "2" as it is doubled to give the time in seconds. So for instant respawn the last 3 numbers would be 0,0,-1. Similarly, if you wanted 10 second respawn the last 3 paramaters would be 5,0,-1.
Finally for maps such as dustbowl which have multiple rounds, you need to additionally search for team_round_timer. Once again in the class, before the closing curly bracket the following code needs to be inserted:
- Code: Select all
"On4MinRemain" "tf_gamerules,addblueteamrespawnwavetime,2,0,-1"
"On3MinRemain" "tf_gamerules,addblueteamrespawnwavetime,2,0,-1"
"On2MinRemain" "tf_gamerules,addblueteamrespawnwavetime,2,0,-1"
"On4MinRemain" "tf_gamerules,addredteamrespawnwavetime,2,0,-1"
"On3MinRemain" "tf_gamerules,addredteamrespawnwavetime,2,0,-1"
"On2MinRemain" "tf_gamerules,addredteamrespawnwavetime,2,0,-1"
"OnRoundStart" "tf_gamerules,setredteamrespawnwavetime,2,0,-1"
"OnRoundStart" "tf_gamerules,setblueteamrespawnwavetime,2,0,-1"
The same rules apply for the last 3 values of each line, as discussed for logic_auto. So for instant respawn they should be 0,0,-1.
If you have found this usefull, please consider joining our forum/community at least to say so. Even better, consider donating
GTFO. G














