ahem*wah. Guy Eating :)

Post your scripting questions / solutions here

Moderator: Moderators

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

ahem*wah. Guy Eating :)

Post 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
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

Post 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 :)
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.

:)
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

Post by BiG_HeaD »

dont work.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

Post by BiG_HeaD »

huh ?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

can somebody just post the contents of the eat.scr?
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

If he has the busy map, he has the eat.scr.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply