Clarky wrote:
Sorle wrote:
Clarky wrote:
DEADMONSTOR wrote:
Dezmond wrote:
DEADMONSTOR wrote:
Or just turn off fall damage for deaths
Do you know any other way that this can be sorted as it may not be as simple as that?
Turning off fall damage is so easy
function ReduceFallDamage(ent, inflictor, attacker, amount, dmginfo)
if ent:IsPlayer() and dmginfo:IsFallDamage() and (ent:Team() or 0) == 2 then
dmginfo:SetDamage(0)
end
end
hook.Add("EntityTakeDamage", "RemoveFallDamage", ReduceFallDamage)
Even though I have no fucking clue on how to lua, don't you want to code it so it only applies to the Death team and not the runners?
I'm pretty sure it is specified here:
and (ent:Team() or 0) == 2 then
You're probably right, I am retard
Nice grammar Clarky <3 didn't you mean Retarded? <3