New FPS ai sceneNode and a demo

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Omaremad

New FPS ai sceneNode and a demo

Post by Omaremad »

hii

over the last 2 days i have devloped an enemy scene node ai
it can do the following:

:D walk towards plauer
:D shoot player
:D only see player if he is in the field of view of the enemy
:D enemy cant see through walls
:D suppourt 4 md2 animations included
:D he can only see player if the are on the same height approx
:D can be made simply by

Code: Select all

CEnemy *badguy= new CEnemy(enemy1,playernode1,smgr,vector3df(-100,0,-300));

//and updated by

badguy->update();
bad things
:( some times gets stuck un der stairs etc..
:( the player is invincible in the demo
:( he doesnt try to find player if player hides after being spotted
:( his shooting system needs a time delay

this project is open source so plz help

u can see the demo at


http://uk.geocities.com/omar.emad@btinternet.com


there is also a combat flight sim i made there

all gfx are by me except waterworld map and gijoe the enemy

tell me if u want the ai system to be explained

enjoy

man fears time but time fears the pyramid
Guest

Post by Guest »

its amazing :D but the source is a bit messy :wink:
omaremad

Post by omaremad »

it seems that my server cant handle the traffic if any 1 has some webspace to share 4 irrlicht projcets plz tell me
omaremad

Post by omaremad »

here is the source on another server

http://omaremad.bravepages.com/ai_omar.htm
Omaremad

Post by Omaremad »

plz plz plz

reply if u use this code

say if u like it :D or not :evil:
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

i have just downloaded the demo and ran it, i am tring to move the player forward but it seems that
it does not move and the enemy still standing as it is .i have tried the arrow keys but it does not work ,only the spacebar key works.

BTW Irrlicht 0.10 already has a DMF loader so why you used a separate loader?

great work Omer

keep developing it.
omar emad

Post by omar emad »

aah i thinks its a bug wat u do is run in front of the enemy

his field of view is only 40 degs
Guest

Post by Guest »

i made it on ver 0.9
Guest

Post by Guest »

i found the probelm the player gets stuck on an over head polygon
all u do is move the keys in all direction til he moves and move the mous as well
i wish i used a better map :oops:
Guest

Post by Guest »

dude

ive downloaded ur sample and everything is not moving including the enemy and the player
Other
Posts: 85
Joined: Fri Dec 03, 2004 5:41 pm
Contact:

Post by Other »

I am not sure if we understand the same saying "ai". Here is a definition from a book (just the same I think about it):

Artificial Intelligence - Devices and applications that exhibit human intelligence and behavior ... It also implies the ability to learn or adapt through experience.

Detecting of enemies is imho no AI.

But else its a nice demo. ;-)

I suggest u to use physic and computional intellect methods like nn, fuzy and ga - thats what I'll do, when I compleet MyWorld.
My Irrlicht&ODE-Project: http://www.lofing.de/myworld/
Bot_Builder
Posts: 23
Joined: Thu Apr 14, 2005 6:59 pm
Location: Bushland

Post by Bot_Builder »

Nah, its still AI, trust me on that. Its just not a very good emulation of a human (in other words fine for an fps game)

There are of course methods to do better, learning AI like Neural nets and genetic algos.

Most AI implementations in games do not learn and yet are still called AI. By common usage this is AI as well.
ImageXP SP2, AMD Athlon 64 3500+, 1GB HyperX RAM, Radeon X700 Pro (PCI-e), 120GB SATA drive :)
Post Reply