little script not quite right

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

little script not quite right

Post by small_sumo »

Here it is,

main:

level waittill spawn

thread spawnguy

end

spawnguy:

local.dude = spawn "human/dday_29th_private.tik" origin$whatever.origin targetname "mysoldier"
while (IsAlive local.dude)
waitframe

//$mysoldier runto spot

wait 2

goto spawnguy

end

Thanks
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Try this

local.dude = spawn human/dday_29th_private.tik "origin" $whatever.origin "targetname" "mysoldier"

or

local.dude = spawn human/dday_29th_private.tik "targetname" "mysoldier"
local.dude.origin = $whatever.origin
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Ok I got it to this point working quite well. Its kind of bots but they might have higher performance because they should have less calculations to do, anyway I will do some tests. I wish I could upload the file like you can at tmt, its hell funny to watch. To make it yourself you just need two script origins named whatever and whatever2 and a pathnode named spot. Very funny indeed.

:idea:

main:

level waittill spawn

thread spawnbaddie

thread spawngoodie


end

spawngoodie:

wait 1

local.dude = spawn human/dday_29th_private.tik "origin" $whatever.origin "targetname" "mysoldier"



$mysoldier runto spot
//$mysoldier takedamage

while (IsAlive local.dude)
waitframe

wait 2

goto spawngoodie

end

spawnbaddie:

wait 1

local.dude = spawn human/german_wehrmact_soldier.tik "origin" $whatever2.origin "targetname" "mysoldier2"



$mysoldier2 runto spot
//$mysoldier takedamage

while (IsAlive local.dude)
waitframe

wait 2

goto spawnbaddie

end
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

I might be speeking too soon but it seams to me I have just made dm bots.

:idea:
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

As long as you have pathnodes ai work in dm but they lack purpose JV's bot script gives them purpose they go for the objectives and set bombs and I think he has given them other behavours as well he is able to control them somewhat I think I read he has made them more aggressive etc .
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

These are shame compared to JV's bots but they could work in conjunction with his. Could be good for dm dudes. I hate dm and team dm play.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply