function DPSTest( damage, activator, caller ) print( activator, activator:IsObject(), activator.m_hBuilder ) if activator:IsObject() then activator = activator.m_hBuilder end print( activator ) if not activator.DPSTimeout then activator.DPSTimeout = CurTime() + 1 end if not activator.Damage then activator.Damage = 0 end if activator.DPSTimeout > CurTime() then activator.Damage = activator.Damage + damage end end function OnGameTick() for _, player in pairs( ents.GetAllPlayers() ) do if player:IsRealPlayer() then if not player.DPSTimeout then player.DPSTimeout = CurTime() + 1 end if not player.Damage then player.Damage = 0 end if player.DPSTimeout <= CurTime() then util.PrintToChat( player, "DPS: " .. tostring( player.Damage ) ) player.Damage = 0 player.DPSTimeout = CurTime() + 1 end end end if PlayerLogic then PlayerLogic() --CleaverRechargeLogic() ScreenText() AdrenalineJunkie() RechargeBattery() ExplosiveGroundSlam() ApplyBotEffects() MineLayer() end end