over the last 2 days i have devloped an enemy scene node ai
it can do the following:
walk towards plauer
shoot player
only see player if he is in the field of view of the enemy
enemy cant see through walls
suppourt 4 md2 animations included
he can only see player if the are on the same height approx
can be made simply by
Code: Select all
CEnemy *badguy= new CEnemy(enemy1,playernode1,smgr,vector3df(-100,0,-300));
//and updated by
badguy->update();
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