Author Topic: npc following behavior  (Read 230 times)

Miya

  • Hydlaa Resident
  • *
  • Posts: 69
    • View Profile
npc following behavior
« on: August 27, 2005, 09:04:38 pm »
I think NPC monsters should be both smarter and dumber when it comes to following players that have run away.

First of all, there needs to be a limit to the distance NPC\'s will follow a player. After this distance, they will stop following and return to their spawn point. In addition, If an NPC looses line of sight from you, they should only remember the last place they saw you, and go there. If when they get there they don\'t have line of sight, then they should stop following, because they shouldn\'t know where you are. In both cases, they should remember any players that attacked them or that they attacked or started chasing for a short while. They should then occasionally check to see if any of those players are within line of sight again, and begin chasing them again (closest one first, or by some WoW-like aggro level system) if they are.

The distance limit is important for one thing because in places like the open terrain npc monsters will chase players across the whole map, and then you end up with like ubernaughts in the forest path killing newbies (and even not-so-newbies for that matter). The line of sight stuff just makes them more realistic.

You could, if you wanted, create a waypoint system in all the maps and use advanced pathfinding, and in some cases make an exception to the line of sight rule if, for example, an npc chases you around a corner of the sewers and they lose sight of you, but there is only one place you could have gone. they could then chase down a little farther looking for you before giving up.
Code: [Select]
Love(clk89);

Neryam

  • Hydlaa Citizen
  • *
  • Posts: 363
  • Knight Avatar of the Guild Knights
    • View Profile
    • Dragon Peak
(No subject)
« Reply #1 on: August 28, 2005, 03:06:13 am »
Yes I tike this and it hopefully shouldn\'t be too hard to code.
I find it extremely annoying when I go to the ruins and there is not a single ulbernaut in sight, and when I go from oja to hydlaa and there are consumers, ulbernauts and rogues strewn about the entire valley floor. :rolleyes:
Vis vires est haud claustrum ut animus. Power is no bar to the Heart.
Guild Knights will return. When I feel like it.


Samoth

  • Hydlaa Resident
  • *
  • Posts: 121
    • View Profile
(No subject)
« Reply #2 on: August 28, 2005, 07:00:49 pm »
I think it definitely should be NPC specific.  I would like to see wolf or hyena like monsters who will follow you in packs a very fair distance.

odd2k

  • Hydlaa Resident
  • *
  • Posts: 76
    • View Profile
(No subject)
« Reply #3 on: August 28, 2005, 07:40:57 pm »
And most importantly, they should not follow you at snail speed, creeping along the ground at 0.001 mph like they do now. it\'s unrealistic, and it just begs for someone to abuse it. Of course I\'m sure the devs already know this, it should not be too hard to change the speed settings though. Maybe make it two separate states of moving: running and walking for NPCs?