Garry's Mod

Garry's Mod

Horde Optimizer
35 Comments
Darkness 22 Jul @ 12:25am 
"this does not happen by default for some reason?" source does not use gpu culling or any other kind of occlusion. instead, it's all done using binary space partitioning, which has its quirks, that being overdraw in scenarios where the mapper does not care about bsp
feddifasber 14 Jul @ 3:42am 
can you please add a feature where you can turn off the horde optimizer for certain entities? turrets disappear when knocked over, striders are just a pain to fight because they constantly turn invisible, it probably wouldnt do much to your system just turning it off for them because they aren't spawned in hordes frequently. (p.s npc battles are now so much better thnak you)
♬♫~Joe Blaze~♫♬ 2 Jul @ 3:47pm 
Not useful when sniping or shooting from afar.
NAgamer 22 Feb @ 4:11pm 
this causes a duplicate npc to appear when performing a killmove with bsmod
StafkiGTN 21 Feb @ 12:46am 
the fog scared me and made me think my addons were compromised, cool addon though,. maybe i should read first </3
StickGuy 11 Jan @ 10:24pm 
or vj??
StickGuy 11 Jan @ 10:23pm 
does this work for snpcs?
Mourning Intelligence 22 Dec, 2024 @ 2:31pm 
Could there be a toggle that prevents some entities from not being rendered? The Gargantuan from black mesa flickers when half of it is behind something. Could be as simple as; "Copy paste model / npc name and it will be blacklisted from the optimization" or is it not that simple to add?
kaydenrayner5 2 Dec, 2024 @ 8:36am 
ISTG I WAS GOING CRAZY OVER THE FOG
ITS JUST THIS MOD
sora1d  [author] 6 Nov, 2024 @ 10:08pm 
Did I leave it on by default lmao
FlattenedCar0 2 Oct, 2024 @ 7:49am 
I was wondering how there was random fog in my game, turns out it was an intended feature lol
bre 4 Jan, 2024 @ 8:10am 
works like a charm but i'm noticing it breaks RT cameras, so stuff like breen's monitor is flickering repeatedly
not game breaking or anything just a heads up for epileptic people :skele:
sora1d  [author] 12 Oct, 2023 @ 6:51pm 
Fix applied thanks for the heads up!
>KB> >KEKSQUAD 12 Oct, 2023 @ 6:30pm 
[Horde Optimizer] lua/autorun/hordeoptimizer.lua:144: Tried to use a NULL entity!
1. GetNPCState - [C]:-1
2. fn - lua/autorun/hordeoptimizer.lua:144
3. unknown - lua/ulib/shared/hook.lua:109

this could benefit from a nullcheck in case whatever entity is being used here becomes null/non-existent
Peanut Butter Jelly Jam 26 Sep, 2023 @ 6:24pm 
Can you make an addon that does what this does but for props?
Рядовой КОТэЭ 9 Sep, 2023 @ 12:58pm 
If I play with this on the server will it work?
... 5 Jul, 2023 @ 5:56pm 
10\10 yay
StrawWagen 21 Jun, 2023 @ 2:18pm 
You could try setting the visibility distance of npcs beyond the fog, to something small like 1, would probably bring perf up another step
sora1d  [author] 12 Jun, 2023 @ 9:25pm 
yup
Serika 12 Jun, 2023 @ 7:24am 
is ho_fog_enabled a serverside convar?
MonieThu 10 Jun, 2023 @ 3:35pm 
sounds pretty lit
sora1d  [author] 8 Jun, 2023 @ 5:32pm 
purely model hiding
Alfraido 8 Jun, 2023 @ 5:20pm 
another thing, do npcs stop thinking when they arent rendering or is it purely model(s)?
sora1d  [author] 8 Jun, 2023 @ 4:59pm 
I somehow didn't think of that. Thanks for your suggestion!
Alfraido 8 Jun, 2023 @ 4:52pm 
can you add a command for making npcs always render at a certain distance, this would help avoid npcs being invisible even though you're right next to them. Thanks
rome 8 Jun, 2023 @ 9:30am 
it also makes them disappear but only for like milliseconds its kinda hard to describe i can send a video though.
rome 8 Jun, 2023 @ 9:29am 
Idk why but the mod keeps making errors when i spawn in enemy's using things like Dr.Gbase
Big Trouble 8 Jun, 2023 @ 8:22am 
Help I was transported back in time when I heard that music in the video


Great mod actually though!
sora1d  [author] 6 Jun, 2023 @ 6:18am 
Fixed
sora1d  [author] 6 Jun, 2023 @ 3:11am 
Seems to be singleplayer only issue, fixing it now. Thanks for reporting.
syahmi2002.sa 6 Jun, 2023 @ 1:34am 
I tried the addon with any NPC-altering addons disabled such as iNPC, Extended PM Animations for NPCs and Armored Combine NPCs, but the bug still persists.
syahmi2002.sa 6 Jun, 2023 @ 1:19am 
@some random idiot Not much that I can think of. Mind you that this bug doesn't occur when I kill NPCs with MWII Takedowns.
sora1d  [author] 6 Jun, 2023 @ 12:43am 
I can't seem to recreate those bugs on my end. Do you have any addon of note?
syahmi2002.sa 6 Jun, 2023 @ 12:35am 
Not only that, when a Hunter NPC from HL2 Episode 2 is killed, it will flicker while its death animation is playing before becoming a dead ragdoll.
syahmi2002.sa 6 Jun, 2023 @ 12:28am 
There's a bug I found in this addon. When an NPC is killed, it'll leave its final-"pose"-before-being-killed for a second or two before disappearing from view, while its dead ragdoll spawns normally.