Bug fixes post closed-beta

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

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

@ -29,6 +29,7 @@ Quantum.Effect.Create( "equip_potatoe", {
pl.runtimeEffect_timerActive_equip_potatoe = false
end,
runtimefunc = function( pl )
if( IsValid( pl ) ) then
if( !pl.runtimeEffect_timerActive_equip_potatoe ) then
pl.runtimeEffect_timerActive_equip_potatoe = true
timer.Simple( 1, function()
@ -36,6 +37,7 @@ Quantum.Effect.Create( "equip_potatoe", {
pl.runtimeEffect_timerActive_equip_potatoe = false
end)
end
end
end,
stopfunc = function( pl )
pl:SetMaxHealth( math.Clamp( pl:GetMaxHealth() - 100, 1, pl:GetMaxHealth() ) )

Loading…
Cancel
Save