Hi all.
I have a Russian bus (LiAZ 5256.13), which has an amazing quality and i really like driving it. But it being a Russian bus, passengers can use both doors to either enter or leave it, because that's how Russian buses run in real life.
For my personal use i want to edit the door scripts to make passengers only use the front door to enter and the back for exit.
I've already adjusted the passengercabin.cfg entries, and it works well, the passengers only move to the front door when i approach a stop, and leaving passengers only go to the back. However, there is an issue with leaving passengers: they move to the rear door to leave, but they will never leave the bus if the front door is not open. In fact, the rear door is useless - if the front one is open, passengers will leave even with the rear door closed
I opened the doors.osc file of the bus and the script regarding passengers is this piece of code:
- ' (L.L.door_0) 0.9 > (S.L.PAX_Entry0_Open) (S.L.PAX_Exit0_Open)
- ' (L.L.door_1) 0.9 > (S.L.PAX_Entry1_Open) (S.L.PAX_Exit1_Open)
- (L.L.door_0) 0.9 >
- {if}
- (L.L.haltewunsch)
- {if}
- 1 (S.L.PAX_Exit0_Open)
- 0 (S.L.PAX_Entry0_Open)
- {else}
- 1 (S.L.PAX_Entry0_Open)
- 0 (S.L.PAX_Exit0_Open)
- {endif}
- {else}
- 0 (S.L.PAX_Entry0_Open) (S.L.PAX_Exit0_Open)
- {endif}
- (L.L.door_1) 0.9 >
- {if}
- (L.L.haltewunsch)
- {if}
- 1 (S.L.PAX_Exit1_Open)
- 0 (S.L.PAX_Entry1_Open)
- {else}
- 1 (S.L.PAX_Entry1_Open)
- 0 (S.L.PAX_Exit1_Open)
- {endif}
- {else}
- 0 (S.L.PAX_Entry1_Open) (S.L.PAX_Exit1_Open)
- {endif}
From my very limited knowledge i know i need to remove exit from door 0 and entry from door 1, however, i do not understand the rest of the script. L.L.haltewunsch means stop request, so i know it asks if someone wants to leave, but i really dont know what does the rest mean, and how i could modify it to make it work the way i want (enter the bus via front door, leave via rear door).
I appreciate any help.
Thanks