Garry's Mod

Garry's Mod

647 ratings
NPC Avoid Player`s Crosshair
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Realism
File Size
Posted
Updated
40.489 KB
Apr 5, 2024 @ 9:14pm
Apr 3 @ 5:30am
34 Change Notes ( view )

Subscribe to download
NPC Avoid Player`s Crosshair

Description
ONLY WORKS ON HL2 NPCs
ONLY WORKS ON HL2 NPCs
ONLY WORKS ON HL2 NPCs



Warning: This addon may make the shotgunners extremely dangerous for some reason. They would sometimes shoot really quickly when your crosshair is on them. Kill them as soon as you can.

NPCs will try to avoid your crosshair only when they have found you and considered you as their target enemy.
Do not use any other addons that have the same functions as this. I do not think I have the ability to fix the conflict with other addons.
Honestly, I will not deny that I did get the inspiration from F.E.A.R. AI for this addon. Moreover, It took me a whole afternoon to learn simple LUA and then look up the GMOD wiki to help me finish it.
I made this addon for those who are keen on HL2 campaigns, just like me. Wish you have fun with it : )

I may consider adding more useful or interesting functions in the future, although they will likely be experimental.



Try this to make the rebels with pistols have better "shooting while running" behaviors:
https://steamcommunity.com/sharedfiles/filedetails/?id=3063666429

DO NOT ask me to make it effective on the other NPCs from workshop.
YOU ARE NOT ALLOWED TO re-upload it.
Popular Discussions View All (3)
6
May 29, 2024 @ 7:31pm
DISCOVERED BUGS
Snekenjoyer6
2
Feb 11 @ 7:44am
Addon Compatibility
Commander Soldier
1
Aug 7, 2024 @ 2:30pm
NPCs MOVE DURING THEIR FIRE ANIMATION
Dr. Thrax
183 Comments
XDforeth  [author] May 13 @ 4:40am 
Some option names will be changed in the next update, in order to avoid such misunderstandings
XDforeth  [author] May 13 @ 4:34am 
@Electric Kool-Aid

NAPC is a name of this addon while "Enable NAPC" is an option that decides if this addon should work.
You can just turn off the three options like "Enable NAPC on XXXXXX" to ban the feature that makes NPCs avoid crosshair. Other options will still work as usual.
Electric Kool-Aid May 13 @ 1:05am 
could there be an on/off toggle for the NPCs avoiding your crosshair while keeping all the other features on? this feature alone (from what I'm aware) is very resource intensive
A Holly Brocoli Apr 16 @ 1:40pm 
Gmod runs on lua, Half-Life 2 does not. This cannot be ported to Half-life 2 without a rewrite to Vscript and I'm not even sure if Half-Life 2 supports Vscript
Ender Apr 10 @ 4:36pm 
PORT THIS TO FUCKING HALF LIFE 2
Rixinas Apr 10 @ 4:35pm 
PORT THIS TO FUCKING HALF LIFE 2
matthewwwww Apr 5 @ 9:42am 
it'd be nice but you don't have to
XDforeth  [author] Apr 5 @ 1:53am 
@matthewwwww
Yes, I made it to be an internal function. Do you think it necessary to create an option for this function ?
matthewwwww Apr 5 @ 1:12am 
and that's not a bad thing if it does btw, just asking
matthewwwww Apr 5 @ 1:12am 
does this make npc's run away from grenades? for some reason when i downloaded this my npc's are much more careful and run from grenades