Garry's Mod

Garry's Mod

538 ratings
NPC Prop Attacking & Breaching
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
23.659 KB
22 Mar @ 12:35am
8 Sep @ 10:58pm
10 Change Notes ( view )

Subscribe to download
NPC Prop Attacking & Breaching

In 2 collections by w.black57
WeMods
25 items
Pseudo-Zombie Survival PvE
13 items
Description
Update as of 08/30/2025

- Improved prop detection
- added new console command wblnhp_detectonlystaticprops (1 by default), in which it detects only welded and frozen props.
- They are now more aggressive in attacking props so I suggest keeping wblnhp_detectonlystaticprops to 1.
- The new console command will now prevent npcs from randomly attacking loose props

*****************************************************************************

You think freezing props around you will keep you safe from npcs? Think again!

About the Mod
A Simple mod that will make npcs attack props (until it is destroyed) if it is in their way of their actual target. So barricading against npcs can actually be a thing! (Zombie Survival experience in Sandbox :3). Uses Simple Prop Damage - Ultimate Destruction and Destructable Doors

Features
- NPCs will detect props in their way and shoot it, if it is in their way. (If they don't have any other path to you)
- Should work on most HL2 Basic NPCs not just zombies
- Barricade by freezing, weld, nail props and see them try to breach through!
- Should work on doors
- wblnhp_enablehatepropbreaching (1 by default) to enable/disable prop breaching
- wblnhp_detectdoors - for door detection
- wblnhp_detectonlystaticprops -- for detection of frozen/welded props

Does it really need simple prop damage/breakable doors mod?
- Yes and No
- My Mod simply tells npcs to attack the props, and if props dont break it will make them attack it forever.
- So yes if you want all props to break and not make the npc attack a single prop forever.
- And No if by default the props theyll be attacking is already destructible. Or if you want them to play soccer with an indestructible prop, I wouldnt stop you hehe.

Does it work with Combine, Resistance, Antlions too?
- Yes should work on them too, other npc bases might not work but i might add compatibility

Why are they attacking loose props?
- I highly suggest keeping wblnhp_detectonlystaticprops to 1 so they will only target frozen/welded props.
- unless you want them to attack the lose props for fun

Highly Recommended with NPC No Collide Each Other!


Other Recommended Mods
Zombie Survival Weapons & Melee for Sandbox (Highly recommended, the barricade system is fun to play with!)
Barricade SWEP
Sandbox Notoriety | Wanted System
Sandbox Weapon Shop and Money System
Simple Horde Mode for Sandbox
NPC Attack Point
And maybe try spawning in other people's duplicates and stay inside. Now you can really test if they're dupes are actually a safe shelter. :P


Like and Favorite if you loved it! ^w^



Check out my other mods!

Donation would be appreciated for my work ^_^

Credits:
xyzzy - Simple Prop Damage - Ultimate Destruction
Exhor - Destructable Doors
ChatGPT - Mod Developing assistant


Have fun Surviving the fights!

tags: prop_physics, breach, attack, hate, survival, barricade, fortify, fortress, duplicate, dupe, zs, zombie survival

112 Comments
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"