Making monsters run away from the player
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
Making monsters run away from the player
I'm trying to make a simple mod to the default dog behavior in Quake. I want to make them run away from the player after he shoots the first bullet. Is this possible? Or is it too difficult?
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
moving to a goal is easy.
moving away from a goal is easy.
avoiding walls while doing either of the former is hard.
You'd need a lot of tracelines to see where the various holes in walls are that the dog can run through/hide in, and contingency logic if the player manages to corner it. Or something.
if you have a waypoint which is known to be safe, you can movetogoal to it, but the dog might run towards the player and basically ignore him completely. Not realistic. Otherwise there's walkmove which gives direct control over the direction, but you'll have to figure out which walls to avoid yourself.
moving away from a goal is easy.
avoiding walls while doing either of the former is hard.
You'd need a lot of tracelines to see where the various holes in walls are that the dog can run through/hide in, and contingency logic if the player manages to corner it. Or something.
if you have a waypoint which is known to be safe, you can movetogoal to it, but the dog might run towards the player and basically ignore him completely. Not realistic. Otherwise there's walkmove which gives direct control over the direction, but you'll have to figure out which walls to avoid yourself.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest