mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 16:59:17 +02:00
partial shadow stabilization, support for vehicle type-specific load models
This commit is contained in:
10
DynObj.cpp
10
DynObj.cpp
@@ -1924,7 +1924,8 @@ TDynamicObject::Init(std::string Name, // nazwa pojazdu, np. "EU07-424"
|
||||
0.0f );
|
||||
}
|
||||
++compartmentindex;
|
||||
} while( submodel != nullptr );
|
||||
} while( ( submodel != nullptr )
|
||||
|| ( compartmentindex < 2 ) ); // chain can start from prefix00 or prefix01
|
||||
}
|
||||
}
|
||||
// wyszukiwanie zderzakow
|
||||
@@ -4004,7 +4005,12 @@ void TDynamicObject::LoadMMediaFile(std::string BaseDir, std::string TypeName,
|
||||
else {
|
||||
// Ra: tu wczytywanie modelu ładunku jest w porządku
|
||||
if( false == asLoadName.empty() ) {
|
||||
mdLoad = TModelsManager::GetModel( asLoadName, true ); // ladunek
|
||||
// try first specialized version of the load model, vehiclename_loadname
|
||||
mdLoad = TModelsManager::GetModel( BaseDir + TypeName + "_" + MoverParameters->LoadType + ".t3d", true );
|
||||
if( mdLoad == nullptr ) {
|
||||
// if this fails, try generic load model
|
||||
mdLoad = TModelsManager::GetModel( asLoadName, true );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user