[How To] Edit/Change Team Fortress 2 Respawn Times

Anything related to TF2

[How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 15 Jan 2008, 12:43

* updated MARCH 08 - Server cvars are available to control respawn time*
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
Last edited by GTFO. G on 03 Feb 2008, 01:46, edited 5 times in total.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Postby Echelon » 15 Jan 2008, 16:42

Good stuff, G.

Hopefully many will find this very helpful :)
Image
Echelon
Wicked Sick
Wicked Sick
 
Posts: 3588
Joined: 07 May 2006, 16:29
Location: Bryne, Norway

Postby GTFO. Tinks » 15 Jan 2008, 20:14

Nerd.
GTFO. Tinks LTD, Piss Takers and Wind-up Merchants. Est.1971


Image


Image


LAWL.
User avatar
GTFO. Tinks
Beyond 1337
Beyond 1337
 
Posts: 1360
Joined: 16 Feb 2007, 22:51

Postby GTFO. G » 26 Jan 2008, 12:08

Updated to include new map ctf_well
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Postby grpaul » 31 Jan 2008, 18:19

Very nice man !! Thanks a bunch for this :D:D:D
grpaul
Forum Noob
Forum Noob
 
Posts: 1
Joined: 31 Jan 2008, 18:18

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 15 Feb 2008, 12:15

Updated now includes cp_badlands
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 20 Feb 2008, 11:11

* updated 20 February 08 - The only map affected is cp_badlands*

If you have downloaded the maps previously you do not have to download them all, the only map affected by todays update is badlands.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 16:26

When i put this on my Server.

I get this message:

Your Version of Dustbowl is different from the one on the Server.

Yes, its probably something VERY simple!!!

PLEASE HELP ME AND I WILL GIVE YOU COOKIES!!

Thank you :)

- David
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 25 Mar 2008, 16:49

Hi, I unstickied this thread, and stopped updating it, as a few updates ago valve made a change controlling respawn times with server cvars.

mp_disable_respawn_times 1
mp_respawnwavetime 5

The above will disable default respawn times, and give 5 second respawn.

However editting the maps as I give instructions in the first post will keep your server on the "internet" tab, using these "custom" server cvars puts you on the custom tab.

I wont be updating the pre-editted maps with the updates valve has made...

Hope that helps.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 16:58

I would actually really like the server not to go into the Costom Maps area as it could make it unpopular and less easy to find.

Is there a way to stop my error mesage for myself and others trying to enter the sErver?

Thanks :)

- David
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 25 Mar 2008, 17:01

Edit the maps as I describe...

Dont download the "pre-editted" ones, as I havent updated them for over a month and are whats causing the error message you're getting.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 17:04

But the Server is Linux.

You said editing in that way would only work for Windows but the pre-edited would work for Linux also.

Sorry for all the trouble lol :P

- David
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 25 Mar 2008, 17:51

davida50 wrote:But the Server is Linux.

You said editing in that way would only work for Windows but the pre-edited would work for Linux also.

Sorry for all the trouble lol :P

- David


Yes you can only edit the maps on windows. So you could download the maps on your linux server onto a windows computer and edit them. Then upload them back onto your server.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 18:03

You probably going to start thinking OMFG THIS NOOB IS SUCH A NOOBSTER lol.

But i have sort of acedentally deleted the map. I know i can download your maps again and edit that but i deleted the original Dustbowl map :/ I dont know how i did it lol.

I can get access to a Windows computer no problem but i would really appreciate maybe a download link to download the Dustbowl map again lol. I cant beleive i did what i did lol.

Thanks :)

- David
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 18:57

Is there anyone who can give me a link to the Dustbowl map so that i can re-download it after i deleted it stupidly lol :P

Thanks
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 25 Mar 2008, 20:07

Run hldsupdate tool again, it will download the latest original map for you.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 20:26

I wasnt the one who originally installed TF2. So i dont have access to do this i dont think.

I just run it and configure it lol.

Thats why i need the map :(

Thanks :)

- David
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 25 Mar 2008, 21:09

OK, here you go...

Latest, original dustbowl: http://rapidshare.com/files/102322647/cp_dustbowl.bsp
4 second fast respawn dustbowl: http://rapidshare.com/files/102322292/cp_dustbowl.bsp
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby davida50 » 25 Mar 2008, 21:27

Thank you SO SO SO much.

I really appreciate your help man :)

If there is ever anything i can do to help just ask and i will asist to what my skills can take me lol.

THANK YOU!!

