script help-Minor fix i hope

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

script help-Minor fix i hope

Post 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.
Ive played more than u.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Look for errors in the console. Repeat: Look for errors in the console.
Admin .MAP Forums
Image
Head above heels.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

bombs

Post 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.
Tom Trude,

Image
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

Post by BiG_HeaD »

only 1 bomb.
Ive played more than u.
Post Reply