Немного реальности в авто
Данный скрипт позволяет одно: включать и выключать файры у машины. Включить - клавиша "взгляд налево" (Q), выключить - "взгляд направо" (E).
:CAR_STAT1
0001: wait 0 ms
00D6: if 0
00DF: actor $PLAYER_ACTOR driving
004D: jump_if_false ЈЈCAR_STAT1
03C0: $car = actor $PLAYER_ACTOR car
0002: jump ЈЈCAR_STAT2
:CAR_STAT2
0001: wait 0 ms
00D6: if 0
8137: NOT car $car id == 481
004D: jump_if_false ЈЈCAR_STAT6
00D6: if 0
8137: NOT car $car id == 509
004D: jump_if_false ЈЈCAR_STAT6
00D6: if 0
8137: NOT car $car id == 510
004D: jump_if_false ЈЈCAR_STAT6
00D6: if 0
84A9: NOT actor $PLAYER_ACTOR driving_helicopter
004D: jump_if_false ЈЈCAR_STAT6
00D6: if 0
84C8: NOT actor $PLAYER_ACTOR driving_plane
004D: jump_if_false ЈЈCAR_STAT6
00D6: if 0
84AB: NOT actor $PLAYER_ACTOR driving_boat
004D: jump_if_false ЈЈCAR_STAT6
004F: create thread ЈЈCAR_STAT3
004F: create thread ЈЈCAR_STAT4
0002: jump ЈЈCAR_STAT5
:CAR_STAT3
03A4: name thread 'CLON'
0001: wait 0 ms
00D6: if 0
00E1: key pressed 0 5
004D: jump_if_false ЈЈCAR_STAT3
067F: control_car $car lights 2
0002: jump ЈЈCAR_STAT3
:CAR_STAT4
03A4: name thread 'CLOFF'
0001: wait 0 ms
00D6: if 0
00E1: key pressed 0 7
004D: jump_if_false ЈЈCAR_STAT4
067F: control_car $car lights 0
0002: jump ЈЈCAR_STAT4
:CAR_STAT5
0001: wait 0 ms
00D6: if 0
80DB: NOT actor $PLAYER_ACTOR in_car $car
004D: jump_if_false ЈЈCAR_STAT5
0459: end thread named 'CLON'
0459: end thread named 'CLOFF'
067F: control_car $car lights 0
01C3: remove references to car $car
0002: jump ЈЈCAR_STAT1
:CAR_STAT6
0001: wait 0 ms
01C3: remove references to car $car
0002: jump ЈЈCAR_STAT1