AI Fight

Community Forums/Showcase/AI Fight

Rob Farley(Posted 2004) [#1]
This was floating around on my HDD so I thought I'd share it...

Basically you've got 4 teams of little guys who have a big old fight in an arena, when someone gets killed a random team colour gets regenerated to join in the on going fight.

Anyway, not much use but a bit of fun and might help some people with state based AI.

Because I'm such a miser and don't like hosting this stuff, this creates a zip file that contains all the media and code.

[edit] It seems posts have a finite size! Tag these 2 codes together [/edit]




Perturbatio(Posted 2004) [#2]
I don't think you've posted it all, I get an out of data error

*EDIT*
ok, you fixed it :)


Rob Farley(Posted 2004) [#3]



Rob Farley(Posted 2004) [#4]
.


Perturbatio(Posted 2004) [#5]
ummmmm....

Include "f:\library\common_functions.bb"




Rob Farley(Posted 2004) [#6]
Bums!

;AngleDifference() by halo
Return ((angle2 - angle1) Mod 360 + 540) Mod 360 - 180 
End Function



Dustin(Posted 2004) [#7]
I love the way they turn into little ghosts and float away! Great little program.

Thanks!


SopiSoft(Posted 2004) [#8]
hehe...this is so cool, i think im gonna turn it into a screensaver! ;-)


Matty(Posted 2004) [#9]
I love the way the little men walk.


wizzlefish(Posted 2004) [#10]
how do we make it work?


xmlspy(Posted 2004) [#11]
You copy each content of the boxes into Blitz3D, then you run it, the zip file will show up on the temp file of Blitz3d ( c:\Program Files\Blitz3D\tmp\ ) Then you have to copy the last box into ai.bb, after unzipping, and remove the Include part on ai.bb

I think that's about it.


Rob Farley(Posted 2004) [#12]
^^^ That's quite complicated really isn't it!

Ahh well!

If you want to increase the number of teams fighting...


If you want to increase the number of people in each fight...
Although if you create too many fighters it tends to get a little confused to say the least!


Paul "Taiphoz"(Posted 2004) [#13]
Blue guys win.


.rIKmAN.(Posted 2004) [#14]
what the....!!

Does anyboady fancy rarring up fixed code?
I`ll host if no-one else can, just email me.


AntonyWells(Posted 2004) [#15]
Dude, where's my rar?
Come on Rob, you need to Feng Shui your output man...or something else hippy. (For us lazy people ;p)


Rob Farley(Posted 2004) [#16]
Antony, follow these 61 simple steps.

1. This requires 3 whole copy and paste operations
2. And the Lord spake, saying, 'First shalt thou take out the Holy Pin. Then, shalt thou count to three. No more. No less. Three shalt be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, nor either count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached, then, lobbest thou thy Holy Hand Grenade of Antioch towards thy foe, who, being naughty in My sight, shall snuff it.'
3. Copy and paste the first 2 boxes into blitz.
4. Run it.
5. Unzip it
6. open AI.bb into blitz
7. copy and paste the angledifference function over the include.
8. Run it.
9.
10.
11.
12.
13.
14.
15.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61. Press ESC to end.


AntonyWells(Posted 2004) [#17]
Step 34 is clearly out of place.