Login to ZARP





  • Page:
  • 1
  • 2

TOPIC: [Deathrun Suggestion] Disable Realistic Damage

[Deathrun Suggestion] Disable Realistic Damage 8 years 1 month 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.
View BBCode

[Deathrun Suggestion] Disable Realistic Damage 8 years 1 month 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.
View BBCode

[Deathrun Suggestion] Disable Realistic Damage 8 years 1 month 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.
View BBCode
  • Page:
  • 1
  • 2
Moderators: MadMagic, Joshua, Kanna.

Time to create page: 0.135 seconds

194 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
8/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
183/964
Online
Top