// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'CARSTOR' 
wait 1000 
0AB4: 7@ = var 955 
if 
   not 7@ == 0 
else_jump @CARSTOR_150 
0AB4: 3@ = var 951 
0AB4: 4@ = var 952 
0AB4: 5@ = var 953 
0AB4: 6@ = var 954 
0AB4: 7@ = var 955 
0AB4: 8@ = var 956 
0AB4: 9@ = var 957 
0AB4: 10@ = var 958 
0093: 3@ = integer 3@ to_float 
0093: 4@ = integer 4@ to_float 
0093: 5@ = integer 5@ to_float 
0093: 6@ = integer 6@ to_float 
wait 1000 
jump @CARSTOR_555 

:CARSTOR_150
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @CARSTOR_150 
if and
   Actor.Driving($PLAYER_ACTOR)
0AB0:   key_pressed 118 
else_jump @CARSTOR_150 
Player.CanMove($PLAYER_CHAR) = False
03C0: 2@ = actor $PLAYER_ACTOR car 
Car.StorePos(2@, 3@, 4@, 5@)
6@ = Car.Angle(2@)
7@ = Car.Model(2@)
0988: get_car 2@ paintjob 8@ 
03F3: get_car 2@ primary_color_to 9@ secondary_color_to 10@ 
Car.DoorStatus(2@) = 0
Car.SetImmunities(2@, 1, 1, 1, 1, 1)
Car.LockInCurrentPosition(2@) = True
0633: AS_actor $PLAYER_ACTOR exit_car 
0092: 13@ = float 3@ to_integer 
0092: 14@ = float 4@ to_integer 
0092: 15@ = float 5@ to_integer 
0092: 16@ = float 6@ to_integer 
0AB3: var 951 = 13@ 
0AB3: var 952 = 14@ 
0AB3: var 953 = 15@ 
0AB3: var 954 = 16@ 
0AB3: var 955 = 7@ 
0AB3: var 956 = 8@ 
0AB3: var 957 = 9@ 
0AB3: var 958 = 10@ 
wait 2000 
Player.CanMove($PLAYER_CHAR) = True
jump @CARSTOR_403 

:CARSTOR_403
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @CARSTOR_550 
if 
82BF:   not car 2@ sunk 
else_jump @CARSTOR_738 
if 
   not Car.Wrecked(2@)
else_jump @CARSTOR_550 
if 
0202:   actor $PLAYER_ACTOR near_car 2@ radius 100.0 100.0 flag 0 
else_jump @CARSTOR_550 
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @CARSTOR_403 
if 
   Actor.InCar($PLAYER_ACTOR, 2@)
else_jump @CARSTOR_403 
Car.SetImmunities(2@, 0, 0, 0, 0, 0)
Car.LockInCurrentPosition(2@) = False
jump @CARSTOR_738 

:CARSTOR_550
Car.RemoveReferences(2@)

:CARSTOR_555
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @CARSTOR_555 
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 3@ 4@ 5@ radius 80.0 80.0 50.0 
else_jump @CARSTOR_555 
jump @CARSTOR_624 

:CARSTOR_624
Model.Load(7@)

:CARSTOR_629
wait 0 
if 
   Model.Available(7@)
else_jump @CARSTOR_629 
wait 0 
2@ = Car.Create(7@, 3@, 4@, 5@)
Car.Angle(2@) = 6@
06ED: set_car 2@ paintjob 8@ 
0229: set_car 2@ primary_color_to 9@ secondary_color_to 10@ 
Car.DoorStatus(2@) = 0
Car.SetImmunities(2@, 1, 1, 1, 1, 1)
Car.LockInCurrentPosition(2@) = True
Model.Destroy(7@)
jump @CARSTOR_403 

:CARSTOR_738
Car.RemoveReferences(2@)
0AB3: var 955 = 0 
jump @CARSTOR_150 
