Dynamic moving monster?

Discuss Artificial Intelligence and Bot programming.
Post Reply
SamUK
Posts: 101
Joined: Wed Dec 17, 2008 6:47 pm
Location: United Kingdom

Dynamic moving monster?

Post by SamUK »

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
Orion
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Post by Orion »

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

Code: Select all

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:
Chip
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland
Contact:

Post by Chip »

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.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
SamUK
Posts: 101
Joined: Wed Dec 17, 2008 6:47 pm
Location: United Kingdom

Post by SamUK »

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

I'll put the idea on hold ;)
Working on Solitude
Post Reply