TwinFan / XPMP2

Multiplayer library for X-Plane 11/12 with instancing, TCAS override, and sound
https://twinfan.github.io/XPMP2/
Other
24 stars 16 forks source link

Allow several MATCHES lines per CSL model definition #10

Closed TwinFan closed 4 years ago

TwinFan commented 4 years ago

Current Situation / Problem Each CSL model definition comes with one ICAO/AIRLINE/LIVERY/MATCHES line. Or, if there were multiple of these lines, then the last definition would win.

Suggested Solution Allow the use of multiple such lines to define multiple matching criteria for which the model would be a match. While this will rarely make sense for different airline liveries, it can make sense to more easily allow the assignment of special liveries to a limited set of airframes.

Would look like this:


OBJ8_AIRCRAFT A320_DLH_StarAlliance
OBJ8 SOLID YES __Bluebell_Airbus/A320/A320_DLH_SA.obj
VERT_OFFSET  3.5
LIVERY A320 DLH D-AIQD
LIVERY A320 DLH D-AIQW
LIVERY A320 DLH D-AIUD

**Alternatives**
Currently, the full set of all 4 lines would need to be repeated per airframe.

**Benefits**
Makes it easier to define special liveries for a limited set of airframes.

**Additional context**
Idea came up when writing [this forum comment](https://forums.x-plane.org/index.php?/forums/topic/212454-adding-new-texture/&do=findComment&comment=1918245).