Page 1 of 1

script help-Minor fix i hope

Posted: Sun Nov 30, 2003 1:30 am
by BiG_HeaD
New Script:

main:

level waittill prespawn

$world farplane 3000
$world farplane_color (.333 .333 .329)

setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "objdm1.tga"

exec global/DMprecache.scr
level.script = maps/obj/objtest.scr

exec global/ambient.scr m4l1

thread global/exploder.scr::main
exec global/door_locked.scr::lock

level waittill spawn

level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.bomb_damage = 200
level.bomb_explosion_radius = 2048

level.dmrespawning = 0
level.dmroundlimit = 5
level.clockside = draw

thread allies_win_bomb
$panel_bomb thread axis_win_timer
thread bombscript


$panel_bomb thread global/jv_obj_dm.scr::bomb_thinker
thread global/jv_bots/jv_mp_ai.scr::enable

end


bombscript:

$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker

level.alliesbots = 3
level.axisbots = 3


waitthread global/jv_bots/jv_mp_ai.scr::enable


$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb

$bomb thread global/jv_obj_dm.scr::bomb_thinker

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



Theres Gotta be some errors in there cuase The Bomb isnt working, and the map, upon restart, boots me.

Posted: Sun Nov 30, 2003 2:57 am
by Bjarne BZR
Look for errors in the console. Repeat: Look for errors in the console.

bombs

Posted: Sun Nov 30, 2003 6:27 am
by tltrude
How many bombs are there? What are their targetnames? What are their trigger targetnames?

You only have level.targets_to_destroy set to one, but you have three bomb thinker lines.

You have clockside set to draw and it should be axis, I think.

Posted: Sun Nov 30, 2003 6:32 am
by BiG_HeaD
only 1 bomb.