Newb question for modifying script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Renown
Private
Posts: 2
Joined: Sat Mar 29, 2003 4:45 pm

Newb question for modifying script

Post by Renown »

Hey... I recently downloaded Siegfried Line, an Obj respawn map.

I want to edit it so its not a 15 minute game per round, and change it to five minutes, or it could take forever. (Its for my server)

This is its script

-------------------------------------------------------------------------------------
main:

$world farplane 2500
$world farplane_color (.333 .333 .329)
level waittill prespawn

exec global/DMprecache.scr

level.script = maps/obj/wdcobj1.scr
exec global/weather.scr m5l1b
exec global/ambient.scr m5l1b

exec global/door_locked.scr::lock

setcvar "g_obj_alliedtext1" "Destroy the Flak88"
setcvar "g_obj_alliedtext2" "& the Command Radio"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88"
setcvar "g_obj_axistext3" "& the Command Radio"
setcvar "g_scoreboardpic" "wdcobj1"

level waittill spawn

level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 2
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

level waittill roundstart

$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
$88mm_explosive2 thread global/obj_dm.scr::bomb_thinker

$88mm_explosive1 thread axis_win_timer
thread allies_win_bomb

thread bomb1_exploded $flak88_explosive1
thread bomb2_exploded $88mm_explosive2

end

//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------

axis_win_timer:

level waittill axiswin

end

//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------

allies_win_bomb:

while(level.targets_destroyed < level.targets_to_destroy)
waitframe

teamwin allies
end

//*** --------------------------------------------
//*** "Bomb 1 Exploded"
//*** --------------------------------------------

bomb1_exploded local.bomb1:

while (local.bomb1.exploded != 1)

wait .1

iprintlnbold "Allies have destroyed the Flak88 AA Gun!!"

end


//*** --------------------------------------------
//*** "Bomb 2 Exploded"
//*** --------------------------------------------

bomb2_exploded local.bomb2:

while (local.bomb2.exploded != 1)

wait .1

iprintlnbold "Allies have destroyed the Command Radio!!"

end

--------------------------------------------------------------------------------

Now, I know i have to edit

"level.dmroundlimit = 15 // round time limit in minutes"

and change the 15 to five,
but, I did that, reloaded it into Main for my server and rebooted my server, yet... nothing happened, it was still 15 minutes per round.

How do I fix it so its only five minutes?

Thanks in advance
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Set a timelimit of 5 in your server config.
Image
Renown
Private
Posts: 2
Joined: Sat Mar 29, 2003 4:45 pm

Post by Renown »

Timelimit is for the level to end, and I just want to change the roundlimit via the .scr

Anyways, changing the timelimit would have to be done every time the map is on, and thats just annoying.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Well you have edited the correct line. Just make sure the old script isn't somewhere around.

You could also add a debug line on top of your modified script to see if it runs at all.
Image
Post Reply