need help with map time.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
king_of_hi_ping
Corporal
Posts: 30
Joined: Wed Feb 05, 2003 7:17 pm

need help with map time.

Post by king_of_hi_ping »

I have a map I would like to add to our mixmap rotation, the rotation is set for 20 minutes for each map,

The new map I would like to add is filled with server info text and is unplayable, ... simply put.. a comercial. Anyway, it only needs to last 1 minute and 20 seconds then be switched to the next map in rotation,

the problem I'm having is the server cfg is set for 20 minutes witch in turns makes this map run at 20 as well,

does anyone know of a script witch will make this map run for less then the server cfg, or if i can add a line to the map script changing the server cfg to 120 then turning it back to 20 the next map,

thanks for any help you can give.

=LMAO= King of Hi Ping
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post by SNakeFluGeL »

You could add a script for that allthough I am not really sure if I got the commands right I thought it was something like (out of my head)

wait 60
nextmap

or something.... I think their should be something in front...ohw well
or try

wait 60
map "obj/obj_team2"

or something still not sure if it works but you can try =)
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

in the script you'll have to do something like:

Code: Select all

main:

     level waittill prespawn

     //whatever your code was

     level waittill spawn

     thread timer

     //whatever your code was

     level waittill roundstart
     end

timer:

     wait 60
     
     map "obj/obj_team3" //if that doenst work try the next line
     setcvar "map" "obj/obj_team3"
     end
Something like that. :wink:
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post by SNakeFluGeL »

Alcoholic you have omaha in the map rotation LOL (obj/obj_team3) lol =)
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

Thats just the one I remember I just got DC and I been playing it alot.
Post Reply