od Ell » 14 dub 2011 23:26
OMSI Knight Rider SPM script - SPM - Super Pursuit mod ( Animation )
//-------------MAIN---------------
thread 'SPM'
0AAC: 20@ = load_mp3 "CLEO\AUDIO\SPM.MP3"
0AAC: 21@ = load_mp3 "CLEO\AUDIO\EBS.MP3"
:SPM_61
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @SPM_61
if
Actor.DrivingVehicleType($PLAYER_ACTOR, #)
jf @SPM_61
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 4@ = car 0@ speed
0AB9: get_mp3 20@ state_to 8@
if and
81F3: not car 0@ in_air
81F4: not car 0@ flipped
00E1: player 0 pressed_key 16
8@ == -1
jf @SPM_165
0AAD: set_mp3 20@ perform_action 1
:SPM_165
if and
81F3: not car 0@ in_air
81F4: not car 0@ flipped
80E1: not player 0 pressed_key 16
jf @SPM_199
0AAD: set_mp3 20@ perform_action 0
:SPM_199
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 4@ = car 0@ speed
if and
00E1: player 0 pressed_key 16
81F3: not car 0@ in_air
81F4: not car 0@ flipped
jf @SPM_390
if
not 4@ > 123.182
jf @SPM_390
06A2: get_car 0@ velocity_in_direction_XYZ 1@ 2@ 3@
02F8: get_car 0@ Z_angle_cosine_to 4@
02F9: get_car 0@ Z_angle_sine_to 5@
1@ /= 3500.0
2@ /= 3500.0
3@ /= 3500.0
4@ *= 0.001
5@ *= 0.001
005B: 1@ += 4@ // (float)
005B: 2@ += 5@ // (float)
07D5: set_car 0@ velocity_in_direction_XYZ 1@ 2@ 0.0 rotation_velocitiesXY 0.0 0.0 unk 0.0
:SPM_390
if and
00E1: player 0 pressed_key 6
00E1: player 0 pressed_key 14
81F3: not car 0@ in_air
81F4: not car 0@ flipped
4@ > 45.0
jf @SPM_61
2@ = 3907
3@ = 3897
4@ = 3900
Model.Load(2@)
Model.Load(3@)
Model.Load(4@)
038B: load_requested_models
:SPM_474
if and
Model.Available(2@)
Model.Available(3@)
Model.Available(4@)
jf @SPM_474
03C0: 0@ = actor $PLAYER_ACTOR car
04C4: store_coords_to 16@ 17@ 18@ from_actor $PLAYER_ACTOR with_offset 1.0 1.0 0.0
1@ = Object.Create(2@, 16@, 17@, 18@)
2@ = Object.Create(3@, 16@, 17@, 18@)
3@ = Object.Create(4@, 16@, 17@, 18@)
Object.CollisionDetection(1@) = False
Object.CollisionDetection(2@) = False
Object.CollisionDetection(3@) = False
0681: attach_object 1@ to_car 0@ with_offset 0.0 0.144 0.519 rotation 0.0 0.0 0.0
0681: attach_object 2@ to_car 0@ with_offset 0.984 -1.942 -0.221 rotation 0.0 0.0 0.0
0681: attach_object 3@ to_car 0@ with_offset -0.984 -1.942 -0.221 rotation 0.0 0.0 0.0
15@ = 0.0
16@ = 0.0
17@ = 0.0
0AAD: set_mp3 21@ perform_action 0
0AAD: set_mp3 21@ perform_action 1
:SPM_767
wait 15
if
10.0 >= 17@
jf @SPM_937
0681: attach_object 1@ to_car 0@ with_offset 0.0 0.144 0.519 rotation 16@ 0.0 0.0
0681: attach_object 2@ to_car 0@ with_offset 0.984 -1.942 -0.221 rotation 0.0 0.0 15@
0681: attach_object 3@ to_car 0@ with_offset -0.984 -1.942 -0.221 rotation 0.0 0.0 16@
15@ += 9.0
16@ -= 9.0
17@ += 1.0
jump @SPM_767
:SPM_937
wait 5
02E3: 4@ = car 0@ speed
if
4@ > 50.0
jf @SPM_995
4@ -= 30.0
Car.SetSpeedInstantly(0@, 4@)
jump @SPM_937
:SPM_995
15@ = 90.0
16@ = -90.0
17@ = 0.0
:SPM_1025
wait 50
if
10.0 >= 17@
jf @SPM_1195
0681: attach_object 1@ to_car 0@ with_offset 0.0 0.144 0.519 rotation 16@ 0.0 0.0
0681: attach_object 2@ to_car 0@ with_offset 0.984 -1.942 -0.221 rotation 0.0 0.0 15@
0681: attach_object 3@ to_car 0@ with_offset -0.984 -1.942 -0.221 rotation 0.0 0.0 16@
15@ -= 9.0
16@ += 9.0
17@ += 1.0
jump @SPM_1025
:SPM_1195
Object.Destroy(1@)
Object.Destroy(2@)
Object.Destroy(3@)
jump @SPM_61