Garry's Mod

Garry's Mod

121 ratings
[VJ] City Scanner with Custom Pathfinding (NPC)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
14.210 MB
28 Mar @ 8:48pm
21 Apr @ 5:26pm
9 Change Notes ( view )

Subscribe to download
[VJ] City Scanner with Custom Pathfinding (NPC)

In 1 collection by rycch
Rycch's Custom NPCs
17 items
Description
4/21/2025: Due to an update to VJ Base this NPC is not working at full capacity. Pushed a fix to get its pathfinding working again and get it to stop throwing errors.

If you enjoy the addon, don't forget to leave a thumbs up!

This is a project I have been working on for a bit and decided to put it out in its current state for the world to try while I polish some other projects.

So, I was a bit let down by VJ Base's built in flying npc system, so I overrode that old system within this NPC. If all goes well this will be the foundation for some other npcs I want to work on. This NPC includes:

  • Custom AA_MoveTo function which includes my own custom implementation of the A* algorithm for 3D pathfinding in Garry's Mod
  • Optimized for large maps and large numbers of NPCs
  • The ability to dynamically adjust height when moving up and down slopes
  • Custom hover mechanics when in close range of the enemy (Warning can be wonky indoors or around walls)
  • Custom chase mechanics allowing the npc to follow the player through tight corridors
  • Custom idle wander mechanics allowing the npc to search the world without getting lost
  • The ability to flash bang the player
  • Animated tail, wheel, and other bits
  • Dynamic flashlight and sounds based on distance to target

Feedback is appreciated as it will help he in the future development of this and other addons.

If anyone is a Gmod dev out there and would be interested in helping me with some projects that would also be welcome.

Enjoy!
18 Comments
dyku 1 Jun @ 9:50pm 
works well on my part
MrPad 7 Apr @ 5:33pm 
map name plz
rycch  [author] 5 Apr @ 6:45pm 
@diomaskedhoodghost At the moment this is the only one I have posted publicly. I am working on others. I want to try doing a Hunter Chopper and Gunship at some point.
diomaskedhoodghost 5 Apr @ 6:22pm 
@rycch do you have any other npcs with custom pathfinder I'd like to try it out :)
rycch  [author] 5 Apr @ 3:08pm 
@Goofygoober It does not have any logic around Striders right now
rycch  [author] 5 Apr @ 3:07pm 
@@Poison But I have already been working on some of these on and off for over a year, so I also thought it would be nice to finally release a few.
rycch  [author] 5 Apr @ 3:05pm 
@Poison I was doing that at one point, but the file sizes got very unwieldy will all the resources I was using, leading to testing taking forever. Each of the NPCs is pretty much a unique project, and the faster I can test the more steamlined my workflow can be. Therefore, the faster I can work, the faster everyone can get new NPCs. So in the end, I split them up as it makes working on and updating easier for me.

When I am done with all my projects, and I still have quite few in my backlog, I will probably make a large pack, or maybe even a few.
Spoon 5 Apr @ 2:36pm 
Unless you can't then nvm
Spoon 5 Apr @ 2:36pm 
Why aren't all your npcs placed into one pack you can download? Then it'd be up to the person if they want to spawn them or not.