css 'dink' sfx
This commit is contained in:
parent
daa8e3f5ed
commit
e24ac09c76
8
css_bhit_helmet/lua/autorun/server/css_bhit_helmet.lua
Normal file
8
css_bhit_helmet/lua/autorun/server/css_bhit_helmet.lua
Normal 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)
|
Loading…
Reference in New Issue
Block a user