Page 1 of 1

ahem*wah. Guy Eating :)

Posted: Sun Aug 17, 2003 5:37 am
by BiG_HeaD
um...im pretty should i did this rite this time?!?!

main:
level waittill prespawn

exec global/cardgame.scr


$world farplane 3500
$world farplane_color (.333 .333 .329)
$hungryguy thread global/eat.scr::eating
$wrenchguy4 thread worker
$wrenchguy5 thread worker
$welderguy1 thread welding


exec global/DMprecache.scr

level.script = maps/obj/objtest.scr
exec global/ambient.scr m4l1



exec global/door_locked.scr::lock

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" "Hunt2 By BiG_HeaD"

level waittill spawn
$mybomb thread global/jv_obj_dm.scr::bomb_thinker

end


level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw





$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker

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

worker:

println "Starting work"
self holster
self anim working_wrench_pullout
self waittill animdone
while (self.thinkstate == "idle")
{
println "working..."
self anim working_wrenching
self waittill animdone
}

self.gun = "Walter p38"
println "homer angry! HOMER SMASH!"
self unholster

end

welding:
self forceactivate
//self thread welderdeath
self.enableEnemy = 0
//self exec global/setdeathanim.scr "welding_death"
self anim welding_init
wait 5
while (isAlive self)
{
self anim welding_start
self waittill animdone
self anim welding_action
wait (randomint(10) + 5)
self anim welding_end
self waittill animdone
self anim welding_idle
wait (randomint(5) + 5)
}

spawn script_model model "models/miscobj/welding_tank.tik" targetname ((self.targetname) + "big1")
$((self.targetname) + "big1") notsolid
$((self.targetname) + "big1").origin = self.origin
$((self.targetname) + "big1").angles = self.angles
$((self.targetname) + "big1") anim tank_death
end

thanx

Posted: Sun Aug 17, 2003 6:17 am
by Alcoholic
I dont think the game shipped with eat.scr... where did you get this line from? I'll get the script for you.

Posted: Sun Aug 17, 2003 6:22 am
by BiG_HeaD
small_sumos Tut for the busy map. I though it would work. Btw-Thanks for all of your help so far with all this scr. bs :)

Posted: Sun Aug 17, 2003 6:43 am
by small_sumo
Yep youll need the eat scr, or just copy the contents of it into your map scr and thread to it like all the others are.

:)

Posted: Sun Aug 17, 2003 6:56 am
by BiG_HeaD
dont work.

Posted: Sun Aug 17, 2003 1:19 pm
by bdbodger
I think if you execute a script for an ai like $hungryguy you need to put it after level waitill spawn or have that in the script .

and
$mybomb thread global/jv_obj_dm.scr::bomb_thinker

end



level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw

Posted: Sun Aug 17, 2003 7:50 pm
by Alcoholic
no end there. if you put an end there, what would execute the lower half of that section?

waittill prespawn waits for level to load. the ai is part of the level.

Posted: Sun Aug 17, 2003 10:31 pm
by BiG_HeaD
huh ?

Posted: Sun Aug 17, 2003 11:19 pm
by Alcoholic
can somebody just post the contents of the eat.scr?

Posted: Mon Aug 18, 2003 3:50 am
by small_sumo
If he has the busy map, he has the eat.scr.