Garry's Mod

Garry's Mod

671 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
42.299 KB
5 Apr, 2024 @ 9:14pm
2 Jun @ 6:10am
35 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://steamhost.cn/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
29 May, 2024 @ 7:31pm
DISCOVERED BUGS
Snekenjoyer6
2
11 Feb @ 7:44am
Addon Compatibility
Commander Soldier
1
7 Aug, 2024 @ 2:30pm
NPCs MOVE DURING THEIR FIRE ANIMATION
Dr. Thrax
185 Comments
Glass of Lime Soda 18 Jun @ 12:03pm 
ok, just had to untick to reloading thing
Glass of Lime Soda 18 Jun @ 11:56am 
For whatever reason, this addon combined with the remastered realistic combine AI addon seems to cause interesting things to happen, like infinite reloading.

Even with the NAPC mod disabled for the combine, I guess it still affects them.
XDforeth  [author] 13 May @ 4:40am 
Some option names will be changed in the next update, in order to avoid such misunderstandings
XDforeth  [author] 13 May @ 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 13 May @ 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
HollyBlox (A Holly Brocoli) 16 Apr @ 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 10 Apr @ 4:36pm 
PORT THIS TO FUCKING HALF LIFE 2
Rixinas 10 Apr @ 4:35pm 
PORT THIS TO FUCKING HALF LIFE 2
matthewwwww 5 Apr @ 9:42am 
it'd be nice but you don't have to
XDforeth  [author] 5 Apr @ 1:53am 
@matthewwwww
Yes, I made it to be an internal function. Do you think it necessary to create an option for this function ?