Login to ZARP
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [Deathrun Suggestion] Disable Realistic Damage

[Deathrun Suggestion] Disable Realistic Damage 7 years 1 week ago #555568

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
  • Kodi
  • Kodi's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP
  • Proud 2016 Memer
  • Posts: 3347
  • Thanks received: 519
  • Karma: 21



GG Onion!
The topic has been locked.

[Deathrun Suggestion] Disable Realistic Damage 7 years 1 week ago #555571

:accepted:
  • Pitt
  • Pitt's Avatar
  • Offline
  • User is blocked
  • ZARP VIP
  • Posts: 665
  • Thanks received: 270
  • Karma: 26
The topic has been locked.

[Deathrun Suggestion] Disable Realistic Damage 7 years 1 week ago #555886

Could this now be locked.
Thanks in advance.
  • Dezmond
  • Dezmond's Avatar
  • Offline
  • Senior Boarder
  • ZARP VIP
  • El Autismo
  • Posts: 768
  • Thanks received: 252
  • Karma: 16
The topic has been locked.
  • Page:
  • 1
  • 2
Moderators: MadMagic, Kanna.
Time to create page: 0.097 seconds

196 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
9/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
4/32
online
Connect to server View Gametracker Prop Hunt
1/42
online
Connect to server View Gametracker Sandbox
0/42
online
Connect to server Discord
182/786
online
Top