Garry's Mod

Garry's Mod

NPC Avoid Player`s Crosshair
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 ?
matthewwwww 5 Apr @ 1:12am 
and that's not a bad thing if it does btw, just asking
matthewwwww 5 Apr @ 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
wut 4 Apr @ 11:02am 
Make them take cover more on underfire
TombFoolery 30 Mar @ 1:40am 
does it work okay in multiplayer?
SparTanLock206 11 Feb @ 12:00pm 
thanks bro, the errors no longer appear
Solo 11 Feb @ 10:13am 
Thanks a lot
XDforeth  [author] 11 Feb @ 5:25am 
@Solo fixed.
Solo 11 Feb @ 5:08am 
it worked without errors before you updated your addon
Solo 11 Feb @ 5:04am 
lua/autorun/ser ver/napc _s.lua:345: attempt to call method TsinViewCone' (a nil value)
1 NPCS_RUN_SHOOT - lua/autorun/server/napc_s.lua:345
2 NAPC _Advanced_Behaviours - lua/autorun/server/napc_s. lua:695
3 NPCList - lua/autorun/server/napc_s.lua: 719
4 v- lua/autorun/server|napc_s.lua:767
5 unknown - lua/indludes/modules/hook.lua:96
Solo 11 Feb @ 5:04am 
lua/autorun/server/napc_s.lua:358: attempt to call method 'IsinViewCone' (a nil value)
1 NAPC_Combine_NO_FEAR - lua/autorun/server/napc_s. lua:358
2 NAPC_ Advanced Behaviours - lua/autorun/server/napc_s.lua:691
3 NPCList - lua[autorun/server/nape_g.lua:743
4 v - lua/autorun|server/naps_s.lua:767
5 unknown - luafincludes/modules/hook.lua:96
Solo 11 Feb @ 5:04am 
Lua errors:
lua/autorun/server/napc_s.lua:3B3; attempt to call method "IsInViewCone' (a nil value)
1 NAPC_BetterShotgunner - lua/autorun/server|naps_s.lua:3B3
2 NAPC_Advanced_Behaviours - lua/autorun|server/napc_g.lua:696
3 NPCList - lua/autorun/server/naps_s.lua:719
4 v- lua/autorun server naps_s lua:767
5 unknonn-lua/includes/modules/hook. lua:96
XDforeth  [author] 10 Feb @ 7:45pm 
@SparTanLock206
Copy your lua errors to this comment section, and I will check them out.
SparTanLock206 10 Feb @ 10:58am 
idk why, but for me is creating a lot of lua errors...
kr 4 Feb @ 6:20pm 
does this work on hl2 npcs?
XDforeth  [author] 19 Jan @ 7:37pm 
yeah😎
dirtydemps 19 Jan @ 3:57pm 
we heard you the first time when you said only works on hl2 npcs
Graff 16 Jan @ 5:24pm 
this goes absolutely insane when paired with sped up combine animations they start strafing like scout mains
XDforeth  [author] 10 Jan @ 8:17pm 
Happy New Year to you, too :steammocking:
brandonewing25 10 Jan @ 12:32pm 
so after turning off Enable Better Shotgunners and Enable NPCs Not Flinch that stopped sched_run_random from happening thx and sorry about all the hassle and talking enjoy your new year
XDforeth  [author] 10 Jan @ 2:17am 
@brandonewing25

Then turn off "Enable Better Shotgunners" and "Enable NPCs Not Flinch" too.
After you turn off all the options that I have mentioned, NAPC can be proved to have nothing to do with sched_run_random.
brandonewing25 9 Jan @ 10:27pm 
i need this setting on so the rest of the mod works Enable NAPC
but they have run random with just Enable NAPC on
i have these setting off
Enable NAPC on ANPlus
Enable NAPC on Combine
Enable NAPC on Metropolice
Enable NAPC on Citizen
Enable NPCs Move Often

and they still run random
XDforeth  [author] 9 Jan @ 8:49pm 
@brandonewing25

1、Disable these options so that they do not have sched_run_random any more.
"Enable NPCs Move Often" / "Enable NAPC on Citizen" / "Enable NAPC on Metropolice" / "Enable NAPC on Metropolice".

2、Without sched_run_random, it is hard to force NPCs to move and avoid player's crosshair.
If you need an AI addon that makes NPCs do more tactical behaviors in a combat, you should try F.E.A.R. AI instead of this one.
brandonewing25 9 Jan @ 8:34am 
also why do the combine sched_run_random can you remove that or make it a toggle cause that hurts the combines effectiveness in combat plz and thx

if you wanna see do this
step 1 do sv_cheats 1
step 2 developer 1
step 3 spawn combine and make em fight something
step 4 put ent_text npc_combine_s into the console

and youll see they do sched_run_random in the schd: line

i watch the combine move into the open or go into cover just to get schedule run random and die,
most of the time without your mod they perform better cause they dont do schedule run random but i want your settings but you have schedule run random,
if you could make a toggle or remove schedule run random that would improve them plz and thx
brandonewing25 8 Jan @ 6:30pm 
can you make it like a interval timer? 1 sec up to 10 sec or something so the combine will try to shoot ar2 combine balls and throw grenades every 1 or what ever number we set or a scale of 1sec up to 10 sec
XDforeth  [author] 8 Jan @ 1:58am 
@brandonewing25
How often? I worry these combine soldiers may be too IMBA if I do so.
brandonewing25 7 Jan @ 11:56pm 
if ya can, can ya add a setting for the combine to shoot ar2 combine balls and throw grenades more often
brandonewing25 5 Jan @ 5:51pm 
thx for the citizen patrol fix
brandonewing25 4 Jan @ 10:11pm 
so you have setting to enable napc on combine, metro and citizen
but the patrol dont work for the citizen can you add that plz and thx
XDforeth  [author] 24 Dec, 2024 @ 6:15am 
Update:
1.several new functions and better performance
2.one option to decide whether NAPC should work on NPCs from ANPlus

Let me know if new issues get found.
brandonewing25 22 Nov, 2024 @ 6:15pm 
oh thx
XDforeth  [author] 22 Nov, 2024 @ 6:02pm 
brandonewing25 22 Nov, 2024 @ 12:38pm 
can you make the combine with smg shoot smg grenade?
like in the realistic combine ai mod
plz and thx
evil moth 18 Nov, 2024 @ 1:42pm 
and i thought HL2 combine shotgunners on hard were a pain in the ass
(^^^) Xeno 18 Nov, 2024 @ 12:37am 
My bad I thought it's just a easy port haha
XDforeth  [author] 18 Nov, 2024 @ 12:00am 
@Xeno :]

dude, HL2 is not able to read LUA like Gmod, which means it is impossible for an addon with LUA code to work on HL2 normally.
(^^^) Xeno 17 Nov, 2024 @ 11:19pm 
Could you put this to the HL2 workshop
Tums® 15 Oct, 2024 @ 8:15pm 
Does this work on friendly targets? I think that would be nice since sometimes characters run right in front of me while I shoot.
negreaflorin687 14 Oct, 2024 @ 6:26am 
using this with hl2 weapon buff and inpc makes shotgunners like 10x more scary
Levi Animator™ 14 Sep, 2024 @ 9:39am 
It's weird because i have no other mod that changes the behaviour of NPCs...
XDforeth  [author] 14 Sep, 2024 @ 9:34am 
@Levi Animator
This problem sounds really interesting. But I am 100% sure that there is NOT any feature, which can change NPCs faction or change the relation among NPCs and players, in this addon. Check out other addons that you have installed.