function OnWaveInit() for _, player in pairs(ents.GetAllPlayers()) do player:RemoveAllCallbacks() end end function OnWaveSpawnBot(bot) bot:AddCallback(ON_DAMAGE_RECEIVED_PRE, function(_, damageinfo) if damageinfo.DamageCustom ~= TF_DMG_CUSTOM_BACKSTAB or damageinfo.Attacker:IsBot() or bot.m_bIsMiniBoss == 1 or not damageinfo.Weapon:IsValid() then return end damageinfo.Damage = (187.5 + (damageinfo.Weapon:GetAttributeValueByClass("armor_piercing", 0) / 25) * 187.5) / 3 return true end) bot:AddCallback(ON_DEATH, function() bot:RemoveAllCallbacks() end) end