Інсталювати Steam
увійти
|
мова
简体中文 (спрощена китайська)
繁體中文 (традиційна китайська)
日本語 (японська)
한국어 (корейська)
ไทย (тайська)
Български (болгарська)
Čeština (чеська)
Dansk (данська)
Deutsch (німецька)
English (англійська)
Español - España (іспанська — Іспанія)
Español - Latinoamérica (іспанська — Латинська Америка)
Ελληνικά (грецька)
Français (французька)
Italiano (італійська)
Bahasa Indonesia (індонезійська)
Magyar (угорська)
Nederlands (нідерландська)
Norsk (норвезька)
Polski (польська)
Português (португальська — Португалія)
Português - Brasil (португальська — Бразилія)
Română (румунська)
Русский (російська)
Suomi (фінська)
Svenska (шведська)
Türkçe (турецька)
Tiếng Việt (в’єтнамська)
Повідомити про проблему з перекладом
I need to inform You kindly about Your mod make the issues with other vehicle mods and with Vanilla Trucks as well because its modifying other cars/trucks barrels in that vehicles I mean when player insert the barrel to truck slots - in all other mods that barrels remain closed and player cannot open them - its because your mod control it so please fix it to be compatible with other vehicle mods on Steam.
modded class ContainerWithCargo
{
void SetEntity(EntityAI entity, int cargo_index = 0, bool immedUpdate = true)
{
m_Entity = entity;
m_CargoIndex = cargo_index;
Barrel_ColorBase barrel = Barrel_ColorBase.Cast(m_Entity);
if (barrel)
{
if (barrel.IsOpen())
{
SetOpenState(true);
}
else
{
SetOpenState(false);
}
}
else
{
SetOpenState(true);
}
m_CargoGrid.SetEntity(entity, immedUpdate);
m_CargoGrid.UpdateHeaderText();
m_ClosableHeader.SetItemPreview(entity);
CheckHeaderDragability();
Container.Cast(m_Parent).Insert(this, -1, false);
if (m_Entity.GetInventory().IsInventoryLockedForLockType(HIDE_INV_FROM_SCRIPT) || !m_Entity.CanDisplayCargo())
LockCargo(true);
else
LockCargo(false);
if (immedUpdate)
{
Refresh();
GetMainWidget().Update();
}
}
override void LockCargo(bool value)
{
super.LockCargo(value);
Barrel_ColorBase barrel = Barrel_ColorBase.Cast(m_Entity);
if (value || (barrel && !barrel.IsOpen()))
{
m_CargoGrid.OnHide();
}
else
{
m_CargoGrid.OnShow();
}
}
};
Give it a shot and let everyone know if it helps—could save some headaches!