:)

- David
davida50
Junior Poster
Junior Poster
 
Posts: 7
Joined: 25 Mar 2008, 16:21

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby abnvet » 03 May 2008, 01:39

are these maps still working after this last update
abnvet
Forum Noob
Forum Noob
 
Posts: 1
Joined: 03 May 2008, 01:37

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 03 May 2008, 10:38

No.

And it is no longer necessary to edit the maps - unless you want to stay on the internet tab without running extra plugins.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: cp_dustbowl.bsp question

Postby -=BB&A=- Hoot » 03 May 2008, 22:26

Hello all. I have a question on whether or not there is a difference on using a dustbowl.bsp map file that I had backed up prior to the recent update. I was updating the respawn times for both dustbowl and goldrush just now. I downloaded the pl_goldrush.bsp file to my desktop via ftp and using EntEd I adjusted the spawn times. I uploaded that file. Then I also grabbed a pre-existing cp_dustbowl.bsp map file that was on my desktop and went to re-upload that file. My FTP program said there was a newer file already on the server and asked if I wanted to replace it. I hit Yes before realizing that I should've downloaded that file first, changed the spawn times and then re-uploading.

So my question is will I now need to track down a copy of the newest cp_dustbowl.bsp file to use on my server, or will the old one prior to update be okay?

Thanks,
-=BB&A=- Hoot
-=BB&A=- Hoot
Forum Noob
Forum Noob
 
Posts: 3
Joined: 03 May 2008, 22:24

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 04 May 2008, 00:15

Yes, you need a new copy of the map. I'm assuming you dont have a dedicated server? Just run hldsupdate tool again... Or ask your provider to.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby dohuon » 02 Jun 2008, 17:12

Somebody please upload 4 or 6 sec respawn gravelpit and 2fort map. I spend two whole nights to make fast respawn map. When I run the srcds with the edited map, warning window pop up and it says "funny lump size" or "can't load lump44, allocation of 1023831 bytes failed."
I read this tutorials hundred times and edited with ented thousand times but never succeed.
Funny thing is the edited map GTFO. G uploaded on thread works fine...
These things make me crazy. Please tell me how to solve the "funny lump" problem or upload maps.
It is..not... funny....
dohuon
Forum Noob
Forum Noob
 
Posts: 2
Joined: 02 Jun 2008, 17:00

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 02 Jun 2008, 17:19

This guide is obsolete. As I said in the first post, use this:

mp_disable_respawn_times 1
mp_respawnwavetime 5

First line disabled default respawn time, second line sets to the time you want. The code above will give you 5 second respawn time. Simply put the lines in your server.cfg

The maps that I link to in first post are now outdated, and probably whats causing the error messages. I wont be updating them, since there is no point with the respawn cvars...
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby dohuon » 03 Jun 2008, 03:21

Thanks for reply.
What do you ment by it is obsolete?

I was trying to make a 24/7 dedicated server and as you said in first post I thought if I used those console commands, the server would be in the "custom" server list tab. I want to avoid it. So we are doing thise complicated thing to make short respawn time server.

Also, your "4 second fast respawn dustbowl: http://rapidshare.com/files/102322292/cp_dustbowl.bsp" works perfect in my server.
dohuon
Forum Noob
Forum Noob
 
Posts: 2
Joined: 02 Jun 2008, 17:00

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby GTFO. G » 03 Jun 2008, 09:55

Oh, Valve musn't have updated that map since I editted and uploaded it.

I meant obsolete in that the cvars are available to control respawn time, but you are correct in that using them will place you on the custom tab.
When people ask me "Plz" just because it's shorter than "Please" - I feel perfectly justified to answer "No" because it's shorter than "Yes"
User avatar
GTFO. G
GTFO. Founder
GTFO. Founder
 
Posts: 5237
Joined: 29 Nov 2005, 00:00
Location: [noun] a place of settlement, activity, or residence.

Re: [How To] Edit/Change Team Fortress 2 Respawn Times

Postby [DeX]V!P3R » 23 Nov 2008, 10:51

I want the times to be different for Red and For Blue. How can you do this. Also how to set the VOICE TALK even when your dead. I have heard both of these can be set in SOURCEMOD but the commands I can not find on Source Mod. Any help would be helpful thanks :)
[DeX]V!P3R
Forum Noob
Forum Noob
 
Posts: 1
Joined: 23 Nov 2008, 10:47


Return to Team Fortress 2



Who is online

Users browsing this forum: No registered users and 1 guest