Garry's Mod

Garry's Mod

469 ratings
NPC Prop Attacking & Breaching
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
19.131 KB
22 Mar @ 12:35am
7 Apr @ 6:17am
5 Change Notes ( view )

Subscribe to download
NPC Prop Attacking & Breaching

In 1 collection by w.black57
WeMods
18 items
Description
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 Simple 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 some doors
- Command console: wblnhp_enablehatepropbreaching (1 by default) to enable/disable prop breaching

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?
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 haha


Highly Recommended with NPC No Collide Each Other!


Other Recommended Mods
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
noob_dev2323 - Simple 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

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?