// 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_65E 

: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 

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

:STARTER_2B9
if and
   Model.Available(20@)
   Model.Available(18@)
   Model.Available(19@)
   Model.Available(17@)
jf @STARTER_2DF 
jump @STARTER_2E6 

:STARTER_2DF
jump @STARTER_284 

:STARTER_2E6
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
Car.SetMaxSpeed(0@, 45.0)
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_508
wait 0 
if 
056E:   car 0@ defined 
jf @STARTER_587 
if 
   not Car.Wrecked(0@)
jf @STARTER_587 
30@ = Car.Health(0@)
01E4: show_text_1number_lowpriority GXT 'T00' number 30@ time 20 flag 1 
if 
  950 > 30@ 
jf @STARTER_587 
0A30: repair_car 0@ 
0321: AS_actor 7@ die_headshotted 
Car.SetImmunities(0@, 1, 1, 1, 1, 1)
Car.SetSpeedInstantly(0@, 0.0)
03E5: show_text_box 'CON1' 

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

:STARTER_5AC
if 
   not Car.Wrecked(0@)
jf @STARTER_5D6 
if 
01F4:   car 0@ flipped 
jf @STARTER_5D6 
Car.Angle(0@) = 184.7214

:STARTER_5D6
if 
   not Car.Wrecked(0@)
jf @STARTER_62C 
if 
   Actor.InCar($PLAYER_ACTOR, 0@)
jf @STARTER_62C 
Car.RemoveReferences(0@)
0A30: repair_car 0@ 
Car.SetImmunities(0@, 0, 1, 1, 1, 1)
03E5: show_text_box 'CON3' 
Car.Health(0@) = 5000
jump @STARTER_633 

:STARTER_62C
jump @STARTER_508 

:STARTER_633
Actor.RemoveReferences(7@)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Actor.RemoveReferences(10@)
//00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSO FRACASSADA!
jump @STARTER_11AC

:STARTER_65E
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_79E 
23@ = -1 
24@ = -1 
25@ = -1 
29@ = -1 
30@ = -1 
00BC: show_text_highpriority GXT 'DRGER' time 10000 flag 1 
end_thread 

:STARTER_79E
wait 6 
if 
   Player.Defined($PLAYER_CHAR)
jf @STARTER_79E 
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_7DC
wait 0 
if or
   not Model.Available(23@)
   not Model.Available(24@)
   not Model.Available(25@)
jf @STARTER_80C 
00BC: show_text_highpriority GXT 'DRGER' time 10000 flag 1 
end_thread 

:STARTER_80C
if and
   Model.Available(23@)
   Model.Available(24@)
   Model.Available(25@)
jf @STARTER_82D 
jump @STARTER_834 

:STARTER_82D
jump @STARTER_7DC 

:STARTER_834
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_9BB
wait 0 
if 
056E:   car 7@ defined 
jf @STARTER_A30 
if 
   not Car.Wrecked(7@)
jf @STARTER_A30 
30@ = Car.Health(7@)
01E4: show_text_1number_lowpriority GXT 'T00' number 30@ time 20 flag 1 
if 
  950 > 30@ 
jf @STARTER_A30 
0A30: repair_car 7@ 
Car.SetImmunities(7@, 1, 1, 1, 1, 1)
0321: AS_actor 8@ die_headshotted 
03E5: show_text_box 'CON2' 

:STARTER_A30
if 
   not Car.Wrecked(7@)
jf @STARTER_A5A 
if 
01F4:   car 7@ flipped 
jf @STARTER_A5A 
Car.Angle(7@) = 184.7214

:STARTER_A5A
if or
  30@ == 0 
   Actor.Dead($PLAYER_ACTOR)
  $ONMISSION == 1 
jf @STARTER_A89 
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Car.RemoveReferences(7@)
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSO FRACASSADA!
0AAA: 31@ = thread 'DRUG_WARS' pointer 
if 
    31@ == 0 
jf @DRUG_WARS_3E8l 
0A92: create_custom_thread "DRUG_WARS_V3\DRUG_WARS.CS"

:DRUG_WARS_3E8l
end_thread




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

:STARTER_AC7
jump @STARTER_9BB 

:STARTER_ACE
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
jump @STARTER_ADF 

:STARTER_ADF
0AF0: 13@ = get_int_from_ini_file "CLEO\DRUG_WARS_V3\WARS_SET.INI" section "REGISTER" key "KEY" 
if 
  13@ == 1 
jf @STARTER_C61 
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_11AC 

:STARTER_C61
if 
  13@ == 2 
jf @STARTER_DB4 
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_11AC 

:STARTER_DB4
if 
  13@ == 3 
jf @STARTER_F06 
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_11AC 

:STARTER_F06
if 
  13@ == 4 
jf @STARTER_105A 
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_11AC 

:STARTER_105A
if 
  13@ == 5 
jf @STARTER_11AC 
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_11AC 

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

:STARTER_11E6
end_thread
:xxx
0AAA: 31@ = thread 'DRUG_WARS' pointer 
if 
    31@ == 0 
jf @DRUG_WARS_3E8 
0A92: create_custom_thread "DRUG_WARS_V3\DRUG_WARS.CS"

:DRUG_WARS_3E8
end_thread







 
