Garry's Mod

Garry's Mod

392 ratings
[WIP] iNPC Opti+ (optimised and expanded)
2
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://steamhost.cn/steamcommunity_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
95 Comments
DarkVoid 9 Jul @ 11:03pm 
I know you're probably not gonna read this but could you just fucking remove the airstrike or atleast set it to 0 by default
For anyone complaining about the airstrikes, type "inpc_airstrike_chane 0" in the console to disable it.
i <3 sniping tires 2 Jul @ 9:50am 
This is not a virus. I just decompiled the gma and skimmed the entire Lua source code and didn't see anything fishy. In fact the code is quite good and well-optimized especially considering this is an iNPC refactor. Outside of lua, there's only a sounds folder which contains the airstrike audio. No materials for jumpscares, no lua for backdoors etc.
Bad Goose 30 Jun @ 6:51pm 
Private profile very sus. Possibilities of mod being a virus 99.5%
Dante 29 Jun @ 11:59pm 
remove the dogshit air strikes
multoghost 24 Jun @ 7:08pm 
kinda hoping to have the airstrikes as an individual addon
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?