Page 1 of 1

Time limits please help

Posted: Sat Jan 04, 2003 1:29 am
by Rick
I have my script for a roundbased, everything works fine except when i launch the game and somone joins there is no time limit. i set draw in the roundbased thread. when we run the game on our server [DaDs] it has a 20 min time limit. could you pls take a look. I want a 5 min round based map.
here it is:
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "ALLIES:Investigate"
setcvar "g_obj_alliedtext2" "Axis activity near"
setcvar "g_obj_alliedtext3" "Temple of Anubis"
setcvar "g_obj_axistext1" "AXIS:..If it wasnt"
setcvar "g_obj_axistext2" "for those pesky"
setcvar "g_obj_axistext3" "Allies...."

setcvar "g_scoreboardpic" "texture/mohmenu/dmloading/anubis1.tga"

$world farplane_color "0.452941 0.452941 0.452941"
level.fogplane = 9000
$world farplane level.fogplane

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/ambient.scr mohdm7
exec global/door_locked.scr::lock


level.script = maps/dm/anubis.scr

level waittill spawn

end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = draw // set to axis, allies, kills, or draw

level waittill roundstart

end

Posted: Sat Jan 04, 2003 7:51 am
by jv_map
Server time limit overrides level time limit :roll: .

Maybe it's possible to set a server-side time limit using this code:
server "timelimit 5"
or
setcvar "timelimit" "5"

Posted: Sat Jan 04, 2003 7:48 pm
by Guest
Thanks, the only thing i dont understand is why the stock game maps have a 5 min limit but mine does not? dm7 for instance has a 5 min round
is there something missing from my script that causes my map to have a 20 min round vice the 5 min that i set in the round thread?

Posted: Sat Jan 04, 2003 8:34 pm
by Guest
Hey i figured it out

if(level.roundbased)
thread roundbasedthread
was missing, thanks for your help. Great site -rick