function OnGameTick() for _, e in pairs(ents.FindAllByClass("obj_dispenser")) do if e.m_bMiniBuilding == 1 then local owner = e.m_hBuilder local pda = owner:GetPlayerItemBySlot(LOADOUT_POSITION_MELEE) local upgrade = pda:GetAttributeValueByClass("mult_engy_building_health", 1) e.m_iMaxHealth = 100 * upgrade e.vecMins = Vector(-15, -15, 0) e.vecMaxs = Vector(15, 15, 2) e.vecMinsPreScaled = Vector(-15, -15, 0) e.vecMaxsPreScaled = Vector(15, 15, 2) e.m_flModelScale = 0.3 e:SetFakeSendProp("m_flModelScale", 1) --[[ for _, ui in pairs(ents.FindAllByClass("vgui_screen")) do if ui.m_hOwnerEntity == e then ui.m_flHeight = 8 ui.m_flWidth = 15 end end ]] end end end ents.AddCreateCallback("obj_dispenser", function(ent) timer.Simple(0.015, function() local owner = ent.m_hBuilder local pda = owner:GetPlayerItemBySlot(LOADOUT_POSITION_MELEE) if pda:GetAttributeValueByClass("throwable_damage", 0) == 1 then ent.m_bMiniBuilding = 1 end end) end)