bomb wont defuse
Posted: Wed Oct 01, 2003 2:33 pm
Ive started a new map with a friend and im creating the bomb/script for the new map. I have it so that the allies can planet the bombs and once both bombs have blown the allies win without any probs.
After further testing ive since found out that for some reason the axis cant defuse the bomb so once the bomb has been set it cannot to defused. Ive posted the script here to be looked at, so can someone please tell me what it is ive done wrong.
Thx for your help
After further testing ive since found out that for some reason the axis cant defuse the bomb so once the bomb has been set it cannot to defused. Ive posted the script here to be looked at, so can someone please tell me what it is ive done wrong.
Ive obviously missed somthing out somewhere, is it possible that there is somthing in the actual map missing that could cause the problem or is it likely to be the script itself causing the problem.// cannonbomb
// ARCHITECTURE: us
// SCRIPTING: us
setcvar "g_obj_alliedtext1" "Destroy the main"
setcvar "g_obj_alliedtext2" "turrets"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Defend the turrets"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/cannonbomb.scr
exec global/ambient.scr cannonbomb
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
level.dmrespawning = 0
level.dmroundlimit = 1
level.clockside = axis
//level waittill roundstart
$88mm_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 $88mm_explosive1 $88mm_explosive2
thread bomb1_exploded $88mm_explosive1
thread bomb2_exploded $88mm_explosive2
end
//*** --------------------------------------------
//*** "Bomb 1 Exploded"
//*** --------------------------------------------
bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed a Cannon!"
end
//*** --------------------------------------------
//*** "Bomb 2 Exploded"
//*** --------------------------------------------
bomb2_exploded local.bomb2:
while (local.bomb2.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed a Cannon!"
end
// Allied victory test
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
// Axis victory test
axis_win_timer:
level waittill axiswin
end
Thx for your help