Garry's Mod

Garry's Mod

380 ratings
[WIP] iNPC Opti+ (optimised and expanded)
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Movie, Scenic
File Size
Posted
Updated
5.012 MB
7 Apr @ 10:52am
7 Apr @ 11:43am
2 Change Notes ( view )

Subscribe to download
[WIP] iNPC Opti+ (optimised and expanded)

Description
Uploaded with [urI=https://github.com/WilliamVenner/gmpublisher]gmpublisher[/uri]

Original iNPC addon worked like a well-oiled machine...
...until you decided to put more than 10 NPCs and hit "Unlimited vision"

Suddenly, every O(n^3) (in)efficency algorithm of this code instantly surfaces, nearly freezing your game.

So after editing original code for a while, lo and behold:

NEWER, OPTIMISED VERSION OF THIS ADDON
INTENDED FOR MASSIVE MAP-WIDE NPC-WARFARE!!!

(Almost) compatible with:
- Enhanced Sandbox NPC

I also added:
- Simple squad system: now factions don't overflow the 16-npcs-per-squad limit
- Two strategic variants of NPCs: the one that will rush enemy wherever he is and the other, which protects their base (feature: one NPC affects entire squad's behaviour)
- Airstrikes: what an NPC-war without bombs falling from the sky blowing up everything

All of this can be set up in new "Opti+" Options menu.

It's a work-in-progress addon: some things may cause errors and glitches and some unimplemented features have underdeveloped proto-limbs for code.

Report bugs if you encounter any.

All credits to creator of original iNPC addon: https://sp.zhabite.com/sharedfiles/filedetails/?id=632126111&searchtext=inpc
Popular Discussions View All (2)
6
6 Jun @ 5:08am
stupid air strike
CEMA_PRo4_CAT_brick#fixtf
4
11 Jun @ 2:19pm
Incompatible addons
Gorigo
89 Comments
M.A.S.Y.A. 11 Jun @ 2:26pm 
Does not work
JusticeBoomer 11 Jun @ 12:32pm 
No longer works
Igni et Ferro 6 Jun @ 6:20am 
How can I turn off Airstrikes?
Igni et Ferro 5 Jun @ 11:58am 
How can I turn off Airstrikes?
Zesty Flop2340 25 May @ 5:05am 
when update
TheDesertRoad 23 May @ 8:56pm 
and how do i disable the "add to squad" message?
TheDesertRoad 23 May @ 8:46pm 
is there any way to change a npc faction?
puddles 21 May @ 4:50pm 
My npcs don't patrol at all.
Linked 20 May @ 10:06pm 
Scratch that, the original addon does the strider thing too...
Linked 20 May @ 8:38pm 
And it's just named 'Other'