Garry's Mod

Garry's Mod

962 ratings
Fake hits fix
2
4
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
2.613 KB
8 Aug, 2021 @ 5:59pm
3 Oct, 2024 @ 5:42pm
11 Change Notes ( view )

Subscribe to download
Fake hits fix

In 1 collection by Redox
CFC TEST
87 items
Description
Now supports players & npcs!
This addon aims to fix "fake hits" / hitreg feel, whenever a player shoots another player or npc. This can cause the attacker to see fake blood particles while the player that's getting shot at receives no damage at all.

The addon does this through server siding most of the effect, making it only trigger when a player actually takes damage.

Github Link [github.com]
121 Comments
Lombaxtard 29 Apr @ 12:27pm 
Scratch that, the effect didn't persist after a game restart. Changing
"if not ent:IsNPC() then return end"
to
"if not ent:IsNPC() or not ent:IsRagdoll() then return end"
in the "OnEntityCreated" hook worked for sure though. I made sure to re-test again to be definitive. It seems that before that the script failed to initialize somehow and I couldn't tell if fake hits were happening or not
Lombaxtard 29 Apr @ 10:36am 
But they do. I added IsRagdoll as a condition and blood splatter system worked immediately
Redox  [author] 29 Apr @ 10:09am 
it checks if the entity is a player, npc or nextbot under that
ragdolls wont pass though that
Lombaxtard 29 Apr @ 9:38am 
@Name's Joystick; Redox
To make it compatible with Enhanced Blood Splatter System is literally a 2 second fix, just replace the line
"if ent.IgnoreFakeHitFix then return end"
with the line
"if ent.IgnoreFakeHitFix or ent.IsRagdoll then return end".

All this damage logic is not needed on ragdolls anyway since by the default shooting them doesn't spawn any particles, and no need to account for fake hits of Enhanced Blood Splatter System because that addon already has prediction built in
Redox  [author] 11 Feb @ 3:44am 
this probably wont be needed if you use a clientside hitreg addon. this is basically just as simple as is while clientside hitreg addons redo the entire way hitregistration is done
Vincent 10 Feb @ 2:24pm 
does this addon conflict with leyhitreg?
https://sp.zhabite.com/sharedfiles/filedetails/?id=3421440369
Biggest Boss [Knockout] 15 Jun, 2024 @ 11:31am 
keep in mind this may not work with blood mods like fda b
can'taloupe 19 Jan, 2024 @ 9:44am 
Causes particles that appear when zombies are cut in half to be missing
Joystick 30 Sep, 2023 @ 11:24am 
How does it conflict? It doesnt allow that other mod to spawn blood splatters because this mod double-checks if hit was made
143 ways to lose urself 30 Sep, 2023 @ 6:33am 
Ага