Instalează Steam
conectare
|
limbă
简体中文 (chineză simplificată)
繁體中文 (chineză tradițională)
日本語 (japoneză)
한국어 (coreeană)
ไทย (thailandeză)
български (bulgară)
Čeština (cehă)
Dansk (daneză)
Deutsch (germană)
English (engleză)
Español - España (spaniolă - Spania)
Español - Latinoamérica (spaniolă - America Latină)
Ελληνικά (greacă)
Français (franceză)
Italiano (italiană)
Bahasa Indonesia (indoneziană)
Magyar (maghiară)
Nederlands (neerlandeză)
Norsk (norvegiană)
Polski (poloneză)
Português (portugheză - Portugalia)
Português - Brasil (portugheză - Brazilia)
Русский (rusă)
Suomi (finlandeză)
Svenska (suedeză)
Türkçe (turcă)
Tiếng Việt (vietnameză)
Українська (ucraineană)
Raportează o problemă de traducere
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!