Flak88 2 obj help!!!!!
Posted: Thu Feb 06, 2003 6:39 pm
ok here are my setting for the objects in the map:
flak88 has these settings:
$destroyed_model models/statweapons/flak88_d.tik
classname script_origin
model statweapons/flak88turret.tik
targetname flak88_wp1 ( used wp2 for 2nd flak )
trigger:
classname trigger_use
targetname flak88_tg1 ( tg2 )
the bomb:
$explosion_fx fx/fx_flak88_expolsion.tik
$explosion_sound explode_aagun
$trigger_name flak88_tg1 ( tg2 )
model items/pulse_explosive.tik
target flak88_wp1 ( wp2 )
targetname flak88_ex1 ( ex 2 )
and above both I have this
classname script_origin
targetname flak88_target1
( not sure about this - read that it wasn't needed but added it above both flaks anyway, but I kept the target name the same )
and for my scr:
main:
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/NightRaidobj.scr
exec global/ambient.scr teamdm1
setcvar "g_obj_alliedtext1" "Destroy the Flac88's"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "textures/mohmenu/dmloading/blah.tga"
if(level.roundbased)
thread roundbasedthread
level waittill spawn
level.bomb_damage = 200
level.bomb_explosion_radius = 440
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 2
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 10 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
level waittill roundstart
$flak88_ex1 thread global/obj_dm.scr::bomb_thinker
$flak88_ex2 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
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
//*** --------------------------------------------
//*** "Bomb 1 Exploded"
//*** --------------------------------------------
bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed the Western Cannon!"
end
//*** --------------------------------------------
//*** "Bomb 2 Exploded"
//*** --------------------------------------------
bomb2_exploded local.bomb2:
while (local.bomb2.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed the Eastern Cannon!"
end
//----------------------------------------------
roundbasedthread:
level waitTill prespawn
level waittill spawn
level.dmrespawning = 0
level.dmroundlimit = 5
level.clockside = kills
level waittill roundstart
end
_______________________________________________
now my problem - one flak will blow and the other one won't also i don't get the ingame messages to show saying a flak has been blown
Can someone sort this out for me. I've got no clue how to really do this and I'm working of a tut.
flak88 has these settings:
$destroyed_model models/statweapons/flak88_d.tik
classname script_origin
model statweapons/flak88turret.tik
targetname flak88_wp1 ( used wp2 for 2nd flak )
trigger:
classname trigger_use
targetname flak88_tg1 ( tg2 )
the bomb:
$explosion_fx fx/fx_flak88_expolsion.tik
$explosion_sound explode_aagun
$trigger_name flak88_tg1 ( tg2 )
model items/pulse_explosive.tik
target flak88_wp1 ( wp2 )
targetname flak88_ex1 ( ex 2 )
and above both I have this
classname script_origin
targetname flak88_target1
( not sure about this - read that it wasn't needed but added it above both flaks anyway, but I kept the target name the same )
and for my scr:
main:
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/NightRaidobj.scr
exec global/ambient.scr teamdm1
setcvar "g_obj_alliedtext1" "Destroy the Flac88's"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "textures/mohmenu/dmloading/blah.tga"
if(level.roundbased)
thread roundbasedthread
level waittill spawn
level.bomb_damage = 200
level.bomb_explosion_radius = 440
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 2
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 10 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
level waittill roundstart
$flak88_ex1 thread global/obj_dm.scr::bomb_thinker
$flak88_ex2 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
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
//*** --------------------------------------------
//*** "Bomb 1 Exploded"
//*** --------------------------------------------
bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed the Western Cannon!"
end
//*** --------------------------------------------
//*** "Bomb 2 Exploded"
//*** --------------------------------------------
bomb2_exploded local.bomb2:
while (local.bomb2.exploded != 1)
wait .1
iprintlnbold "Allies have destroyed the Eastern Cannon!"
end
//----------------------------------------------
roundbasedthread:
level waitTill prespawn
level waittill spawn
level.dmrespawning = 0
level.dmroundlimit = 5
level.clockside = kills
level waittill roundstart
end
_______________________________________________
now my problem - one flak will blow and the other one won't also i don't get the ingame messages to show saying a flak has been blown
Can someone sort this out for me. I've got no clue how to really do this and I'm working of a tut.