Objective wont end game

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Daniel Radcliffe
Second Lieutenant
Posts: 168
Joined: Fri May 30, 2003 9:49 am

Objective wont end game

Post by Daniel Radcliffe »

Ive tried my map out and i appear to have missed somthing out of my script or somthing as when teh axis plants the and it explodes the game dosnt end.

Heres my script. can someone please tell me what im missing as i cant find the missing/incorrect part.

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "We have to protect"
setcvar "g_obj_alliedtext2" "that train at all"
setcvar "g_obj_alliedtext3" "costs"
setcvar "g_obj_axistext1" "We cant let them"
setcvar "g_obj_axistext2" "keep the train,"
setcvar "g_obj_axistext3" "destroy it quickly"
setcvar "g_scoreboardpic" "none"


level waittill prespawn

exec global/DMprecache.scr
level.script = maps/obj/train_station.scr
exec global/ambient.scr m5l1b
thread global/exploder.scr::main
$minefield1 thread global/valoche_magic.scr::mines_setup 30


level waittill spawn

level.defusing_team = "allies"
level.planting_team = "axis"
level.targets_to_destroy = 1
level.bomb_damage = 200
level.bomb_explosion_radius = 2048

level.dmrespawning = 0
level.dmroundlimit = 8
level.clockside = axis


level waittill roundstart


$train_bomb thread global/obj_dm.scr::bomb_thinker
thread allies_win_bomb
$train_bomb thread axis_win_timer
end




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

axis_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin axis

end


//*** --------------------------------------------
//*** "Allies Victory"
//*** --------------------------------------------

allies_win_timer:

level waittill allieswin

end



Thx
Daniel Radcliffe
Second Lieutenant
Posts: 168
Joined: Fri May 30, 2003 9:49 am

Post by Daniel Radcliffe »

Sussed it, couple of allies instead or axis and vice-versa :oops:
User avatar
martijn_NL
Map Reviewer
Posts: 156
Joined: Mon Apr 14, 2003 5:33 pm
Location: The Netherlands
Contact:

Post by martijn_NL »

This is your prob:

level.clockside = axis

it need to be

level.clockside = allies
Mapping 4 life
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

Daniel Radcliffe wrote:Sussed it, couple of allies instead or axis and vice-versa :oops:
Post Reply