Added logging to the damage stuff

master
AlmTech 5 years ago
parent 26e72173c6
commit f6543260e1
  1. 3
      gamemode/core/server/sv_player_damage.lua

@ -17,10 +17,11 @@ local damagescales = {
function GM:ScalePlayerDamage( pl, hitgroup, dmginfo ) -- This is used for getting shot etc function GM:ScalePlayerDamage( pl, hitgroup, dmginfo ) -- This is used for getting shot etc
if( damagescales[hitgroup] ~= nil ) then dmginfo:ScaleDamage( damagescales[hitgroup] ) end if( damagescales[hitgroup] ~= nil ) then dmginfo:ScaleDamage( damagescales[hitgroup] ) end
Quantum.Debug( tostring(pl) .. " got damaged (" .. tostring(hitgroup) .. " : " .. tostring(dmginfo) ) Quantum.Debug( tostring(pl) .. " got damaged (" .. tostring(hitgroup) .. " : " .. tostring(dmginfo) .. " )" )
end end
function GM:GetFallDamage( pl, vel ) function GM:GetFallDamage( pl, vel )
Quantum.Debug( tostring(pl) .. " got damaged ( Fall Damage : " .. tostring( math.Round( vel / 8 ) ) .. " )" )
return vel / 8 -- Makes the player take more "realistic" fall damage return vel / 8 -- Makes the player take more "realistic" fall damage
end end

Loading…
Cancel
Save