Page 1 of 1

Destroying 2 flaks !?!

Posted: Tue Mar 01, 2005 6:49 pm
by mcunha98
I read the tutorial of Nemesis about how make a objective to destroy a flak 88.

Found in http://users.1st.net/kimberly/Tutorial/obj.htm

My question its i duplicate all steps to make a second flak 88, but the "objective" dont work, my script file is this, how idea :

Code: Select all


main: 

setcvar "g_obj_alliedtext1" "Mapa" 
setcvar "g_obj_alliedtext2" "para" 
setcvar "g_obj_alliedtext3" "testes" 
setcvar "g_obj_axistext1" "Mapa" 
setcvar "g_obj_axistext2" "para" 
setcvar "g_obj_axistext3" "testes" 
setcvar "g_scoreboardpic" "none" 

 if(level.roundbased) 
  thread roundbasedthread 
  level waittill prespawn 

  exec global/DMprecache.scr 
  exec global/door_locked.scr
  exec global/easy_elevator.scr elevator_trigger
  level.script = maps/dm/___teste_natural.scr
  exec global/ambient.scr mohdm4

  thread global/exploder.scr::main
  level waittill spawn

  $world farplane_color "0.752941 0.752941 0.752941" 
  level.fogplane = 5000 
  $world farplane level.fogplane

  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 = 5 
  level.clockside = axis 

//  level waittill roundstart 

  $flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
  $flak88_explosive1 thread axis_win_timer
  $flak88_explosive2 thread axis_win_timer
  thread allies_win_bomb
end 

roundbasedthread: 
 level waitTill prespawn 
 level waittill spawn 
 level.dmrespawning = 0
 level.dmroundlimit = 5
 level.clockside = kills
end 

allies_win_bomb:
 while(level.targets_destroyed < level.targets_to_destroy)
  waitframe
 teamwin allies
end

axis_win_timer:
 level waittill axiswin
end

start_sounds:
  wait 1
  $radio1 loopsound sound_piano
end



Posted: Tue Mar 01, 2005 8:51 pm
by Green Beret
$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
$flak88_explosive1 thread axis_win_timer
$flak88_explosive2 thread axis_win_timer
thread allies_win_bomb
end
try to add this

Code: Select all

  $flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
  $flak88_explosive2 thread global/obj_dm.scr::bomb_thinker//add this

  thread allies_win_bomb $flak88_explosive1 $flak88_explosive2
  $flak88_explosive2 thread axis_win_timer

end 
heres how they did it for V2
$v2_explode thread global/obj_dm.scr::bomb_thinker
$ctrlroom_explode thread global/obj_dm.scr::bomb_thinker

thread allies_win_bomb $v2_explode $ctrlroom_explode
$v2_explode thread axis_win_timer

hope this helps 8-)

Posted: Tue Mar 01, 2005 9:15 pm
by mcunha98
hope this helps 8-)
Work fine !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thank you very much more 1 time !!!!

:wink:

Posted: Tue Mar 01, 2005 9:22 pm
by Lt.Audie L Murphy
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.bomb_damage = 200
level.bomb_explosion_radius = 1024


level waittill spawn

level.dmrespawning = 1
level.dmroundlimit = 10
level.clockside = axis

level waittill roundstart


shouldnt this go like so ?