Garry's Mod

Garry's Mod

NPC Prop Attacking & Breaching
88 Comments
ColdCristal 6 Jul @ 7:30am 
best mod ty
Notispadiko 28 Jun @ 5:41am 
btw cool mod dude, keep it up :steamthumbsup:
w.black57  [author] 26 Jun @ 5:51pm 
@V1

As stated in the description, this is my best effort to do the behavior. I wouldn't mind if someone else would upload a better version where they don't attack loose props. :sadfaye:
V1 26 Jun @ 5:39pm 
This mod makes all the npcs attack props for no fucking reason. Even tho if its not in their way. If its possible to go around it, they wont. They will hit the prop till it breaks.
w.black57  [author] 19 Jun @ 1:53am 
@Notispadiko

INPC does alot of scripts on the npcs, in theory it might just end up them not attacking the prop at all due to overriding "commands" on the npcs.

so I'd say its not recommended, but feel free to try! :HappyElle:
Notispadiko 19 Jun @ 12:19am 
hey, will it work with ai mods for zombies, combines, ect ? like INPC
pongon 11 Jun @ 1:26am 
yoooo peak
LarryDoodle 27 May @ 8:50pm 
Sooooo.. The zombies attack ANY prop but if its like the metal fence-gate thingy it doesnt break?? yeah??
w.black57  [author] 21 May @ 2:16pm 
Yes
Bob. 21 May @ 10:53am 
can this work on doors too?
渚と汐 20 May @ 3:58pm 
How did the corpse turn into a skeleton
w.black57  [author] 17 May @ 7:27pm 
@Chez

My mod just gives AI to the npcs, you can mix it with mods that affect the props. the Simple Prop Damage is just that so props have health and npcs can destroy it. If not installed it they will keep attacking it forever.

So to answer your question, probably it will work. Try it out! :happyfaye:
Chez 17 May @ 7:18pm 
will this work with this? It seems like a great alternative to the prop damage. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1364802216&searchtext=explosion+prop+unweld
Snekenjoyer6 12 May @ 12:07am 
is it an option to make it so that only zombies attack props?
w.black57  [author] 22 Apr @ 5:33pm 
@yakov

It will probably work since my mod just provides the AI. Not how props are destructible.
Just simply disable simple prop damage - Ultimate Destruction and enable that mod you are referring to. Although i can't gurantee it will work :slimehungry:
Farbott 7 Apr @ 6:52pm 
shit yourself

One thing I've noticed is they'll have problems with props in gaps in them sometimes, the big metal shelves (or short bedframes) can be a bit troubling for them to try and lock onto to get it out of the way
Hatshepherd 7 Apr @ 7:20am 
fartbott
Farbott 7 Apr @ 7:18am 
swag
Khlcken 7 Apr @ 6:39am 
@w.black57 oh thank god I can download the mod again
w.black57  [author] 7 Apr @ 6:17am 
Hi all, just recently updated:

This update lessens the tunnel visioning of npcs on props until it breaks. That does not mean they will ignore loose props, but it will lessen it. (its really unavoidable)
- NPCs will now stop attacking props upon damage taken.
- NPCs will now only help their fellow if they don't see their enemies
- NPCs will now eventually stop attacking a prop and do checks again
Farbott 6 Apr @ 6:50pm 
While its in my mind, any AI mods that might conflict with them? At times my zombies are acting weird, walking up to doors/props, screaming at it then doing nothing or just walking off.
Khlcken 6 Apr @ 12:58pm 
I would like to use this but they even attack the player with ignore player on, so they just start shooting any props near them.
Glop 4 Apr @ 8:38pm 
░░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE INTERNET
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
BonelessBoi420 4 Apr @ 2:24pm 
Love this with the horde mod you recommended, what are some good maps you suggest?
Fidgetspinnerlord3345 4 Apr @ 12:43am 
fix npcs trying to attack props instead of the player nearby
Pootos kek 3 Apr @ 1:12am 
npcs prioritize props when enemies are nearby instead of killing the npcs, pls fix
w.black57  [author] 2 Apr @ 4:38am 
@leszek
It is highly recommended to do so. Or else the npcs will forever try to destroy props that are indestructible
leszek 2 Apr @ 4:34am 
does this mod require simple prop damage?
veri cosmic baen 31 Mar @ 3:58am 
k lemme recheck
w.black57  [author] 30 Mar @ 8:22pm 
@Certainley Someone
You probably still have the prop damage mod still on
veri cosmic baen 30 Mar @ 9:44am 
why does the mod still work if i have it uninstalled?
bigulator 28 Mar @ 7:11pm 
Ya nextbots are 100% better in terms of navigation but they just aren't the same.

