Garry's Mod

Garry's Mod

NPCMedkits [Rewritten]
60 Comments
nextmorgan 29 May, 2024 @ 5:48am 
oh ok. could you add that then?
The G-Man  [author] 29 May, 2024 @ 5:32am 
No
nextmorgan 29 May, 2024 @ 4:25am 
do npcs use suit battery also?
Random Freedom Stalker 15 Feb, 2024 @ 1:59am 
If only people could make more mods like this, that'd be amazing
5 Feb, 2024 @ 9:05pm 
nice
☀Σλάιβερ Βιρλιαν 15 Nov, 2023 @ 9:00am 
Battery suit?
confusedcombine 18 Sep, 2023 @ 8:24am 
the command that enables it doesnt work
:captainclown:
SomeStupidIdiot 1 Jun, 2023 @ 10:38am 
@confusedcombine you dont need to spawn anything, they use the normal hl2 health kits / health vials
clboom 24 Feb, 2023 @ 9:46pm 
Sometimes i dream about cheeseeeeeeeee....
confusedcombine 24 Nov, 2022 @ 5:37am 
how to spawn it
Watch 10 Nov, 2022 @ 1:01am 
finally time to die in half life 2 in follow freeman WITHOUT ANY MEDICS
ʞritzo 11 Sep, 2022 @ 12:56am 
now that the NPC actually properly use the medkits like players, NOW THEY NEED TO USE THE ARMOR CHIPS AND CHARGERS LIKE THE PLAYER DOES
Заморил деда 26 Aug, 2022 @ 2:00am 
yes it does work
The G-Man  [author] 23 Aug, 2022 @ 2:22pm 
The command for enabling chargers is "NPCMK_UseChargers 1", but honestly, I'm not sure if this mod even works anymore
Shadow 21 Aug, 2022 @ 4:02pm 
do they really use the health chargers? they only seem to run onto medkits only, is there a config on something to make it work?
Black Hat 20 Aug, 2022 @ 8:39pm 
does this include overwatch soldiers?
The G-Man  [author] 25 Feb, 2021 @ 5:57am 
PS. Your English is very nice
The G-Man  [author] 25 Feb, 2021 @ 5:49am 
The blacklist for npcs was on the todo list for a while, yeah. I will attempt to address your issues in the next update. The next update won't be very soon as i'm somewhat busy currently, but i'll try to do it within the next few months. Thanks for your feedback!
Mr Garfias 24 Feb, 2021 @ 9:40pm 
I hope you understand me, excuse my English, I still don't speak the language very well

