16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 19:29:19 +02:00

cablight parameter support

This commit is contained in:
tmj-fstate
2019-11-14 15:54:08 +01:00
parent 75503c50d1
commit 90da4bf704

View File

@@ -5697,6 +5697,17 @@ void TDynamicObject::LoadMMediaFile( std::string const &TypeName, std::string co
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:" ) {
DestinationSign.deserialize( parser );
// supply vehicle folder as script path if none is provided