css 'dink' sfx

This commit is contained in:
edshot99 2024-08-18 23:39:37 -05:00
parent daa8e3f5ed
commit e24ac09c76

View File

@ -0,0 +1,8 @@
hook.Add("EntityTakeDamage", "edshot_css_bhit_helmet", function(target, dmg)
if target:IsPlayer() and dmg:IsBulletDamage() then
if (target:LastHitGroup() == HITGROUP_HEAD) then
target:EmitSound("player/bhit_helmet-1.wav")
end
end
end)