P.S. It would be great if I added a list of the npcs that cannot be cured.
I say this because it is somewhat stupid and annoying that in, for example, zombie maps, when killing someone who was a doctor (Saber-aN's Headcrab Zombie Mod)
and this threw up a healtvial, immediately another zombie passing for healing.
I would like you to add a list or restriction of each npc and that it can be cured or not
since the system that only humans heal, leaves aside the combine and I want them to be able to heal, but not zombies or antlions.
Mr Garfias 24 Feb, 2021 @ 9:40pm 
Finally 3: and it is the fact that I want them to desperately run for some item of healing every time they get injured, leaving whatever they are doing to save their life, for example in battles or while chasing some npc or player.
Unfortunately, the npcs do not react to anything like the healtvidal or medkit until they are idle.
In the case of the loader, it completes the function that I mentioned before (leave what they are doing to recover) but as I mentioned in point 1, sometimes they just don't.
Mr Garfias 24 Feb, 2021 @ 9:40pm 
2: Sometimes the npcs don't take the medkits and they also don't recover with the health chargers.
This mainly happens when I have put a lot of npcs.
It is somewhat annoying that they, being very injured and having an item such as a healtvial or being near a charger
they don't use it.
Mr Garfias 24 Feb, 2021 @ 9:39pm 
1: The Lag
I have to admit that it is much lighter and better optimized than the 2019 version, but it does make the game a bit slow at times.
Mr Garfias 24 Feb, 2021 @ 9:39pm 
Well ... I find three main problems.
The G-Man  [author] 24 Feb, 2021 @ 7:05am 
Can you describe your issues in more detail?
Mr Garfias 23 Feb, 2021 @ 5:48pm 
I really like this addon, but it still has some issues, for example that sometimes the npcs just don't want to grab the medkit despite being injured and I wish they would run for the medkit while fighting, and they don't :(
Please upgrade this addon gem, the concept is great :)
The G-Man  [author] 30 May, 2020 @ 11:54am 
Hello everyone! I have rewritten the entire addon, so the bugs that existed, shouldn't anymore. Also optimization should be much better.
Потужнiй 18 Apr, 2020 @ 6:28am 
npcs can't pick up medkit
The G-Man  [author] 1 Mar, 2020 @ 1:33pm 
Sure just give credit
Delycan 28 Feb, 2020 @ 11:04pm 
I want to make food supplies for noc survivors to seek out and eat
The G-Man  [author] 28 Feb, 2020 @ 6:03am 
Depends
Delycan 27 Feb, 2020 @ 6:44pm 
Can i make an edit of this?
The G-Man  [author] 21 Nov, 2019 @ 5:13am 
I tried fixing it, but it seems i will have to do it later when i have more free time, sorry.
Farbott 3 Nov, 2019 @ 11:35am 
I found out what causes the problem! They try to continue fighting and use a medkit/health charger at the same time, probably causing the game to flood with two actions at once and bash the game with too much for it to chew at once.
Farbott 14 Oct, 2019 @ 11:27am 
I have no NPC ai changing addons, i was using default citizens/combine/zombies, it does not lag when they are injured, but it does when they are injured during a fight and trying to take a medkit. As long as they dont fight and try to heal, no lag happens.
The G-Man  [author] 14 Oct, 2019 @ 10:56am 
Apparently my addon passively takes like 40 FPS when someone is injured... thats pretty bad.
The G-Man  [author] 14 Oct, 2019 @ 10:53am 
I just checked and it seems to lag everytime someone gets shot (doesnt lag with the addon disabled). I will try to fix it.
The G-Man  [author] 14 Oct, 2019 @ 10:46am 
And does it lag while someone is injured, or does it lag everytime someone loses a bit of their health?
The G-Man  [author] 14 Oct, 2019 @ 10:44am 
Also what NPC's you were using and do you have any addons that may affect their AI?
The G-Man  [author] 14 Oct, 2019 @ 10:32am 
Does the lagging stop with the NPCMK_enabled 0? I will look into it
Farbott 4 Oct, 2019 @ 6:31pm 
I seem to have run into a problem though, on NPC_Lockdown, any time one gets injured in a firefight my game lags to hell until the fight stops. Is this due to them constantly looking for medkits and stations?
Farbott 4 Oct, 2019 @ 5:24pm 
I looked so long for this mod but i was typing the name in reversed!
Drunk Headcrab 25 Aug, 2019 @ 12:04pm 
Good work so far! I hope the blacklist feature comes soon (but do take your time).
The G-Man  [author] 21 Jul, 2019 @ 2:29pm 
Thanks guys
S. HITMAN 17 Jun, 2019 @ 8:40pm 
an actual coder on the gmod workshop, getting praise. I'm so proud of this community
Cheezbrgr 16 Jun, 2019 @ 11:10pm 
This is amazing.
Every single NPC can get medkits.
Tyranty 16 Jun, 2019 @ 10:50am 
You are holy...HOLY CHEESUS
Zach88889 14 Jun, 2019 @ 7:10pm 
Probably could make a table with all the classnames that you want to have pick up the medkits and then have a check for if the NPC's class is one of those in the table and the ones that aren't can't pick up medkits.
The G-Man  [author] 14 Jun, 2019 @ 12:08pm 
Perhaps I could add a blacklist. Though I'm going away tomorrow for some time and won't be able to support the mod for that while. I'll do something when I come back
Drunk Headcrab 13 Jun, 2019 @ 5:58pm 
Although technically not a bug, any NPC can take a medkit. This leads to silly stuff like zombies going for medkits. Can the system you use differentiate between different npc classes? Because I'd really like some sort of option to restrict medkits to citizens and combine soldiers.
The G-Man  [author] 13 Jun, 2019 @ 5:50pm 
Addon turned out to be very buggy, so please report any bugs you come across. Thanks.