Login to ZARP





View BBCode Back »

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

You are indeed correct

BBCode


Time to create page: 0.070 seconds

200 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
10/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
0/32
Online
Connect to server View Gametracker Surf
3/32
Online
Connect to server View Gametracker Prop Hunt
0/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
187/964
Online
Top