You are on page 1of 5

// This file was decompiled using SASCM.

ini published on 2022-03-20


{$CLEO .cs}

0000: NOP
script_name 'SULTAN'

:SULTAN_13
wait 0
if and
Player.Defined($PLAYER_CHAR)
044B: actor $PLAYER_ACTOR on_foot
is_key_pressed 81
is_key_pressed 69
jf @SULTAN_13
Model.Load(#SULTAN)
Model.Load(1697)
Model.Load(#SPL_B_BAB_M)
Model.Load(#NTO_B_L)
Model.Load(1630)
Model.Load(3134)
Model.Load(935)
Model.Load(2062)
Model.Load(3632)
06E9: load_car_component #WHEEL_OR1
06E9: load_car_component #NTO_B_TW
06E9: load_car_component #EXH_C_S
06E9: load_car_component #EXH_A_S
06E9: load_car_component #FBMP_C_S
06E9: load_car_component #FBMP_A_S
06E9: load_car_component #RBMP_C_S
06E9: load_car_component #RBMP_A_S
06E9: load_car_component #RF_C_S
06E9: load_car_component #RF_A_S
06E9: load_car_component #WG_L_C_S
06E9: load_car_component #WG_L_A_S

:SULTAN_151
wait 0
if
Model.Available(#SULTAN)
jf @SULTAN_151
2@ = Actor.Angle($PLAYER_ACTOR)
04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 0.0 3.5 0.0
Car.Create(1@, #SULTAN, 11@, 12@, 13@)
Car.Angle(1@) = 2@
0209: $PAINJOB01 = random_int_in_ranges 0 4
06ED: set_car 1@ paintjob $PAINJOB01
09E9: car 1@ set_single_nitro
088B: set_car 1@ form_drag_multiplier_to -1.0
jump @SULTAN_272

:SULTAN_272
06E7: $WHEEL_01 = add_car_component #WHEEL_OR1 to_car 1@
06E7: $NTO_01 = add_car_component #NTO_B_TW to_car 1@
jump @SULTAN_301

:SULTAN_301
0209: $RBMP00 = random_int_in_ranges 0 3
if and
$RBMP00 == 1
Model.Available(#RBMP_C_S)
jf @SULTAN_351
06E7: $RBMP_01 = add_car_component #RBMP_C_S to_car 1@
jump @SULTAN_392

:SULTAN_351
if and
$RBMP00 == 2
Model.Available(#RBMP_A_S)
jf @SULTAN_301
06E7: $RBMP_01 = add_car_component #RBMP_A_S to_car 1@
jump @SULTAN_392

:SULTAN_392
0209: $EXH00 = random_int_in_ranges 0 3
if and
$EXH00 == 1
Model.Available(#EXH_C_S)
jf @SULTAN_442
06E7: $EXH_01 = add_car_component #EXH_C_S to_car 1@
jump @SULTAN_487

:SULTAN_442
wait 0
if and
$EXH00 == 2
Model.Available(#EXH_A_S)
jf @SULTAN_392
06E7: $RBMP_01 = add_car_component #EXH_A_S to_car 1@
jump @SULTAN_487

:SULTAN_487
0209: $FBMP00 = random_int_in_ranges 0 3
if and
$FBMP00 == 1
Model.Available(#FBMP_C_S)
jf @SULTAN_537
06E7: $FBMP_01 = add_car_component #FBMP_C_S to_car 1@
jump @SULTAN_578

:SULTAN_537
if and
$FBMP00 == 2
Model.Available(#FBMP_A_S)
jf @SULTAN_487
06E7: $FBMP_01 = add_car_component #FBMP_A_S to_car 1@
jump @SULTAN_578

:SULTAN_578
0209: $RF00 = random_int_in_ranges 0 3
if and
$RF00 == 1
Model.Available(#RF_C_S)
jf @SULTAN_628
06E7: $RF_01 = add_car_component #RF_C_S to_car 1@
jump @SULTAN_669

:SULTAN_628
if and
$RF00 == 2
Model.Available(#RF_A_S)
jf @SULTAN_578
06E7: $RF_01 = add_car_component #RF_A_S to_car 1@
jump @SULTAN_669

:SULTAN_669
0209: $WG00 = random_int_in_ranges 0 3
if and
$WG00 == 1
Model.Available(#WG_L_C_S)
jf @SULTAN_719
06E7: $WG_01 = add_car_component #WG_L_C_S to_car 1@
jump @SULTAN_760

:SULTAN_719
if and
$WG00 == 2
Model.Available(#WG_L_A_S)
jf @SULTAN_669
06E7: $WG_01 = add_car_component #WG_L_A_S to_car 1@
jump @SULTAN_760

:SULTAN_760
Car.ToggleHydraulics(1@, True)
Car.SetImmunities(1@, True, True, True, True, True)
09C4: set_car 1@ gas_tank_explosion_enabled 0
072A: put_actor $PLAYER_ACTOR into_car 1@ driverseat
wait 0
Model.Destroy(#SULTAN)
wait 1000
Car.RemoveReferences(1@)
06EB: release_car_component #WHEEL_OR1
06EB: release_car_component #NTO_B_TW
06EB: release_car_component #EXH_C_S
06EB: release_car_component #EXH_A_S
06EB: release_car_component #FBMP_C_S
06EB: release_car_component #FBMP_A_S
06EB: release_car_component #RBMP_C_S
06EB: release_car_component #RBMP_A_S
06EB: release_car_component #RF_C_S
06EB: release_car_component #RF_A_S
06EB: release_car_component #WG_L_C_S
06EB: release_car_component #WG_L_A_S
jump @SULTAN_883

:SULTAN_883
wait 10
0209: $COLOR01 = random_int_in_ranges 0 255
0209: $COLOR02 = random_int_in_ranges 0 255
0209: $COLOR03 = random_int_in_ranges 0 255
0209: $COLOR04 = random_int_in_ranges 0 255
0229: set_car 1@ primary_color_to $COLOR01 secondary_color_to $COLOR02
0A11: set_car 1@ tertiary_color_to $COLOR03 quaternary_color_to $COLOR04
Car.SetMaxSpeed(1@, 500)
0423: set_car 1@ improved_handling_to 0.0 // (float)
Object.Create($OBJECT00, 1697, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT00 to_car 1@ with_offset 0.0 4.1 -0.6 rotation 0.0 0.0
0.0
Object.Create($OBJECT01, #SPL_B_BAB_M, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT01 to_car 1@ with_offset 0.0 -2.2 0.3 rotation 0.0 0.0
0.0
Object.Create($OBJECT02, #SPL_B_BAB_M, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT02 to_car 1@ with_offset 0.0 -2.25 0.4 rotation 0.0 0.0
0.0
Object.Create($OBJECT03, #SPL_B_BAB_M, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT03 to_car 1@ with_offset 0.0 -2.3 0.5 rotation 0.0 0.0
0.0
Object.Create($OBJECT04, #SPL_B_BAB_M, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT04 to_car 1@ with_offset 0.0 -2.35 0.6 rotation 0.0 0.0
0.0
Object.Create($OBJECT05, #NTO_B_L, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT05 to_car 1@ with_offset 0.0 -2.0 0.3 rotation 0.0 0.0 -
90.0

:SULTAN_1333
0209: $BAR00 = random_int_in_ranges 0 5
wait 0
if and
$BAR00 == 1
Model.Available(3134)
jf @SULTAN_1437
Object.Create($OBJECT06, 3134, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT06 to_car 1@ with_offset 0.1 -1.8 0.3 rotation 0.0 0.0
90.0
jump @SULTAN_1710

:SULTAN_1437
if and
$BAR00 == 2
Model.Available(935)
jf @SULTAN_1528
Object.Create($OBJECT06, 935, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT06 to_car 1@ with_offset 0.04 -1.8 0.3 rotation 0.0 90.0
0.0
jump @SULTAN_1710

:SULTAN_1528
if and
$BAR00 == 3
Model.Available(2062)
jf @SULTAN_1619
Object.Create($OBJECT06, 2062, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT06 to_car 1@ with_offset 0.06 -1.8 0.3 rotation 0.0 90.0
0.0
jump @SULTAN_1710

:SULTAN_1619
if and
$BAR00 == 4
Model.Available(3632)
jf @SULTAN_1333
Object.Create($OBJECT06, 3632, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT06 to_car 1@ with_offset 0.05 -1.8 0.4 rotation 0.0 90.0
0.0
jump @SULTAN_1710
:SULTAN_1710
Object.Create($OBJECT07, 1630, 0.0, 0.0, 0.0)
0681: attach_object $OBJECT07 to_car 1@ with_offset 0.0 -1.65 0.3 rotation 90.0 0.0
90.0
jump @SULTAN_1778

:SULTAN_1778
wait 10
066C: $PARTICLE01 = attach_particle "NITRO" to_car 1@ with_offset 0.0 -2.6 0.4
rotation 0.0 0.0 0.0 type 1
064C: make_particle $PARTICLE01 visible
wait 300
066C: $PARTICLE01 = attach_particle "NITRO" to_car 1@ with_offset 0.0 -2.6 0.4
rotation 0.0 0.0 0.0 type 1
064C: make_particle $PARTICLE01 visible
wait 300
066C: $PARTICLE01 = attach_particle "NITRO" to_car 1@ with_offset 0.0 -2.6 0.4
rotation 0.0 0.0 0.0 type 1
064C: make_particle $PARTICLE01 visible
wait 1000
Model.Destroy(1697)
Model.Destroy(#SPL_B_BAB_M)
Model.Destroy(#NTO_B_L)
Model.Destroy(3134)
Model.Destroy(935)
Model.Destroy(2062)
Model.Destroy(3632)
Model.Destroy(1630)
wait 1000
Object.RemoveReferences($OBJECT00)
Object.RemoveReferences($OBJECT01)
Object.RemoveReferences($OBJECT02)
Object.RemoveReferences($OBJECT03)
Object.RemoveReferences($OBJECT04)
Object.RemoveReferences($OBJECT05)
Object.RemoveReferences($OBJECT06)
Object.RemoveReferences($OBJECT07)
Object.RemoveReferences($OBJECT08)
064F: remove_references_to_particle $PARTICLE01
jump @SULTAN_13

You might also like