Garry's Mod

Garry's Mod

636 ratings
NPC Overshooting
2
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
5.874 KB
27 Jun @ 1:53pm
2 Aug @ 5:57am
4 Change Notes ( view )

Subscribe to download
NPC Overshooting

In 1 collection by Scorp
Scorp's Addons
9 items
Description
Make NPCs shoot like they mean it.

Please check out my other addon "ReadyNPCs", imo it pairs well with this addon: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3504508595

About
This addon makes NPCs shoot at the wall their enemy went behind some time after losing eyes on them.

Commands
- nos_enabled 1: Whether the addon should be enabled
- nos_max_overshoot_time 2: Maximum amount of time (in seconds) the NPCs can shoot after losing sight of their enemy
- nos_overshoot_chance 70: 0-100 chance whether the NPC will shoot at the wall
- nos_transparency_check 1: Whether the addon should run a custom visibility check (may decrease performance)
- nos_overshoot_proficiency 1: 0-4 how accurate the NPC is when shooting through a wall
- nos_do_shoot_corpse 0: Whether NPCs should shoot at corpses, disabled by default because it's a bit buggy

Changelog
- Added corpse shooting
- Fixed shotgunners shooting too fast
- Fixed chances being flipped (70% was equivelant to 30%, oops)

Misc
Inspired by Ready Or Not.
Primarily made to function alongside a bullet penetration addon.
I recommend using this one: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2977096121

No banging walls. It is very strictly not allowed. You will be aggressively asked to leave the wall alone.
118 Comments
baccabab 4 Oct @ 10:31am 
NPC suppression mod
stellan 11 Sep @ 2:01pm 
@basil. shut up Clarissa is not real just stop there is no point of doing dumb stories
Gorigo 9 Sep @ 1:38pm 
idk but do they must shot breakable glass they want to trespass?
basil. 6 Sep @ 8:20pm 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life.
Spooky Grilled Cheese ✞ 5 Sep @ 1:12pm 
@师傅 its disabled on default. plus it says in the description it says its too buggy anyway.
师傅 5 Sep @ 12:57pm 
They don't seem to shoot at corpses? It seems like a bug.
ganzaliss 2 Sep @ 3:54pm 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life
Garry 1 Sep @ 3:23am 
@Scorp, okay, thanks for replying!
Scorp  [author] 31 Aug @ 9:07am 
@Garry As @Grilled Cheese said you need to disable nos_do_shoot_corpse. I had the feature coded but unreleased for a while because I saw it as too buggy to be worth what it does but some people asked so I implemented it as an optional feature.
It's meant to make enemies target your corpse once you die, however since Garry's Mod does not create server-side ragdolls for players I had to generate an invisible ragdoll to predict where your corpse would be.
If it causes issues for you it's best to just turn it off.
Spooky Grilled Cheese ✞ 30 Aug @ 2:50pm 
nah, it just says in description that the command is buggy, thats how i knew, and i think i tried to use it, but that bug happened, so i knew and didn't at the same time.