unlimited map time in config?

Discussion for Admins of ETPro/BayonET servers.
If you don't run a server, please don't post here...

Moderators: Forum moderators, developers

Post Reply
nedd3h
Posts: 67
Joined: Fri Jan 14, 2005 12:52 am
Location: Australia
Contact:

unlimited map time in config?

Post by nedd3h »

Hello :)

How do I set a map to have an unlimited time in a config?
set g_usertimelimit 0 is map default
I tried -1 but no go

I also tried set timelimit 0 and -1



I can rcon it or ref it in-game but am curious how to do this for certain maps via a config.
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

ehh .. /mee wonder i think u can do it in the map defautl.cfg but if ot getsl aoded before the server map .script i will probely overwritten maybe this should be done in lua
nedd3h
Posts: 67
Joined: Fri Jan 14, 2005 12:52 am
Location: Australia
Contact:

Post by nedd3h »

Thanks for your reply :)
mapdefault.cfg didn't work

the only way I could get it to work was via a map script
i just opened the battery one and deleted the parts around the timelimit bit lol
anyway it worked :)

Code: Select all

game_manager
{
	spawn
	{
		// Game rules
		wm_set_round_timelimit  0
		}
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

hmm yeh that posable aswel
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

what's wrong with just making the time limit user timelimit really long ? ISTR the server will reset when game time wraps anyway.
send lawyers, guns and money
nedd3h
Posts: 67
Joined: Fri Jan 14, 2005 12:52 am
Location: Australia
Contact:

Post by nedd3h »

reyalP wrote:what's wrong with just making the time limit user timelimit really long ?
nothing!
i was just curious :)

I have a map called King of the Radio - link - on my server - info. It's a symmetrical CTF style map with common team objectives. The default timelimit is 10 minutes. Once a team dynos the other teams radio the game is over. I didn't think it was fair that Allies win if no one actually dynos a radio... better the maps ends when someone completes it! If people get board then they can just vote nextmap.

It was only then I realised I couldn't make the map have an unlimited timelimit via configs.
nedd3h
Posts: 67
Joined: Fri Jan 14, 2005 12:52 am
Location: Australia
Contact:

Post by nedd3h »

oops! the above script edit works for unlimited time but the map won't end even if a radio blown :oops:

I extrcted the script from the .pk3 and just editted the times there... all good now :)
wimpy
Posts: 136
Joined: Sun Sep 08, 2002 6:43 pm
Location: Lima, Ohio USA

Post by wimpy »

Ok, so you just don't want the map to end until something gets blown up. I would extract the kotr.script file and put it into the folder you use for the server map scripts. Look for 4 of these:

wm_objective_status

Under the last one, I would put:

wm_setwinner -1

That will make it do the sudden death that you want. It won't end until something is blown up.
nedd3h
Posts: 67
Joined: Fri Jan 14, 2005 12:52 am
Location: Australia
Contact:

Post by nedd3h »

wimpy wrote:I would extract the kotr.script file and put it into the folder you use for the server map scripts.
I did that and editted the following:

Code: Select all

wm_axis_respawntime	10	// default 6
wm_allied_respawntime	10	// default 6
wm_number_of_objectives  2
wm_set_round_timelimit	 0	// default 10
That give me what I wanted.
wimpy wrote: wm_setwinner -1

That will make it do the sudden death that you want. It won't end until something is blown up.
Thanks for the info :)
User avatar
th
Posts: 3
Joined: Thu Feb 09, 2006 5:51 am
Contact:

Post by th »

On my trickjumping server ... this works in my .config ...

Code: Select all

map default
{
        set g_userTimeLimit 0.000000
}
Post Reply