View previous topic :: View next topic |
Author |
Message |
SamUK
Joined: 17 Dec 2008 Posts: 98 Location: United Kingdom
|
Posted: Mon Nov 23, 2009 10:36 pm Post subject: 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? _________________ Working on Solitude |
|
Back to top |
|
 |
Orion

Joined: 12 Jan 2007 Posts: 413 Location: Brazil
|
Posted: Mon Nov 23, 2009 11:00 pm Post subject: |
|
|
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.  _________________ There's no signature here. Stop looking for one. |
|
Back to top |
|
 |
Chip

Joined: 21 Jan 2009 Posts: 314 Location: Romania
|
Posted: Wed Nov 25, 2009 5:26 pm Post subject: |
|
|
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 |
|
 |
SamUK
Joined: 17 Dec 2008 Posts: 98 Location: United Kingdom
|
Posted: Tue Dec 01, 2009 7:15 pm Post subject: |
|
|
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 |
|
Back to top |
|
 |
|