Forum

Dynamic moving monster?

Discuss Artificial Intelligence and Bot programming.

Moderator: InsideQC Admins

Dynamic moving monster?

Postby SamUK » Mon Nov 23, 2009 10:36 pm

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
SamUK
 
Posts: 101
Joined: Wed Dec 17, 2008 6:47 pm
Location: United Kingdom

Postby Orion » Mon Nov 23, 2009 11:00 pm

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

Postby Chip » Wed Nov 25, 2009 5:26 pm

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

Postby SamUK » Tue Dec 01, 2009 7:15 pm

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
SamUK
 
Posts: 101
Joined: Wed Dec 17, 2008 6:47 pm
Location: United Kingdom


Return to Artificial Intelligence

Who is online

Users browsing this forum: No registered users and 1 guest