Garry's Mod

Garry's Mod

419 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 (3)
6
6 Jun @ 5:08am
stupid air strike
CEMA_PRo4_CAT_brick#fixtf
5
19 Aug @ 12:21am
Incompatible addons
Gorigo
0
19 Aug @ 7:15am
Bug
Cain
101 Comments
cyberkat24 21 Aug @ 6:42am 
there's no opti+ menu in options
Enderfredbear51 13 Aug @ 2:34pm 
where's opti+ i can't find it in options?
john johnson 7 Aug @ 4:36am 
how to disable drowning
Fizzenberg 25 Jul @ 2:58pm 
new july 23rd update introduces some interesting bugs, like the resistance turret not shooting at combine or shooting their own friendlies (does not happen with inpc disabled). same with the hacked rollermine, but they do target the enemy rebel as intended
4thsword 25 Jul @ 8:40am 
finally find out where that fucking airstrike com from
peanut 18 Jul @ 9:10am 
Chronically Online Drakobloxxer, or you can just disable airstrike chance to 0
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.
nice shootin' tex 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.
TrollieMcTrollface 30 Jun @ 6:51pm 
Private profile very sus. Possibilities of mod being a virus 99.5%