[Circle] Hunting mobs: How to get the chase started

From: Amy & Ryan Biggs (nauvie@netcom.ca)
Date: 08/04/96


A lot of you have said to me "Hey, the code works great, the assassin is
created, but it never starts chasing the player"

Well, here's how to get it started.

First off, mobs don't move terribly fast (unless you lowered the mob action
time) so don't expect Speedy Gonzoles unless you want to patch the main
game loop.  (Something I've thought about a LOT for assassins)

Ok, first, open up mobact.c and add the following lines just before the /*
Mob Memory */ line

  /* Hunting Mobs */
  if (HUNTING(ch))
    hunt_victim(ch);

I completely forgot about that little piece of code.  It's only 2 lines of
code, but it makes a BIG difference, doesn't it?  The rest is done by the
hunt_victim procedure in graph.c and the HUNTING(as) = ch; in the assassin
code.

Sorry about the probleem folks.

The Husband and Wife team from heck!
E-mail: nauvie@netcom.ca
Amy Biggs:  http://www.geocities.com/SiliconValley/3461
Ryan Biggs: http://www.geocities.com/SiliconValley/3460



+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST