1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
|
:TRAILER
03A4: name_thread "TRAILER"
:TRAILER_11
0001: wait 0 ms
01C3: remove_references_to_car 0@ // Like turning a car into any random car
0006: 0@ = -1
00D6: if
0256: player $PLAYER_CHAR defined
004D: jump_if_false @TRAILER_11
04C4: store_coords_to 10@ 11@ 12@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
073E: get_car_in_sphere 10@ 11@ 12@ radius 200.0 model -1 handle_as 0@
00D6: if
8039: not 0@ == -1
004D: jump_if_false @TRAILER_11
00D6: if
8119: not car 0@ wrecked
004D: jump_if_false @TRAILER_11
00D6: if or
0137: car 0@ model == #LINERUN
0137: car 0@ model == #RDTRAIN
0137: car 0@ model == #PETRO
004D: jump_if_false @TRAILER_11
:TRAILER_162
0001: wait 0 ms
04C4: store_coords_to 17@ 18@ 19@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
0407: store_coords_to 20@ 21@ 22@ from_car 0@ with_offset 0.0 0.0 0.0
050A: 16@ = distance_between_XYZ 17@ 18@ 19@ and_XYZ 20@ 21@ 22@
00D6: if
0021: 16@ > 100.0
004D: jump_if_false @TRAILER_162
0209: 6@ = random_int_in_ranges 0 3
00D6: if
0039: 6@ == 0
004D: jump_if_false @TRAILER_303
0006: 4@ = 584
:TRAILER_303
00D6: if
0039: 6@ == 1
004D: jump_if_false @TRAILER_329
0006: 4@ = 591
:TRAILER_329
00D6: if
0039: 6@ == 2
004D: jump_if_false @TRAILER_355
0006: 4@ = 450
:TRAILER_355
00D6: if
0039: 6@ == 3
004D: jump_if_false @TRAILER_381
0006: 4@ = 435
:TRAILER_381
0247: load_model 4@
038B: load_requested_models
:TRAILER_388
0001: wait 0 ms
00D6: if
0248: model 4@ available
004D: jump_if_false @TRAILER_388
00A5: 5@ = create_car 4@ at 0.0 0.0 0.0
0893: put_trailer 5@ on_cab 0@
0249: release_model 4@
:TRAILER_444
0001: wait 0 ms
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
00D6: if
01AF: car 0@ sphere 0 in_sphere 1@ 2@ 3@ radius 150.0 150.0 150.0
004D: jump_if_false @TRAILER_589
00D6: if and
8119: not car 0@ wrecked
8119: not car 5@ wrecked
81F4: not car 0@ flipped
81F4: not car 5@ flipped
82BF: not car 0@ sunk
82BF: not car 5@ sunk
004D: jump_if_false @TRAILER_567
0002: jump @TRAILER_444
:TRAILER_567
01C3: remove_references_to_car 5@ // Like turning a car into any random car
01C3: remove_references_to_car 0@ // Like turning a car into any random car
0001: wait 1000 ms
0002: jump @TRAILER_11
:TRAILER_589
00A6: destroy_car 5@
00A6: destroy_car 0@
0001: wait 1000 ms
0002: jump @TRAILER_11 |