I'm still thinking of solutions for your mod but if there really aren't any ig you'll have to wait until AI becomes smart enough to do it for you lol
w.black57  [author] 28 Mar @ 6:48pm 
@bigulator

I wish it was that easy. Unfortunately only nextbots, have these functionalities. So i had to do things the hard way in dealing with old npcs.

If your wondering why I wanna deal with old tech npcs, HL2 npcs are the most fun / balanced npcs to play againsts (IMO) and literally dont need to subscribe to any modded npcs. :megawatts:
bigulator 28 Mar @ 5:59pm 
I know almost nothing about modding so forgive me if my suggestions are kinda dumb.

Anyway, could you make zombies only attack props that happen to be in the way of their node path between you and them?
Joshua.Rodriguez@msn.com 28 Mar @ 4:59pm 
i can finally make npcs actually look cool
w.black57  [author] 28 Mar @ 4:00pm 
I'll keep thinking on my side, might come up with a workaround on it. Thank you!
w.black57  [author] 28 Mar @ 3:58pm 
@DarthKiller
Problem occurs if a stack of cola cans are blocking their way, it would start blocking them. Setting up Whitelist and Blacklist sounds like a awesome feature, but im trying to keep it a plug-n-play type of addon, keeping it "Simple" :npc_fly:

@bigulator
Unfortunately not all props have the same size, one big Metallic container (used on the crane part of hl2) is a single prop that could also block them, they will not detect it.

Thank you so much guys I really appreciate the suggestions! :happyfaye:

Im starting to see why no one has created this addon before haha so darn hard to solve this issue :DSTskull:
bigulator 28 Mar @ 12:43pm 
This should force them to attack clusters of props, which could work.
bigulator 28 Mar @ 12:42pm 
What if you made the zombies only attack props that have a certain amount of other props within a set radius of itself. For example a zombie would only attack a prop if it has 3 other props within 8 hammer units of it.
DarthKiller 28 Mar @ 11:26am 
Well if some of the recommendations are not proper you can always try and add a blacklist or whitelist of props to attack. Although that would not work that well for custom props it will atleast allow certain props to be ignored. You could also try and check if the Prop Entity:GetCollisionBounds returns a significantly large enough object to be considered a path hindrance. Although you have to figure out a sweet spot there aswell.
CJScraft 28 Mar @ 4:58am 
i think its cute, sometimes antlions are trying to break in and mercilessly slaughter entire groups of players... and other times they are playing football with a barrel.
Geisteskrankenchan 28 Mar @ 2:32am 
I see, finding a balance is indeed difficult. I was playing on cs_assault and NPCs explicitly targeted traffic cones for some reason
w.black57  [author] 28 Mar @ 2:21am 
@Geisteskrankenchan
Then again the npcs can easily be blocked off when the player decides to place a map-made prop in a hallway.

Kinda gave up on trying, been testing here and there trying algorithms so that they will still reliably attack barricade and become relentless. While ignoring loose props

If I set it up for them to ignore loose props, they tend to ignore the barricade more often.

If I set up for them to detect barricades better, this current issue happens. Id rather keep my functionality of the mod, than not having it at all.

The way this works is that they constantly check (0.5sec) for props in front of them the check hits two times, it will mark it as a barricade. (They tend to move away from the barricade if i add too much check hits)

If anyone can suggest more ways for barricade detection, im listening :moustacheva: :espresso:
Geisteskrankenchan 28 Mar @ 2:09am 
Maybe it'd be more reliable if they targeted only props with owners/not spawned by maps? They hit map props way too often
Sans 27 Mar @ 2:56pm 
Zombie Survival vibes starting to kick in:headcrab:
GDSK09 27 Mar @ 9:16am 
this already a thing in the game tho
w.black57  [author] 27 Mar @ 8:22am 
@WizardPilot7515

Im Sorry but I forgot. I was just randomly browsing dupes in the menu until i found barricade haha:SaffronFacepalm: