// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'STARTER' 
0A95: enable_thread_saving 
0661: NOP "WIELO_ZADANIOWY_THREAD" 

:STARTER_27
wait 0 
0AF0: 21@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "SECTOR" key "KEY" 
if 
  21@ == 4 
jf @STARTER_76 
jump @STARTER_C8 

:STARTER_76
0AF0: 22@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "SECTOR" key "KEY" 
if 
  22@ == 2 
jf @STARTER_C1 
jump @STARTER_610 

:STARTER_C1
jump @STARTER_27 

:STARTER_C8
0661: NOP "THREAD_1" 
if or
8AF0:   not 17@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEL1" key "KEY" 
8AF0:   not 18@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEL2" key "KEY" 
8AF0:   not 19@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEL3" key "KEY" 
8AF0:   not 20@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEC4" key "KEY" 
8AF0:   not 29@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "GU5" key "KEY" 
8AF0:   not 30@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "GU6" key "KEY" 
jf @STARTER_241 
17@ = -1 
18@ = -1 
19@ = -1 
20@ = -1 
29@ = -1 
30@ = -1 
00BC: show_text_highpriority GXT 'DRGER' time 10000 flag 1 
end_thread 

:STARTER_241
wait 6 
if 
   Player.Defined($PLAYER_CHAR)
jf @STARTER_241 
Model.Load(17@)
Model.Load(18@)
Model.Load(19@)
Model.Load(20@)
Model.Load(#SILENCED)
Model.Load(#MICRO_UZI)
Model.Load(#DESERT_EAGLE)
Model.Load(#MP5LNG)
Model.Load(#COLT45)
038B: load_requested_models 
jump @STARTER_28B 

:STARTER_28B
wait 0 
if or
   not Model.Available(20@)
   not Model.Available(18@)
   not Model.Available(19@)
   not Model.Available(17@)
jf @STARTER_2C0 
00BC: show_text_highpriority GXT 'DRGER' time 10000 flag 1 
end_thread 

:STARTER_2C0
wait 0 
if and
   Model.Available(20@)
   Model.Available(18@)
   Model.Available(19@)
   Model.Available(17@)
jf @STARTER_28B 
wait 500 
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 80.0 80.0 0.0 
04D3: get_nearest_car_path_coords_from 1@ 2@ 3@ type 0 store_to 4@ 5@ 6@ 
0@ = Car.Create(20@, 4@, 5@, 6@)
Car.Angle(0@) = 184.7214
00AE: set_car 0@ traffic_behaviour_to 2 
Car.SetDriverBehaviour(0@, FollowRoad)
053F: set_car 0@ tires_vulnerability 0 
5@ = Marker.CreateAboveCar(0@)
Car.SetImmunities(0@, 0, 1, 1, 1, 1)
0587: enable_car 0@ validate_position 0 
7@ = Actor.CreateAsDriver(Gang9, 18@, 0@)
8@ = Actor.CreateAsPassenger(Gang9, 19@, 0@, 0)
9@ = Actor.CreateAsPassenger(Gang9, 18@, 0@, 1)
10@ = Actor.CreateAsPassenger(Gang9, 17@, 0@, 2)
Actor.Health(7@) = 500
Actor.Health(8@) = 500
Actor.Health(9@) = 500
Actor.Health(10@) = 500
0978: copy_decision_maker 65540 to 11@ 
0709: set_decision_maker 11@ on_event 36 taskID 1022 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 0 // see *.ped files 
0709: set_decision_maker 11@ on_event 37 taskID 1022 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 0 // see *.ped files 
0709: set_decision_maker 11@ on_event 36 taskID 1024 respect 0.0 hate 50.0 like 0.0 dislike 0.0 in_car 0 on_foot 1 // see *.ped files 
060B: set_actor 8@ decision_maker_to 11@ 
060B: set_actor 9@ decision_maker_to 11@ 
060B: set_actor 10@ decision_maker_to 11@ 
077A: set_actor 8@ acquaintance 4 to_actors_pedtype 8 // see ped.dat 
077A: set_actor 9@ acquaintance 4 to_actors_pedtype 8 // see ped.dat 
077A: set_actor 10@ acquaintance 4 to_actors_pedtype 8 // see ped.dat 
077A: set_actor 8@ acquaintance 4 to_actors_pedtype 0 // see ped.dat 
077A: set_actor 9@ acquaintance 4 to_actors_pedtype 0 // see ped.dat 
077A: set_actor 10@ acquaintance 4 to_actors_pedtype 0 // see ped.dat 
077A: set_actor 8@ acquaintance 4 to_actors_pedtype 6 // see ped.dat 
077A: set_actor 9@ acquaintance 4 to_actors_pedtype 6 // see ped.dat 
077A: set_actor 10@ acquaintance 4 to_actors_pedtype 6 // see ped.dat 
Actor.GiveWeaponAndAmmo(8@, 29@, 9999)
Actor.GiveWeaponAndAmmo(9@, 29@, 9999)
Actor.GiveWeaponAndAmmo(10@, 30@, 9999)
Actor.WeaponAccuracy(7@) = 100
Actor.WeaponAccuracy(8@) = 100
Actor.WeaponAccuracy(9@) = 100
Actor.WeaponAccuracy(10@) = 100
072F: enable_car 0@ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 
0190: add_car 0@ to_flipped_check // 6 max 
Car.Health(0@) = 5000

:STARTER_4FB
wait 6 
if 
056E:   car 0@ defined 
jf @STARTER_584 
if 
   not Car.Wrecked(0@)
jf @STARTER_584 
30@ = Car.Health(0@)
01E4: show_text_1number_lowpriority GXT 'T00' number 30@ time 20 flag 1 
if 
  950 > 30@ 
jf @STARTER_584 
0A30: repair_car 0@ 
Car.SetImmunities(0@, 1, 1, 1, 1, 1)
05BE: AS_actor 7@ die 
Actor.RemoveReferences(7@)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Actor.RemoveReferences(10@)
03E5: show_text_box 'CON1' 

:STARTER_584
if or
  30@ == 0 
   Actor.Dead($PLAYER_ACTOR)
  $ONMISSION == 1 
jf @STARTER_5D2 
Actor.RemoveReferences(7@)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Actor.RemoveReferences(10@)
Car.RemoveReferences(0@)
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSO FRACASSADA!
jump @STARTER_1173 

:STARTER_5D2
if 
   Actor.InCar($PLAYER_ACTOR, 0@)
jf @STARTER_4FB 
Car.RemoveReferences(0@)
0A30: repair_car 0@ 
Car.SetImmunities(0@, 0, 1, 1, 1, 1)
03E5: show_text_box 'CON3' 
jump @STARTER_A6C 

:STARTER_610
0661: NOP "THREAD_2" 
if or
8AF0:   not 23@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEL1" key "KEY" 
8AF0:   not 24@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEL2" key "KEY" 
8AF0:   not 25@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEC4" key "KEY" 
8AF0:   not 29@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "GU5" key "KEY" 
8AF0:   not 30@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "GU6" key "KEY" 
jf @STARTER_750 
23@ = -1 
24@ = -1 
25@ = -1 
29@ = -1 
30@ = -1 
00BC: show_text_highpriority GXT 'DRGER' time 10000 flag 1 
end_thread 

:STARTER_750
wait 6 
if 
   Player.Defined($PLAYER_CHAR)
jf @STARTER_750 
Model.Load(23@)
Model.Load(24@)
Model.Load(25@)
Model.Load(#SILENCED)
Model.Load(#MICRO_UZI)
Model.Load(#DESERT_EAGLE)
Model.Load(#MP5LNG)
Model.Load(#COLT45)
038B: load_requested_models 

:STARTER_78E
wait 0 
if or
   not Model.Available(23@)
   not Model.Available(24@)
   not Model.Available(25@)
jf @STARTER_7BE 
00BC: show_text_highpriority GXT 'DRGER' time 10000 flag 1 
end_thread 

:STARTER_7BE
wait 0 
if and
   Model.Available(23@)
   Model.Available(24@)
   Model.Available(25@)
jf @STARTER_78E 
wait 500 
wait 5 
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 80.0 80.0 0.0 
04D3: get_nearest_car_path_coords_from 1@ 2@ 3@ type 0 store_to 4@ 5@ 6@ 
7@ = Car.Create(25@, 4@, 5@, 6@)
Car.Angle(7@) = 184.7214
Car.SetMaxSpeed(7@, 45.0)
00AE: set_car 7@ traffic_behaviour_to 2 
Car.SetDriverBehaviour(7@, FollowRoad)
053F: set_car 7@ tires_vulnerability 0 
5@ = Marker.CreateAboveCar(7@)
Car.SetImmunities(7@, 0, 1, 1, 1, 1)
0587: enable_car 7@ validate_position 0 
8@ = Actor.CreateAsDriver(Gang1, 23@, 7@)
9@ = Actor.CreateAsPassenger(Gang1, 24@, 7@, 0)
Actor.Health(8@) = 500
Actor.Health(9@) = 500
0978: copy_decision_maker 65540 to 10@ 
0709: set_decision_maker 10@ on_event 36 taskID 1022 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 0 // see *.ped files 
0709: set_decision_maker 10@ on_event 37 taskID 1022 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 0 // see *.ped files 
0709: set_decision_maker 10@ on_event 36 taskID 1024 respect 0.0 hate 50.0 like 0.0 dislike 0.0 in_car 0 on_foot 1 // see *.ped files 
060B: set_actor 9@ decision_maker_to 10@ 
077A: set_actor 9@ acquaintance 4 to_actors_pedtype 8 // see ped.dat 
077A: set_actor 9@ acquaintance 4 to_actors_pedtype 0 // see ped.dat 
077A: set_actor 9@ acquaintance 4 to_actors_pedtype 6 // see ped.dat 
Actor.GiveWeaponAndAmmo(9@, 30@, 9999)
072F: enable_car 7@ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 
0190: add_car 7@ to_flipped_check // 6 max 
Actor.WeaponAccuracy(9@) = 100
Car.Health(7@) = 5000

:STARTER_963
wait 6 
if 
056E:   car 7@ defined 
jf @STARTER_9EA 
if 
   not Car.Wrecked(7@)
jf @STARTER_9EA 
30@ = Car.Health(7@)
01E4: show_text_1number_lowpriority GXT 'T00' number 30@ time 20 flag 1 
if 
  950 > 30@ 
jf @STARTER_9EA 
Car.Health(7@) = 9000
05BE: AS_actor 8@ die 
0A30: repair_car 7@ 
Car.SetImmunities(7@, 1, 1, 1, 1, 1)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
03E5: show_text_box 'CON2' 

:STARTER_9EA
if or
  30@ == 0 
   Actor.Dead($PLAYER_ACTOR)
  $ONMISSION == 1 
jf @STARTER_A2E 
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Car.RemoveReferences(7@)
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSO FRACASSADA!
jump @STARTER_1173 

:STARTER_A2E
if 
   Actor.InCar($PLAYER_ACTOR, 7@)
jf @STARTER_963 
0A30: repair_car 7@ 
Car.SetImmunities(7@, 0, 1, 1, 1, 1)
Car.RemoveReferences(7@)
03E5: show_text_box 'CON3' 
jump @STARTER_A6C 

:STARTER_A6C
0AF0: 13@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "REGISTER" key "KEY" 
if 
  13@ == 1 
jf @STARTER_BEE 
0661: NOP "AKA_JAMAJCA" 
0AF1: write_int 116 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX1" key "KEY" 
0AF1: write_int 115 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX2" key "KEY" 
0AF1: write_int 114 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX3" key "KEY" 
0AF1: write_int 579 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEXC" key "KEY" 
0AF1: write_int 22 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG5" key "KEY" 
0AF1: write_int 29 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG6" key "KEY" 
jump @STARTER_1139 

:STARTER_BEE
if 
  13@ == 2 
jf @STARTER_D41 
0661: NOP "AKA_PUERTO_RICAN" 
0AF1: write_int 105 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX1" key "KEY" 
0AF1: write_int 106 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX2" key "KEY" 
0AF1: write_int 107 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX3" key "KEY" 
0AF1: write_int 547 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEXC" key "KEY" 
0AF1: write_int 23 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG5" key "KEY" 
0AF1: write_int 28 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG6" key "KEY" 
jump @STARTER_1139 

:STARTER_D41
if 
  13@ == 3 
jf @STARTER_E93 
0661: NOP "AKA_KOREAN_GANG" 
0AF1: write_int 123 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX1" key "KEY" 
0AF1: write_int 122 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX2" key "KEY" 
0AF1: write_int 121 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX3" key "KEY" 
0AF1: write_int 560 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEXC" key "KEY" 
0AF1: write_int 22 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG5" key "KEY" 
0AF1: write_int 28 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG6" key "KEY" 
jump @STARTER_1139 

:STARTER_E93
if 
  13@ == 4 
jf @STARTER_FE7 
0661: NOP "AKA_RUSIAN_MOB" 
0AF1: write_int 173 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX1" key "KEY" 
0AF1: write_int 174 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX2" key "KEY" 
0AF1: write_int 175 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX3" key "KEY" 
0AF1: write_int 516 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEXC" key "KEY" 
0AF1: write_int 22 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG5" key "KEY" 
0AF1: write_int 29 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG6" key "KEY" 
jump @STARTER_1139 

:STARTER_FE7
if 
  13@ == 5 
jf @STARTER_1139 
0661: NOP "AKA_ITALIAN_MAF" 
0AF1: write_int 117 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX1" key "KEY" 
0AF1: write_int 120 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX2" key "KEY" 
0AF1: write_int 118 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODELX3" key "KEY" 
0AF1: write_int 405 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "MODEXC" key "KEY" 
0AF1: write_int 23 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG5" key "KEY" 
0AF1: write_int 29 to_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "IDG6" key "KEY" 
jump @STARTER_1139 

:STARTER_1139
0AAA: 12@ = thread 'HATE1' pointer 
if 
  12@ == 0 
jf @STARTER_1173 
0A92: create_custom_thread "DRUG_WARS_V3\HATE1.CS"  

:STARTER_1173
0AAA: 13@ = thread 'DRUG_WARS' pointer 
if 
  13@ == 0 
jf @STARTER_11B9 
0A92: create_custom_thread "DRUG_WARS_V3\DRUG_WARS.CS"  

:STARTER_11B9
end_thread 
