mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 13:59:19 +02:00
cablight parameter support
This commit is contained in:
11
DynObj.cpp
11
DynObj.cpp
@@ -5697,6 +5697,17 @@ void TDynamicObject::LoadMMediaFile( std::string const &TypeName, std::string co
|
|||||||
parser >> JointCabs;
|
parser >> JointCabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if( token == "cablight:" ) {
|
||||||
|
parser.getTokens( 3, false ); // low power light, ignore
|
||||||
|
parser.getTokens( 3, false ); // base light
|
||||||
|
parser
|
||||||
|
>> InteriorLight.r
|
||||||
|
>> InteriorLight.g
|
||||||
|
>> InteriorLight.b;
|
||||||
|
InteriorLight = glm::clamp( InteriorLight / 255.f, glm::vec3( 0.f ), glm::vec3( 1.f ) );
|
||||||
|
parser.getTokens( 3, false ); // dimmed light, ignore
|
||||||
|
}
|
||||||
|
|
||||||
else if( token == "pydestinationsign:" ) {
|
else if( token == "pydestinationsign:" ) {
|
||||||
DestinationSign.deserialize( parser );
|
DestinationSign.deserialize( parser );
|
||||||
// supply vehicle folder as script path if none is provided
|
// supply vehicle folder as script path if none is provided
|
||||||
|
|||||||
Reference in New Issue
Block a user