Garry's Mod

Garry's Mod

NPC Avoid Player`s Crosshair
186 kommentarer
Gam3r 28. aug. kl. 19:46 
pls fix npc not death instant when map script
Glass of Lime Soda 18. juni kl. 12:03 
ok, just had to untick to reloading thing
Glass of Lime Soda 18. juni kl. 11:56 
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  [ophavsmand] 13. maj kl. 4:40 
Some option names will be changed in the next update, in order to avoid such misunderstandings
XDforeth  [ophavsmand] 13. maj kl. 4:34 
@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. maj kl. 1:05 
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? 16. apr. kl. 13:40 
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. kl. 16:36 
PORT THIS TO FUCKING HALF LIFE 2
Rixinas 10. apr. kl. 16:35 
PORT THIS TO FUCKING HALF LIFE 2
matthewwwww 5. apr. kl. 9:42 
it'd be nice but you don't have to
XDforeth  [ophavsmand] 5. apr. kl. 1:53 
@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. kl. 1:12 
and that's not a bad thing if it does btw, just asking
matthewwwww 5. apr. kl. 1:12 
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. kl. 11:02 
Make them take cover more on underfire
RatLady 30. mar. kl. 1:40 
does it work okay in multiplayer?
SparTanLock206 11. feb. kl. 12:00 
thanks bro, the errors no longer appear
Solo 11. feb. kl. 10:13 
Thanks a lot
XDforeth  [ophavsmand] 11. feb. kl. 5:25 
@Solo fixed.
Solo 11. feb. kl. 5:08 
it worked without errors before you updated your addon
Solo 11. feb. kl. 5:04 
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. kl. 5:04 
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. kl. 5:04 
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  [ophavsmand] 10. feb. kl. 19:45 
@SparTanLock206
Copy your lua errors to this comment section, and I will check them out.
SparTanLock206 10. feb. kl. 10:58 
idk why, but for me is creating a lot of lua errors...
chickenburger 4. feb. kl. 18:20 
does this work on hl2 npcs?
XDforeth  [ophavsmand] 19. jan. kl. 19:37 
yeah😎
dirtydemps 19. jan. kl. 15:57 
we heard you the first time when you said only works on hl2 npcs
Graff 16. jan. kl. 17:24 
this goes absolutely insane when paired with sped up combine animations they start strafing like scout mains
XDforeth  [ophavsmand] 10. jan. kl. 20:17 
Happy New Year to you, too :steammocking:
brandonewing25 10. jan. kl. 12:32 
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  [ophavsmand] 10. jan. kl. 2:17 
@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. kl. 22:27 
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  [ophavsmand] 9. jan. kl. 20:49 
@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. kl. 8:34 
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. kl. 18:30 
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  [ophavsmand] 8. jan. kl. 1:58 
@brandonewing25
How often? I worry these combine soldiers may be too IMBA if I do so.
brandonewing25 7. jan. kl. 23:56 
if ya can, can ya add a setting for the combine to shoot ar2 combine balls and throw grenades more often
brandonewing25 5. jan. kl. 17:51 
thx for the citizen patrol fix
brandonewing25 4. jan. kl. 22:11 
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  [ophavsmand] 24. dec. 2024 kl. 6:15 
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 kl. 18:15 
oh thx
XDforeth  [ophavsmand] 22. nov. 2024 kl. 18:02 
brandonewing25 22. nov. 2024 kl. 12:38 
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 kl. 13:42 
and i thought HL2 combine shotgunners on hard were a pain in the ass
(^^^) Xeno 18. nov. 2024 kl. 0:37 
My bad I thought it's just a easy port haha
XDforeth  [ophavsmand] 18. nov. 2024 kl. 0:00 
@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 kl. 23:19 
Could you put this to the HL2 workshop
Hi 15. okt. 2024 kl. 20:15 
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. okt. 2024 kl. 6:26 
using this with hl2 weapon buff and inpc makes shotgunners like 10x more scary
Levi Animator™ 14. sep. 2024 kl. 9:39 
It's weird because i have no other mod that changes the behaviour of NPCs...