Inside3D!
     

Dynamic moving monster?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Artificial Intelligence
View previous topic :: View next topic  
Author Message
SamUK



Joined: 17 Dec 2008
Posts: 98
Location: United Kingdom

PostPosted: Mon Nov 23, 2009 10:36 pm    Post subject: Dynamic moving monster? Reply with quote

Recently I've been making an AI for a monster in my mod. Since it's sort of a bug type creature I was wondering if I could make it walk on walls and move about in a radius automatically through the QC.

(No way points)

Is it a possibility?
_________________
Working on Solitude
Back to top
View user's profile Send private message
Orion



Joined: 12 Jan 2007
Posts: 413
Location: Brazil

PostPosted: Mon Nov 23, 2009 11:00 pm    Post subject: Reply with quote

The simplest way is replacing that movetogoal() line on ai_walk() to:

Code:

if (!walkmove(self.angles_y, dist))
 self.angles_y = self.angles_y - self.yaw_speed;


If the monster can't move forward, it will turn to the right according to its yaw speed. Wink
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
Chip



Joined: 21 Jan 2009
Posts: 314
Location: Romania

PostPosted: Wed Nov 25, 2009 5:26 pm    Post subject: Reply with quote

Heh, great! I was just thinking of adding some spiders on the floor, and this idea caught my eye. I could make them wander on the walls and ceiling, too.
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake
Back to top
View user's profile Send private message Visit poster's website
SamUK



Joined: 17 Dec 2008
Posts: 98
Location: United Kingdom

PostPosted: Tue Dec 01, 2009 7:15 pm    Post subject: Reply with quote

Yep, shame is alittle over ambitions for me. I've got no idea where to start.

I'll put the idea on hold Wink
_________________
Working on Solitude
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Artificial Intelligence All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group