Garry's Mod

Garry's Mod

NPC Prop Attacking & Breaching
113 Comments
Andywinslow 51 minutes ago 
Question, How to make the hl2 rebels npc to not attack prop. am trying to do a zombie survival for sandbox and they keep shooting the prop the only ones i want to attack the prop this the zombies?
Remnλnt 8 Oct @ 5:49am 
can you add an option to make it only work with zombies???
pleb 29 Sep @ 8:23am 
excuse me metrocop please stop shooting the stupid box and shoot me, please? i mean... i knew the hl2 NPC's are stupid but i didn't think they were THIS dumb.
hntrrandal 26 Sep @ 9:04pm 
i used a stealth mod to hide from the combine around the never lose hope hospital and there was a mass shooting inside because of some galss panel
baccabab 26 Sep @ 9:30am 
Ok
w.black57  [author] 26 Sep @ 9:25am 
@baccabab

I've had more complaints attempting to do that. That was my first iteration and it really didn't work out properly. As of now this is the best setup i could do. You can decide to disable wblnhp_detectonlystaticprops to make them any prop in their way.
baccabab 26 Sep @ 9:09am 
Btw is it possible to just make that so they will breach only if something in their way? I mean they are just trying to find props for now, but u can make that so they will attack props if its on their way only. I mean if npc is walking, but something dont let him to go, he check if this is a prop_door_rotatiing or prop_physics and attack?
baccabab 24 Sep @ 8:31am 
ok
w.black57  [author] 24 Sep @ 7:29am 
I forgot to edit the desc
w.black57  [author] 24 Sep @ 7:29am 
@baccabab

wblnhp_detectdoors

Is already present
baccabab 24 Sep @ 7:24am 
It would be nice if u will add console command "wblnhp_attackdoors"
baccabab 24 Sep @ 7:22am 
wblnhp_detectonlystaticprops 1*
baccabab 24 Sep @ 7:22am 
This mod makes npcs just attack every props and doors. They dont react to enemies or anything else. I also used this command wblnhp_enablehatepropbreaching 1
So now they are attacking doors.
baccabab 24 Sep @ 1:16am 
They dont react to the anything else
w.black57  [author] 10 Sep @ 2:28pm 
@Gorigo

Ill see if I have time to check it out.
Gorigo 10 Sep @ 10:46am 
sadly they dont attack glass on some maps they want to go through (like breakable glass with ai nodes so after glass breaks npc can actually go through) like this map https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3535570381&searchtext=cloak
Cpt Zaku ᴰᵘᵏᵉ 3 Sep @ 4:38am 
This is just what I needed, if there's anything I wished could've been added is a setting to allow which NPCs can attack props, I was confused as to why Rebels were shooting cover. It'd be cool if you could choose who does attack props and who don't.
w.black57  [author] 16 Aug @ 5:59pm 
@Guy

No problem! Added in the FAQ for others too. :happyfaye:
Guy 16 Aug @ 4:56pm 
OH thx
w.black57  [author] 16 Aug @ 4:22pm 
If you dont have simple prop damage:

Theyll keep attacking the prop. And since it never breaks, theyll never stop attacking it
w.black57  [author] 16 Aug @ 4:21pm 
@Guy

Actually it is not really needed to have that mod. I just say its needed so npc can actually break the prop. My mod simply tells npc to attack the props. And if the prop is destructible anyways, you dont need the simple prop damage
Guy 16 Aug @ 3:56pm 
is there one that goes with destructible prop replacement?
w.black57  [author] 16 Aug @ 3:52pm 
Yep
Guy 16 Aug @ 1:32pm 
does it need simple prop damage?
lmejia626 28 Jul @ 5:00pm 
i cant get it to work
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:
bertyzy 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:
Cheesey 17 May @ 7:18pm 
will this work with this? It seems like a great alternative to the prop damage. https://gtm.steamproxy.vip/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.