Source Code -- Rip out guts from people by melee'ing them
-- Made by yurkapotam
gutrip = {}
gutrip.melees = {
[50] = true,
[69] = true,
[74] = true,
[78] = true,
[85] = true
}
addhook("hit","gutrip.onmelee")
function gutrip.onmelee(victim,damager,weapon,health,armor,raw,object)
if gutrip.melees[weapon] == true then
if player(victim,"team") ~= player(damager,"team") or game("sv_gamemode") == "1" or game("sv_friendlyfire") == "1" then
parse("spawnitem 86 "..player(victim,"tilex").." "..player(victim,"tiley"))
parse("sv_sound2 "..damager.." player/die3.wav")
parse("sv_sound2 "..victim.." player/die3.wav")
end
end
end