Need help getting 2 bombs to blow
Posted: Fri Jul 15, 2005 6:49 pm
The problem i have is the axis can not defuse the bombs when the allies have planted them, also when both bombs have exploded the map does not restart. I have looked through many script files & i'm not certain what i have done wrong. The problem is in-front of my eyes.
Any help or advise would be welcome thank you.
below is the script
// Initialize the exploder subsystem
thread global/exploder.scr::main
level waittill spawn
// Axis like the bombs unplanted
level.defusing_team = "axis
// Allies will try to plant the bombs
level.planting_team = "allies"
// Number of targets in this map
level.targets_to_destroy = 2
// Default damage of the bomb
level.bomb_damage = 200
// Default radius of bomb blast
level.bomb_explosion_radius = 2048
// Set the parameters for round based match
level.dmrespawning = 0 // 1 or 0 (0=no respawn)
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = axis // axis, allies, kills, or draw
// Comment out this line to be able to set the bomb
// when alone on the map ( just for testing )
level waittill roundstart
$controlpanel_bomb thread global/obj_dm.scr::bomb_thinker
// "controlpanel_bomb" is the targetname of a bomb in Radiant
$coms_bomb thread global/obj_dm.scr::bomb_thinker
// "coms_bomb" is the targetname of a bomb in Radiant
thread allies_win_bom
// Start the win check thread for allies
// Start the win check thread for axis
$controlpanel_bomb thread axis_win_timer
$coms_bomb thread axis_win_timer
thread v2lift_mover
thread rocket_prep
thread ammohatch_mover
thread guardhatch_mover
thread phonehatch_mover
end // end of main
// Allied victory test
allies_win_bomb:
// While undestroyed objectives left
while(level.targets_destroyed < level.targets_to_destroy)
// chill out
waitframe
// No objectives left allies win
teamwin allies
end
// Axis victory test
axis_win_timer:
// At the end Axis win
level waittill axiswin
end
Any help or advise would be welcome thank you.
below is the script
// Initialize the exploder subsystem
thread global/exploder.scr::main
level waittill spawn
// Axis like the bombs unplanted
level.defusing_team = "axis
// Allies will try to plant the bombs
level.planting_team = "allies"
// Number of targets in this map
level.targets_to_destroy = 2
// Default damage of the bomb
level.bomb_damage = 200
// Default radius of bomb blast
level.bomb_explosion_radius = 2048
// Set the parameters for round based match
level.dmrespawning = 0 // 1 or 0 (0=no respawn)
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = axis // axis, allies, kills, or draw
// Comment out this line to be able to set the bomb
// when alone on the map ( just for testing )
level waittill roundstart
$controlpanel_bomb thread global/obj_dm.scr::bomb_thinker
// "controlpanel_bomb" is the targetname of a bomb in Radiant
$coms_bomb thread global/obj_dm.scr::bomb_thinker
// "coms_bomb" is the targetname of a bomb in Radiant
thread allies_win_bom
// Start the win check thread for allies
// Start the win check thread for axis
$controlpanel_bomb thread axis_win_timer
$coms_bomb thread axis_win_timer
thread v2lift_mover
thread rocket_prep
thread ammohatch_mover
thread guardhatch_mover
thread phonehatch_mover
end // end of main
// Allied victory test
allies_win_bomb:
// While undestroyed objectives left
while(level.targets_destroyed < level.targets_to_destroy)
// chill out
waitframe
// No objectives left allies win
teamwin allies
end
// Axis victory test
axis_win_timer:
// At the end Axis win
level waittill axiswin
end