Skip to content

Instantly share code, notes, and snippets.

@x0rnn
Created December 18, 2022 13:39
Show Gist options
  • Save x0rnn/57b446accde9509eae8e865f22d500eb to your computer and use it in GitHub Desktop.
Save x0rnn/57b446accde9509eae8e865f22d500eb to your computer and use it in GitHub Desktop.
-- mortar radius
function et_Damage(target, attacker, damage, damageFlags, meansOfDeath)
if (meansOfDeath ~= 52 and meansOfDeath ~= 63) or attacker > et.MAX_CLIENTS or target > et.MAX_CLIENTS then
return 0
end
if damage < 190 then -- around half from max
return 1
else
et.G_Damage(target, attacker, attacker, damage, 4, 0)
end
return 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment