Documetns Objective not working!
Posted: Tue Feb 10, 2004 5:34 pm
Right I go to my documetns and when I try to take them they continus stay flashing and I dont win, before that i can blow up the bomb fine (is there any way to remove the "Great job team" after the bomb has been blown up also.
More importantly I would like to fix the documents!
Here is my scropt I am using...
More importantly I would like to fix the documents!
Here is my scropt I am using...
Code: Select all
// SE Complex Map
// ARCHITECTURE: -={SE}=- Snipes
// SCRIPTING: -={SE}=- Snipes
main:
setcvar "g_obj_alliedtext1" "Destroy the Control room"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" "Find the documents"
setcvar "g_obj_axistext1" "Defend the Control room"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" "Defend the documents"
setcvar "g_scoreboardpic" "none"
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
//***Ambient sounds
level.script = maps/obj/Complex.scr
exec global/ambient.scr Complex
//***Initializes the exploder subsystem
thread global/exploder.scr::main
level waittill spawn
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 2
level.bomb_damage = 200
level.bomb_explosion_radius = 2048
// set the parameters for round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 8 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
// level waittill roundstart // Comment out this line using '//' before it to be able to set the bomb when alone on the map ( just for testing )
$panel_bomb thread global/obj_dm.scr::bomb_thinker // "panel_bomb" is the targetname set on the bomb in MOHRadiant
$document_trigger thread document_check
thread allies_win_bomb
thread axis_win_timer
end
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
document_check:
while(1) { // forever
// Dont execute past this line
// until someone triggers the object
self waittill trigger
// parm.other is the triggerer
if(parm.other.dmteam == allies) {
// Make the document graphix disappear
self.target hide
// Tell the win method that an
// objective has been completed
level.targets_destroyed ++ // ++ adds 1
break // out of while loop
}
waitframe // protection
}
end