Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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!
Such issues are resolved there, not here.;)