Problem with Explosions
Posted: Tue Feb 11, 2003 12:08 am
in this script, i'm trying to get walls to explode
i'm using the setthread command on the triggers so that it starts up the exploding scripts-everything works even, except that when it says the bomb should have gone off-it hasn't
-the bomb removes and everything, but the walls don't blow
any ideas?
i'm using the setthread command on the triggers so that it starts up the exploding scripts-everything works even, except that when it says the bomb should have gone off-it hasn't
-the bomb removes and everything, but the walls don't blow
any ideas?
Code: Select all
//Title: Fort Vaux
// Architecture: TheShiznaeSpe
// Scripting: TheShiznaeSpe
main:
setcvar "g_obj_alliedtext1" "Protect the bunker"
setcvar "g_obj_alliedtext2" "and"
setcvar "g_obj_alliedtext3" "protect the fort."
setcvar "g_obj_axistext1" "Blow the walls"
setcvar "g_obj_axistext2" "and"
setcvar "g_obj_axistext3" "infiltrate the bunker."
setcvar "g_scoreboardpic" "none"
level waittill prespawn
exec global/ambient.scr MP_Malta_DM
end
level waittill spawn
level.script = maps/obj/Fort_Vaux.scr
//level waittill roundstart //comment out for testing
level.dmrespawning = 1
level.dmroundlimit = 20
level.clockside = allies
thread german_victory
thread french_victory
explode_gate:
iprintlnbold_noloc "Bomb has been set, the main gate will blow in 5 seconds..."
wait 1
iprintlnbold_noloc "4"
wait 1
iprintlnbold_noloc "3"
wait 1
iprintlnbold_noloc "2"
wait 1
iprintlnbold_noloc "1"
wait 1
exec global/exploder.scr::explode 1
iprintlnbold_noloc "Gate blown!"
$gatebomb remove
end
explode_wall_back:
iprintlnbold_noloc "Bomb has been set, the back wall will blow in 5 seconds..."
wait 1
iprintlnbold_noloc "4"
wait 1
iprintlnbold_noloc "3"
wait 1
iprintlnbold_noloc "2"
wait 1
iprintlnbold_noloc "1"
wait 1
exec global/exploder.scr::explode 2
iprintlnbold_noloc "There goes the back wall!"
$backbomb remove
end
explode_wall_side:
iprintlnbold_noloc "Bomb has been set, the side wall will blow in 5 seconds..."
wait 1
iprintlnbold_noloc "4"
wait 1
iprintlnbold_noloc "3"
wait 1
iprintlnbold_noloc "2"
wait 1
iprintlnbold_noloc "1"
wait 1
exec global/exploder.scr::explode 3
iprintlnbold_noloc "CHARGE, THE FLANK IS EXPOSED!"
$sidebomb remove
end
german_victory:
$bunker_trigger waittill trigger
while(1)
{
self waittill trigger
local.triggerer = parm.other
if(local.triggerer.dmteam == "axis")
break
wait 0.1
}
iprintlnbold_noloc "The Germans have infiltrated the bunker!"
teamwin axis
end
french_victory:
level waittill allieswin
iprintlnbold_noloc "The German offensive has been impeded!"
end