Garry's Mod

Garry's Mod

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