Thread: NPC pathing.

Results 1 to 9 of 9
  1. #1 NPC pathing. 
    Registered Member
    Jack's Avatar
    Join Date
    Mar 2009
    Posts
    6,878
    Thanks given
    1,859
    Thanks received
    2,577
    Discord
    TwistedBoner#2217
    Rep Power
    5000
    I got a couple scenarios that confuse me.

    So normally, npcs will not walk through eachother, but would a larger NPC find an alternative route around if its a smaller NPC blocking the current route?

    example:


    Also, in which scenarios does an NPC walk around an object that blocks its path?
    [Only registered and activated users can see links. ]

    OS-Exile Discord: [Only registered and activated users can see links. ]

    Reply With Quote  
     

  2. #2  
    Registered Thanker
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    24
    Posts
    1,865
    Thanks given
    14,861
    Thanks received
    324
    Rep Power
    5000
    I think it would make sense that bosses would find an alternative route to attack you. Otherwise you could easily safe spot them.
    Thanks, MrClassic.

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    WhiteDownMb | HYBRID JEFE
    Brett the Don's Avatar
    Join Date
    Dec 2009
    Posts
    2,071
    Thanks given
    303
    Thanks received
    509
    Rep Power
    2141
    are you checking size?

    All of humanity's problems stem from man's
    inability to sit quietly in a room by himself

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Super Donator

    Tyluur's Avatar
    Join Date
    Jun 2010
    Posts
    4,053
    Thanks given
    1,371
    Thanks received
    1,290
    Rep Power
    718
    i don't think applying smart pathfinding to all large npcs is what RS does, it seems its more a case-by-case approach.
    [Only registered and activated users can see links. ]

    Quote Originally Posted by Velocity View Post
    i'd love to get called in the middle of the night just to hear an indian voice whisper "the nulls are back friend, how i fix"
    Quote Originally Posted by Savions View Post
    ive seen eastern europe prostitutes with a brighter future than this project
    Reply With Quote  
     

  5. #5  
    Registered Member
    Jack's Avatar
    Join Date
    Mar 2009
    Posts
    6,878
    Thanks given
    1,859
    Thanks received
    2,577
    Discord
    TwistedBoner#2217
    Rep Power
    5000
    Quote Originally Posted by Tyluur View Post
    i don't think applying smart pathfinding to all large npcs is what RS does, it seems its more a case-by-case approach.
    Kris talked how it was a manual override yesterday. Might be for all boss npcs?
    [Only registered and activated users can see links. ]

    OS-Exile Discord: [Only registered and activated users can see links. ]

    Reply With Quote  
     

  6. #6  
    Super Donator

    Tyluur's Avatar
    Join Date
    Jun 2010
    Posts
    4,053
    Thanks given
    1,371
    Thanks received
    1,290
    Rep Power
    718
    Quote Originally Posted by Jack View Post
    Kris talked how it was a manual override yesterday. Might be for all boss npcs?
    i can't think of any bosses that don't use smart pfing.
    [Only registered and activated users can see links. ]

    Quote Originally Posted by Velocity View Post
    i'd love to get called in the middle of the night just to hear an indian voice whisper "the nulls are back friend, how i fix"
    Quote Originally Posted by Savions View Post
    ive seen eastern europe prostitutes with a brighter future than this project
    Reply With Quote  
     

  7. #7  
    Textures developer

    Kris's Avatar
    Join Date
    Jun 2016
    Age
    22
    Posts
    3,445
    Thanks given
    595
    Thanks received
    2,101
    Discord
    Kris#1337
    Rep Power
    3167
    Quote Originally Posted by Tyluur View Post
    i can't think of any bosses that don't use smart pfing.
    None of them use smart pathfinding. At least not in OSRS, I don't know about RS3.
    Just like no NPC in OSRS can run(client supports it, server doesn't), no NPC can actually use the smart pathfinder. It is an engine limitation. Private servers often use smart pathfinders cause it's the easiest way out of safespots; It is not the way RS does things though.

    As for the issue in the OP, certain monsters(most bosses, some other monsters included) are defined to ignore entity clipping. They will walk through any NPC, and any NPC(even those defined to follow clip strategy) will be able to walk through them. All godwars generals and their minions are defined to not clip behind each-other.

    The way way this entity clipping works is pretty straightforward; There are server-side clip flags defined for the purpose of npc, player clipping, and the line-of-sight equivalents for both(I assume the latter anyways). Entities that are defined to clip will set the respective flag to true on the tile they walk to, and will set the flag to false when they walk off the tile(EVEN IF the tile contains another entity - this is how RS does the stacking of NPCs). Entities who are defined not to clip will also not unclip the tile when they walk off it; They just ignore the clipping entirely.

    The line-of-sight assumption for the previous paragraph is based off of Brawler NPCs in Pest Control - They will block NPCs as well as players from being able to see through them; Using a dedicated clip flag is the most efficient method of accomplishing that, making it the most probable go-to method of handling it.
    Spoiler for sig too large:

    [Only registered and activated users can see links. ]

    Discord: Kris#1337
    Reply With Quote  
     

  8. #8  
    Super Donator
    Haskell Curry's Avatar
    Join Date
    Nov 2009
    Posts
    848
    Thanks given
    600
    Thanks received
    246
    Rep Power
    0
    But isn't this how people safe spot jad?

    If you applied a smarter path finding technique, it would not be the same as what RS does.
    Reply With Quote  
     

  9. #9  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    31
    Posts
    12,493
    Thanks given
    159
    Thanks received
    5,228
    Rep Power
    5000
    1) no, an example of this is the lvl 22s in fight cave block the 180s
    2) go on rs, attack something and have a look...

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. NPC Pathing
    By Jack in forum Requests
    Replies: 0
    Last Post: 07-21-2019, 07:49 AM
  2. [ELVARG] Buying npc clipping/pathing
    By HeyPewds in forum Buying
    Replies: 0
    Last Post: 07-04-2018, 03:05 AM
  3. [Buying] Npc Pathing - 11/27/2017
    By Lawless in forum Buying
    Replies: 7
    Last Post: 11-27-2017, 08:16 AM
  4. Objects/Npc pathing error
    By xRokku_Ri in forum Help
    Replies: 8
    Last Post: 05-03-2015, 11:16 AM
  5. Setting a Specified NPC Walking Path? (377)
    By Zamorak Zxt in forum Requests
    Replies: 4
    Last Post: 01-02-2009, 07:52 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •