Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 1 invisible), 708 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Companion "AI" #176955
01/08/08 01:00
01/08/08 01:00
Joined: Jan 2003
Posts: 4,305
Damocles Offline OP
Expert
Damocles  Offline OP
Expert

Joined: Jan 2003
Posts: 4,305
This is a simple AI of a companion, who follows
you quite accurately though a level.
No nodes required to set.
(script is not quite clean, but rather fast written)

http://www.wasteland.at/companion.zip

It works on any bsp-level for A6.6, (dont use Models for
bridges or so)

Just use the buildproperties:
//build-values WED: 25,64,0 for narrow and fat
this is required for the movementcode to work correctly

you should also place the player into the level
(action: the_player)

Re: Companion "AI" [Re: Damocles] #176956
01/08/08 01:34
01/08/08 01:34
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
I had to restart the demo two times, before I was able to test it. The companion kept jumping out of the level before.

The ai doesn't seem to be very complex, just follows the player as fast as possible to avoid the need for complex pathfinding. It occurred several times to me while I have been running through the level, that the companion was unable to follow me. Quite nice for simple games though. Maybe you should work longer on your ai to make a really good one


Your friendly mod is at your service.
Re: Companion "AI" [Re: Damocles] #176957
01/08/08 02:42
01/08/08 02:42
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Quote:

It works on any bsp-level for A6.6, (dont use Models for
bridges or so)




Best conditions to combine invisible blocks for collision in combination with models shadowed by ventilator's lightmapper.

This companion acts like a monkey, always jumping, keeping no distance to me, he even jumps on my head!
Good AI for a little monkey who sits down on my shoulders when he reached me!

Add an animation, licking the face of the player's hero, and you make the player fall off his seat!

Re: Companion "AI" [Re: Pappenheimer] #176958
01/08/08 08:29
01/08/08 08:29
Joined: Dec 2007
Posts: 54
regensburg
alleen Offline
Junior Member
alleen  Offline
Junior Member

Joined: Dec 2007
Posts: 54
regensburg
this demo is amazing.. if you would remove that silly jumping.... and if you could make him move away a bit when he's in your way and doesnt let you pass.... it would be perfect..

i also like the player movement code, which i consider better than the one i coded myself for evjiäl

Re: Companion "AI" [Re: alleen] #176959
01/08/08 13:48
01/08/08 13:48
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
its awesome.
You just get your nodes with the players position right?
i have one little hint that may help: (if my theory is right about your code)
You can save in a node if the player jumped that would avoid uneccesary jumping by the bot, i would also include in a node if the player used something like the evelator so the bot would wait for it instead of jumping all the time


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: Companion "AI" [Re: Puppeteer] #176960
01/08/08 13:56
01/08/08 13:56
Joined: Jan 2003
Posts: 4,305
Damocles Offline OP
Expert
Damocles  Offline OP
Expert

Joined: Jan 2003
Posts: 4,305
The jumping can also be turned off, it is actually just a way for the bot, to overcome high obstacles.
Then the bot will not jump onto the player.

The bot follows the nodes left by the player, if he can find them.

To advance this, there could be a sequence of traces, to find the clothest node to the player,
that the bot can reach. its not hard to implement.

Re: Companion "AI" [Re: Damocles] #176961
01/08/08 19:44
01/08/08 19:44
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Great again, I really like the way you handle AI at a simple but optimized way
Thanks for sharing this !!

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Companion "AI" [Re: frazzle] #245158
01/08/09 18:01
01/08/09 18:01
Joined: Dec 2008
Posts: 93
YOU AINT GONNA NEED THAT!
M
MAGA Offline
Junior Member
MAGA  Offline
Junior Member
M

Joined: Dec 2008
Posts: 93
YOU AINT GONNA NEED THAT!
Dude it's awesome!!! Thanks allot!!! But can I use it for my game(it will be free)???


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1