Dynamic moving monster?
Moderator: InsideQC Admins
4 posts
• Page 1 of 1
Dynamic moving monster?
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?
(No way points)
Is it a possibility?
Working on Solitude
- SamUK
- Posts: 101
- Joined: Wed Dec 17, 2008 6:47 pm
- Location: United Kingdom
The simplest way is replacing that movetogoal() line on ai_walk() to:
If the monster can't move forward, it will turn to the right according to its yaw speed.
- 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.
-

Orion - Posts: 476
- Joined: Fri Jan 12, 2007 6:32 pm
- Location: Brazil
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.
getButterfly - WordPress Support Services
Roo Holidays
Fear not the dark, but what the dark hides.
-

Chip - Posts: 575
- Joined: Wed Jan 21, 2009 9:12 am
- Location: Dublin, Ireland
4 posts
• Page 1 of 1
Return to Artificial Intelligence
Who is online
Users browsing this forum: No registered users and 1 guest