Bug fixes post closed-beta

master
AlmTech Software 5 years ago
parent fe9c70c609
commit 16c9e5dab2
  1. 4
      gamemode/engine/core/server/sv_player_damage.lua
  2. 14
      gamemode/settings/sh_effects.lua

@ -63,7 +63,9 @@ hook.Add( "EntityTakeDamage", "Quantum_PlayerDamage_SoundEffect", function( pl,
end)
timer.Simple( 60, function()
timer.Remove( "Quantum_PlayerHurtSounds_" .. tostring( pl:SteamID64() ) ) -- remove the timer for the player
if( IsValid( pl ) ) then
timer.Remove( "Quantum_PlayerHurtSounds_" .. tostring( pl:SteamID64() ) ) -- remove the timer for the player
end
end)
end

@ -29,12 +29,14 @@ Quantum.Effect.Create( "equip_potatoe", {
pl.runtimeEffect_timerActive_equip_potatoe = false
end,
runtimefunc = function( pl )
if( !pl.runtimeEffect_timerActive_equip_potatoe ) then
pl.runtimeEffect_timerActive_equip_potatoe = true
timer.Simple( 1, function()
pl:SetHealth( math.Clamp( pl:Health() + 5, 1, pl:GetMaxHealth() ) )
pl.runtimeEffect_timerActive_equip_potatoe = false
end)
if( IsValid( pl ) ) then
if( !pl.runtimeEffect_timerActive_equip_potatoe ) then
pl.runtimeEffect_timerActive_equip_potatoe = true
timer.Simple( 1, function()
pl:SetHealth( math.Clamp( pl:Health() + 5, 1, pl:GetMaxHealth() ) )
pl.runtimeEffect_timerActive_equip_potatoe = false
end)
end
end
end,
stopfunc = function( pl )

Loading…
Cancel
Save