• TeamBased damage affecting FallDamage
    0 replies, posted
So after a day of me figuring out about Team based damage, meaning for ex: if Potatoes are team 1 team 1 will not hurt team 2 ( Team 2 being DM ) so it took me a lot of tries and I've finally managed to remove damage from Potatoes to hurt DM since DM is minigame, and DM people cannot hurt Potatoes but since the damage has been removed if Potatoes are attacking DM or so, no teams take fall damage. Le Code: [QUOTE] function GM:PlayerShouldTakeDamage( victim, ply ) if ply:IsPlayer() and victim:IsPlayer() then if ply:Team() == 4 and victim:Team() == 1 or victim:Team() == 2 or victim:Team() == 3 then return false end if ply:Team() == 1 or ply:Team() == 2 or ply:Team() == 3 and victim:Team() == 4 then return false else return true end end end [/QUOTE]
Sorry, you need to Log In to post a reply to this thread.