Flocking NPC 's

Posted By: KiwiBoy

Flocking NPC 's - 06/05/09 06:15

Just thought Id get a move on and attempt to create a companian NPC with the view of generating groups of flocking NPC's sometime in the future.

So I started from just getting an NPC to follow player and it works wonderfully.

I have equipted an AUM Q and A camera system(74 I think, player_cam) and am currently using a variation of Vadim467's fpsp_player script for my player.

wasd moves, pans.
cur, cul rotates camera.
cup, cud raises and lowers camera.
mouse is 3D directional controller for player.

Was just excited and thought to show off using others code smile

How ever, would appreciate any tips on advancing 'follow' flight behaviours like adjusting hieght, distance and and direction for random behaviour while following and disengagement when evading predators or resource gathering.

mouse scroll to zoom,

Download Test level

Of course there are lots of to do yet but its not a bad start smile

All comments welcomed.
Posted By: MegaMarioDeluxe

Re: Flocking NPC 's - 06/05/09 06:22

Looks interesting I must say.

I possibly could use this for a mini-creature that floats around the player and if they get hit, restores health (eg. Crash Bandicoot's mask like companion).
Posted By: KiwiBoy

Re: Flocking NPC 's - 06/05/09 06:23

Cool! laugh go for it....
The camera could be usefull too.
Posted By: KiwiBoy

Re: Flocking NPC 's - 06/05/09 07:04

Darn!, it works in dev version but not published sorry...
must be a var that got away, I have to hunt it down, some global thing that interferes badly...

[edit]

Fixed the test level, authoring files this time smile
© 2024 lite-C Forums