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) end)
timer.Simple( 60, function() 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)
end end

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

Loading…
Cancel
Save