PLAYER_PED Player1 = ( 105.5 , 105.5 , 5.0 ) 27 0

CRANE_DATA Basiccrane1 = ( 136.5 , 109.5 ) 270 NO_HOMECRANE

CAR_DATA Car1 = ( 102.5 , 112.5 , 5.0 ) 7 180 AMDB4
CAR_DATA Car2 = ( 103.5 , 112.5 , 5.0 ) 27 180 STRIPETB
CAR_DATA Car3 = ( 104.5 , 112.5 , 5.0 ) 11 180 MERC
CAR_DATA Car4 = ( 105.5 , 112.5 , 5.0 ) 14 180 STINGRAY
CAR_DATA Car5 = ( 106.5 , 112.5 , 5.0 ) 6 180 BMW
CAR_DATA Car6 = ( 107.5 , 112.5 , 5.0 ) 27 180 ZCX5
CAR_DATA Car7 = ( 109.0 , 110.0 , 2.0 ) 6 180 TRUKTRNS
CAR_DATA Car8 = ( 124.5 , 108.5 , 2.0 ) -1 90 TANK
CAR_DATA Car9 = ( 124.5 , 109.5 , 2.0 ) -1 90 APC
CAR_DATA Car10 = ( 124.5 , 110.5 , 2.0 ) -1 90 GUNJEEP
CAR_DATA Car11 = ( 124.5 , 111.5 , 2.0 ) -1 90 JEEP
CAR_DATA Car12 = ( 128.5 , 111.5 , 2.0 ) 31 270 T2000GT
CAR_DATA Car13 = ( 128.5 , 112.5 , 2.0 ) 12 270 TRUKCAB1
CAR_DATA Car14 = ( 128.5 , 113.5 , 2.0 ) 4 270 TRUKCAB2
CAR_DATA Car15 = ( 128.5 , 114.5 , 2.0 ) 15 270 GT24640
CAR_DATA Car16 = ( 136.5 , 111.5 , 2.0 ) 14 0 TRUKTRNS
CAR_DATA Car17 = ( 132.5 , 107.5 , 2.0 ) -1 0 TAXI
CAR_DATA Car18 = ( 133.5 , 107.5 , 2.0 ) -1 0 STYPECAB
CAR_DATA Car19 = ( 134.5 , 107.5 , 2.0 ) 21 0 TBIRD
CAR_DATA Car20 = ( 135.5 , 107.5 , 2.0 ) 17 0 ALLARD

GENERATOR Gen1 = ( 123.5 , 114.5 , 2.0 ) 0 COLLECT_00 0 0 255
GENERATOR Gen2 = ( 139.5 , 107.5 , 2.0 ) 0 COLLECT_01 0 0 255
GENERATOR Gen3 = ( 139.5 , 108.5 , 2.0 ) 0 COLLECT_02 0 0 255
GENERATOR Gen4 = ( 139.5 , 109.5 , 2.0 ) 0 COLLECT_03 0 0 255
GENERATOR Gen5 = ( 139.5 , 110.5 , 2.0 ) 0 COLLECT_04 0 0 255
GENERATOR Gen6 = ( 139.5 , 111.5 , 2.0 ) 0 COLLECT_05 0 0 255
GENERATOR Gen7 = ( 139.5 , 112.5 , 2.0 ) 0 COLLECT_06 0 0 255
GENERATOR Gen8 = ( 139.5 , 113.5 , 2.0 ) 0 COLLECT_07 0 0 255
GENERATOR Gen9 = ( 139.5 , 114.5 , 2.0 ) 0 COLLECT_08 0 0 255
GENERATOR Gen10 = ( 139.5 , 115.5 , 2.0 ) 0 COLLECT_09 0 0 255
GENERATOR Gen11 = ( 139.5 , 116.5 , 2.0 ) 0 COLLECT_10 0 0 255 
GENERATOR Gen12 = ( 126.5 , 104.5 , 2.0 ) 0 COLLECT_28 0 0 99
GENERATOR Gen13 = ( 126.5 , 114.5 , 2.0 ) 0 COLLECT_29 0 0 99
GENERATOR Gen14 = ( 102.5 , 107.5 , 5.0 ) 0 COLLECT_30 0 0 99
GENERATOR Gen15 = ( 102.5 , 108.5 , 5.0 ) 0 COLLECT_31 0 0 99
GENERATOR Gen16 = ( 105.5 , 102.5 , 3.0 ) 0 COLLECT_34 0 0 99
GENERATOR Gen17 = ( 133.5 , 103.5 , 2.0 ) 0 COLLECT_35 0 0 99
GENERATOR Gen18 = ( 127.5 , 106.5 , 2.0 ) 0 COLLECT_36 0 0 99
GENERATOR Gen19 = ( 127.5 , 107.5 , 2.0 ) 0 COLLECT_38 0 0 99
GENERATOR Gen20 = ( 111.5 , 114.5 , 3.0 ) 0 COLLECT_39 0 0 99
GENERATOR Gen21 = ( 110.5 , 109.5 , 5.0 ) 0 COLLECT_40 0 0 99

CHAR_DATA Bot1
CHAR_DATA Bot2
CHAR_DATA Bot3
CHAR_DATA Bot4
CHAR_DATA Bot5
CHAR_DATA Bot6
CHAR_DATA merc01 = ( 102.5 , 109.5 , 5.0 ) 27 180 GUARD
CHAR_DATA merc02 = ( 103.5 , 109.5 , 5.0 ) 27 180 GUARD
CHAR_DATA merc03 = ( 106.5 , 109.5 , 5.0 ) 27 180 GUARD
CHAR_DATA merc04 = ( 107.5 , 109.5 , 5.0 ) 27 180 GUARD
CHAR_DATA Pro1
CHAR_DATA Pro2
CHAR_DATA Pro3
CHAR_DATA Pro4
CHAR_DATA victim

DECLARE_POLICELEVEL ( 6 )
COUNTER Loop = 1
COUNTER Count1 = 0
COUNTER Count2 = 0
COUNTER Count3 = 0
COUNTER true = 1
// check to how many player controlled mercs are still alive
COUNTER bodyguards = 4
COUNTER merc01_dead = 0
COUNTER merc02_dead = 0
COUNTER merc03_dead = 0
COUNTER merc04_dead = 0
COUNTER all_mercs_dead = 0
COUNTER intro = 0
COUNTER Target = 1
ARROW_DATA Bot1Arrow
ARROW_DATA Bot2Arrow
ARROW_DATA Bot3Arrow
ARROW_DATA Bot4Arrow
ARROW_DATA Bot5Arrow
ARROW_DATA Bot6Arrow

LEVELSTART
SET_ARROW_COLOUR ( Bot1Arrow , RED )
SET_ARROW_COLOUR ( Bot2Arrow , YELLOW )
SET_ARROW_COLOUR ( Bot4Arrow , GREEN )

SET_GANG_INFO ( robbergang , 18 , FLAME_THROWER , ELECTRO_GUN , ROCKET_LAUNCHER , 2 , 122.5 , 114.5 , 3.0 , 1 , LIMO , 14 )
MAP_ZONE robberinfo = ( 1000 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 1000 , 0 , 1000 )

Bot1 = CREATE_CHAR ( 99.5 , 109.5 , 3.0 ) 28 180 PSYCHO END
SET_CHAR_THREAT_SEARCH ( Bot1 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot1 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot1 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot1 , ON )
SET_FAVOURITE_MODEL ( Bot1 , AMDB4 )
GIVE_WEAPON ( Bot1 , ROCKET_LAUNCHER )
POINT_ARROW_AT ( Bot1Arrow , Bot1 )
MAKE_CHAR_DO_NOTHING ( Bot1 )
SET_CHAR_MAX_RUNSPEED ( Bot1 , 0.040 )
SET_CHAR_MAX_DRIVESPEED ( Bot1 , 0.350 )

Bot2 = CREATE_CHAR ( 119.5 , 97.5 , 3.0 ) 35 270 DRIVER END
SET_CHAR_THREAT_SEARCH ( Bot2 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot2 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot2 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot2 , ON )
SET_FAVOURITE_MODEL ( Bot2 , STRIPETB )
GIVE_WEAPON ( Bot2 , ELECTRO_GUN )
POINT_ARROW_AT ( Bot2Arrow , Bot2 )
MAKE_CHAR_DO_NOTHING ( Bot2 )
SET_CHAR_MAX_DRIVESPEED ( Bot2 , 0.420 )

Bot3 = CREATE_CHAR ( 142.5 , 102.5 , 3.0 ) 26 0 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot3 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot3 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot3 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot3 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot3 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot3 , ON )
SET_FAVOURITE_MODEL ( Bot3 , MERC )
GIVE_WEAPON ( Bot3 , SHOTGUN )
POINT_ARROW_AT ( Bot3Arrow , Bot3 )
MAKE_CHAR_DO_NOTHING ( Bot3 )
SET_CHAR_MAX_RUNSPEED ( Bot3 , 0.040 )
SET_CHAR_MAX_DRIVESPEED ( Bot3 , 0.400 )

Bot4 = CREATE_CHAR ( 122.5 , 106.5 , 6.0 ) 18 0 BANK_ROBBER END
SET_CHAR_THREAT_SEARCH ( Bot4 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot4 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot4 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot4 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot4 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot4 , ON )
SET_FAVOURITE_MODEL ( Bot4 , STINGRAY )
ADD_CHAR_TO_GANG ( Bot4 , robbergang )
GIVE_WEAPON ( Bot4 , SILENCED_MACHINE_GUN )
POINT_ARROW_AT ( Bot4Arrow , Bot4 )
MAKE_CHAR_DO_NOTHING ( Bot4 )
SET_CHAR_MAX_RUNSPEED ( Bot4 , 0.060 )
SET_CHAR_MAX_DRIVESPEED ( Bot4 , 0.450 )

Bot5 = CREATE_CHAR ( 139.5 , 122.5 , 3.0 ) 30 90 SPECIAL_GROUP_MEMBER END
SET_CHAR_THREAT_SEARCH ( Bot5 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot5 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot5 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot5 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot5 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot5 , ON )
SET_FAVOURITE_MODEL ( Bot5 , BMW )
GIVE_WEAPON ( Bot5 , FLAME_THROWER )
POINT_ARROW_AT ( Bot5Arrow , Bot5 )
MAKE_CHAR_DO_NOTHING ( Bot5 )
SET_CHAR_MAX_RUNSPEED ( Bot5 , 0.040 )
SET_CHAR_MAX_DRIVESPEED ( Bot5 , 0.400 )

Bot6 = CREATE_CHAR ( 106.5 , 120.5 , 3.0 ) 43 270 GUARD_AGAINST_PLAYER END
SET_CHAR_THREAT_SEARCH ( Bot6 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot6 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot6 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot6 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot6 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot6 , ON )
SET_FAVOURITE_MODEL ( Bot6 , ZCX5 )
GIVE_WEAPON ( Bot6 , MACHINE_GUN )
POINT_ARROW_AT ( Bot6Arrow , Bot6 )
MAKE_CHAR_DO_NOTHING ( Bot6 )
SET_CHAR_MAX_RUNSPEED ( Bot6 , 0.065 )
SET_CHAR_MAX_DRIVESPEED ( Bot6 , 0.450 )

Pro1 = CREATE_CHAR ( 126.5 , 116.5 , 2.0 ) 0 270 POLICE END
SET_CHAR_GRAPHIC_TYPE ( Pro1 , EMERG_GRAPHIC , 0 )
SET_CHAR_THREAT_SEARCH ( Pro1 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro1 , LOONY )
SET_CHAR_INVINCIBLE ( Pro1 , ON )
SET_CHAR_MAX_RUNSPEED ( Pro1 , 0.065 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 116.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 101.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 139.5 , 101.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 139.5 , 104.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 127.5 , 104.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 127.5 , 102.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 102.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 116.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 126.5 , 116.5 , 2.0 )

Pro2 = CREATE_CHAR ( 95.5 , 94.5 , 2.0 ) 0 90 POLICE END
SET_CHAR_GRAPHIC_TYPE ( Pro2 , EMERG_GRAPHIC , 0 )
SET_CHAR_THREAT_SEARCH ( Pro2 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro2 , LOONY )
SET_CHAR_INVINCIBLE ( Pro2 , ON )
SET_CHAR_MAX_RUNSPEED ( Pro2 , 0.065 )
ADD_PATROL_POINT ( Pro2 , 146.5 , 94.5 , 2.0 )
ADD_PATROL_POINT ( Pro2 , 146.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Pro2 , 95.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Pro2 , 95.5 , 94.5 , 2.0 )

Pro3 = CREATE_CHAR ( 110.5 , 110.2 , 5.0 ) 4 90 ARMY END
SET_CHAR_GRAPHIC_TYPE ( Pro3 , EMERG_GRAPHIC , 4 )
SET_CHAR_THREAT_SEARCH ( Pro3 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro3 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro3 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro3 , LOONY )
ADD_GROUP_TO_CHARACTER ( Pro3 , 0 )
GIVE_WEAPON ( Pro3 , MACHINE_GUN )
SET_CHAR_INVINCIBLE ( Pro3 , ON )
MAKE_CHAR_DO_NOTHING ( Pro3 )
SET_CHAR_MAX_RUNSPEED ( Pro3 , 0.075 )

Pro4 = CREATE_CHAR ( 110.5 , 110.7 , 5.0 ) 4 90 ARMY END
SET_CHAR_GRAPHIC_TYPE ( Pro4 , EMERG_GRAPHIC , 4 )
SET_CHAR_THREAT_SEARCH ( Pro4 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro4 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro4 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro4 , LOONY )
ADD_EXISTING_CHAR_TO_GROUP ( Pro3 , Pro4 )
GIVE_WEAPON ( Pro4 , MACHINE_GUN )
SET_CHAR_INVINCIBLE ( Pro4 , ON )
MAKE_CHAR_DO_NOTHING ( Pro4 )
SET_CHAR_MAX_RUNSPEED ( Pro4 , 0.075 )

SET_CAR_BULLETPROOF ( Car1 , ON )
SET_CAR_BULLETPROOF ( Car2 , ON )
SET_CAR_BULLETPROOF ( Car3 , ON )
SET_CAR_BULLETPROOF ( Car4 , ON )
SET_CAR_BULLETPROOF ( Car5 , ON )
SET_CAR_BULLETPROOF ( Car6 , ON )
SET_CAR_BULLETPROOF ( Car7 , ON )
SET_CAR_BULLETPROOF ( Car8 , ON )
SET_CAR_BULLETPROOF ( Car9 , ON )
SET_CAR_BULLETPROOF ( Car10 , ON )
SET_CAR_BULLETPROOF ( Car11 , ON )
SET_CAR_BULLETPROOF ( Car12 , ON )
SET_CAR_BULLETPROOF ( Car13 , ON )
SET_CAR_BULLETPROOF ( Car14 , ON )
SET_CAR_BULLETPROOF ( Car15 , ON )
SET_CAR_BULLETPROOF ( Car16 , ON )
SET_CAR_BULLETPROOF ( Car17 , ON )
SET_CAR_BULLETPROOF ( Car18 , ON )
SET_CAR_BULLETPROOF ( Car19 , ON )
SET_CAR_BULLETPROOF ( Car20 , ON )
SET_CAR_FLAMEPROOF ( Car1 , ON )
SET_CAR_FLAMEPROOF ( Car2 , ON )
SET_CAR_FLAMEPROOF ( Car3 , ON )
SET_CAR_FLAMEPROOF ( Car4 , ON )
SET_CAR_FLAMEPROOF ( Car5 , ON )
SET_CAR_FLAMEPROOF ( Car6 , ON )
SET_CAR_FLAMEPROOF ( Car7 , ON )
SET_CAR_FLAMEPROOF ( Car8 , ON )
SET_CAR_FLAMEPROOF ( Car9 , ON )
SET_CAR_FLAMEPROOF ( Car10 , ON )
SET_CAR_FLAMEPROOF ( Car11 , ON )
SET_CAR_FLAMEPROOF ( Car12 , ON )
SET_CAR_FLAMEPROOF ( Car13 , ON )
SET_CAR_FLAMEPROOF ( Car14 , ON )
SET_CAR_FLAMEPROOF ( Car15 , ON )
SET_CAR_FLAMEPROOF ( Car16 , ON )
SET_CAR_FLAMEPROOF ( Car17 , ON )
SET_CAR_FLAMEPROOF ( Car18 , ON )
SET_CAR_FLAMEPROOF ( Car19 , ON )
SET_CAR_FLAMEPROOF ( Car20 , ON )
SET_CAR_ROCKETPROOF ( Car1 , ON )
SET_CAR_ROCKETPROOF ( Car2 , ON )
SET_CAR_ROCKETPROOF ( Car3 , ON )
SET_CAR_ROCKETPROOF ( Car4 , ON )
SET_CAR_ROCKETPROOF ( Car5 , ON )
SET_CAR_ROCKETPROOF ( Car6 , ON )
SET_CAR_ROCKETPROOF ( Car7 , ON )
SET_CAR_ROCKETPROOF ( Car8 , ON )
SET_CAR_ROCKETPROOF ( Car9 , ON )
SET_CAR_ROCKETPROOF ( Car10 , ON )
SET_CAR_ROCKETPROOF ( Car11 , ON )
SET_CAR_ROCKETPROOF ( Car12 , ON )
SET_CAR_ROCKETPROOF ( Car13 , ON )
SET_CAR_ROCKETPROOF ( Car14 , ON )
SET_CAR_ROCKETPROOF ( Car15 , ON )
SET_CAR_ROCKETPROOF ( Car16 , ON )
SET_CAR_ROCKETPROOF ( Car17 , ON )
SET_CAR_ROCKETPROOF ( Car18 , ON )
SET_CAR_ROCKETPROOF ( Car19 , ON )
SET_CAR_ROCKETPROOF ( Car20 , ON )
SET_CAR_NO_COLLIDE ( Car1 )
SET_CAR_NO_COLLIDE ( Car2 )
SET_CAR_NO_COLLIDE ( Car3 )
SET_CAR_NO_COLLIDE ( Car4 )
SET_CAR_NO_COLLIDE ( Car5 )
SET_CAR_NO_COLLIDE ( Car6 )
SET_CAR_NO_COLLIDE ( Car7 )
SET_CAR_NO_COLLIDE ( Car8 )
SET_CAR_NO_COLLIDE ( Car9 )
SET_CAR_NO_COLLIDE ( Car10 )
SET_CAR_NO_COLLIDE ( Car11 )
SET_CAR_NO_COLLIDE ( Car12 )
SET_CAR_NO_COLLIDE ( Car13 )
SET_CAR_NO_COLLIDE ( Car14 )
SET_CAR_NO_COLLIDE ( Car15 )
SET_CAR_NO_COLLIDE ( Car16 )
SET_CAR_NO_COLLIDE ( Car17 )
SET_CAR_NO_COLLIDE ( Car18 )
SET_CAR_NO_COLLIDE ( Car19 )
SET_CAR_NO_COLLIDE ( Car20 )

SWITCH_GENERATOR ( Gen1 , ON )
SWITCH_GENERATOR ( Gen2 , ON )
SWITCH_GENERATOR ( Gen3 , ON )
SWITCH_GENERATOR ( Gen4 , ON )
SWITCH_GENERATOR ( Gen5 , ON )
SWITCH_GENERATOR ( Gen6 , ON )
SWITCH_GENERATOR ( Gen7 , ON )
SWITCH_GENERATOR ( Gen8 , ON )
SWITCH_GENERATOR ( Gen9 , ON )
SWITCH_GENERATOR ( Gen10 , ON )
SWITCH_GENERATOR ( Gen11 , ON )
SWITCH_GENERATOR ( Gen12 , ON )
SWITCH_GENERATOR ( Gen13 , ON )
SWITCH_GENERATOR ( Gen14 , ON )
SWITCH_GENERATOR ( Gen15 , ON )
SWITCH_GENERATOR ( Gen16 , ON )
SWITCH_GENERATOR ( Gen17 , ON )
SWITCH_GENERATOR ( Gen18 , ON )
SWITCH_GENERATOR ( Gen19 , ON )
SWITCH_GENERATOR ( Gen20 , ON )
SWITCH_GENERATOR ( Gen21 , ON )

WHILE_EXEC ( true = 1 )

// extremely hard punches from the player. i.e. kills them outright
IF ( HAS_CHAR_PUNCHED_SOMEONE ( Player1 ) )
STORE_LAST_CHAR_PUNCHED ( Player1 , victim ) // checks if player has punched and stores it in 'victim'
KILL_CHAR ( victim )
ENDIF

// check if merc01 is dead...
IF ( ( HAS_CHARACTER_DIED ( merc01 ) )
AND ( merc01_dead = 0 ) )
-- bodyguards
SET merc01_dead = 1
ENDIF

// check if merc02 is dead...
IF ( ( HAS_CHARACTER_DIED ( merc02 ) )
AND ( merc02_dead = 0 ) )
-- bodyguards
SET merc02_dead = 1
ENDIF

// check if merc03 is dead...
IF ( ( HAS_CHARACTER_DIED ( merc03 ) )
AND ( merc03_dead = 0 ) )
-- bodyguards
SET merc03_dead = 1
ENDIF

// check if merc04 is dead...
IF ( ( HAS_CHARACTER_DIED ( merc04 ) )
AND ( merc04_dead = 0 ) )
-- bodyguards
SET merc04_dead = 1
ENDIF

// check if bodyguards are dead
IF ( ( bodyguards = 0 )
AND ( all_mercs_dead = 0 ) )
SET all_mercs_dead = 1
ENDIF

IF ( intro = 0 )
ADD_GROUP_TO_CHARACTER ( Player1 , 0 )
ADD_EXISTING_CHAR_TO_GROUP ( Player1 , merc01 )
ADD_EXISTING_CHAR_TO_GROUP ( Player1 , merc02 )
ADD_EXISTING_CHAR_TO_GROUP ( Player1 , merc03 )
ADD_EXISTING_CHAR_TO_GROUP ( Player1 , merc04 )
GIVE_WEAPON ( merc01 , MACHINE_GUN )
GIVE_WEAPON ( merc02 , SHOTGUN )
GIVE_WEAPON ( merc03 , FLAME_THROWER )
GIVE_WEAPON ( merc04 , ROCKET_LAUNCHER )
SET_CHAR_INVINCIBLE ( merc01 , ON )
SET_CHAR_INVINCIBLE ( merc02 , ON )
SET_CHAR_INVINCIBLE ( merc03 , ON )
SET_CHAR_INVINCIBLE ( merc04 , ON )
SET_CHAR_OBJECTIVE ( merc01 , GUARD_AREA )
SET_CHAR_OBJECTIVE ( merc02 , GUARD_AREA )
SET_CHAR_OBJECTIVE ( merc03 , GUARD_AREA )
SET_CHAR_OBJECTIVE ( merc04 , GUARD_AREA )
SET_CHAR_THREAT_SEARCH ( merc01 , AREA )
SET_CHAR_THREAT_SEARCH ( merc02 , AREA )
SET_CHAR_THREAT_SEARCH ( merc03 , AREA )
SET_CHAR_THREAT_SEARCH ( merc04 , AREA )
SET_CHAR_THREAT_REACTION ( merc01 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( merc02 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( merc03 , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( merc04 , REACT_AS_NORMAL )
SET intro = 1
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot1 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot1 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot2 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot2 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot3 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot3 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot4 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot4 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot5 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot5 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot6 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot6 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
ENDIF

IF ( CHECK_CHARACTER_HEALTH ( Player1 , 0 ) )
GIVE_WEAPON ( Player1 , MACHINE_GUN , 99 )
GIVE_WEAPON ( Player1 , SILENCED_MACHINE_GUN , 99 )
GIVE_WEAPON ( Player1 , SHOTGUN , 99 )
GIVE_WEAPON ( Player1 , ROCKET_LAUNCHER , 99 )
GIVE_WEAPON ( Player1 , FLAME_THROWER , 99 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot1 ) )
REMOVE_ARROW ( Bot1Arrow )
DELETE_ITEM ( Bot1 )
Bot1 = CREATE_CHAR ( 99.5 , 109.5 , 3.0 ) 28 180 PSYCHO END
SET_CHAR_THREAT_SEARCH ( Bot1 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot1 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot1 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot1 , ON )
SET_FAVOURITE_MODEL ( Bot1 , AMDB4 )
GIVE_WEAPON ( Bot1 , ROCKET_LAUNCHER )
POINT_ARROW_AT ( Bot1Arrow , Bot1 )
SET_CHAR_MAX_RUNSPEED ( Bot1 , 0.040 )
SET_CHAR_MAX_DRIVESPEED ( Bot1 , 0.350 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot2 ) )
REMOVE_ARROW ( Bot2Arrow )
DELETE_ITEM ( Bot2 )
Bot2 = CREATE_CHAR ( 119.5 , 97.5 , 3.0 ) 35 270 DRIVER END
SET_CHAR_THREAT_SEARCH ( Bot2 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot2 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot2 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot2 , ON )
SET_FAVOURITE_MODEL ( Bot2 , STRIPETB )
GIVE_WEAPON ( Bot2 , ELECTRO_GUN )
POINT_ARROW_AT ( Bot2Arrow , Bot2 )
SET_CHAR_MAX_DRIVESPEED ( Bot2 , 0.420 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot3 ) )
REMOVE_ARROW ( Bot3Arrow )
DELETE_ITEM ( Bot3 )
Bot3 = CREATE_CHAR ( 142.5 , 102.5 , 3.0 ) 26 0 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot3 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot3 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot3 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot3 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot3 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot3 , ON )
SET_FAVOURITE_MODEL ( Bot3 , MERC )
GIVE_WEAPON ( Bot3 , SHOTGUN )
POINT_ARROW_AT ( Bot3Arrow , Bot3 )
SET_CHAR_MAX_RUNSPEED ( Bot3 , 0.040 )
SET_CHAR_MAX_DRIVESPEED ( Bot3 , 0.400 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot4 ) )
REMOVE_ARROW ( Bot4Arrow )
DELETE_ITEM ( Bot4 )
Bot4 = CREATE_CHAR ( 122.5 , 106.5 , 6.0 ) 18 0 BANK_ROBBER END
SET_CHAR_THREAT_SEARCH ( Bot4 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot4 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot4 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot4 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot4 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot4 , ON )
SET_FAVOURITE_MODEL ( Bot4 , STINGRAY )
ADD_CHAR_TO_GANG ( Bot4 , robbergang )
GIVE_WEAPON ( Bot4 , SILENCED_MACHINE_GUN )
POINT_ARROW_AT ( Bot4Arrow , Bot4 )
SET_CHAR_MAX_RUNSPEED ( Bot4 , 0.060 )
SET_CHAR_MAX_DRIVESPEED ( Bot4 , 0.450 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot5 ) )
REMOVE_ARROW ( Bot5Arrow )
DELETE_ITEM ( Bot5 )
Bot5 = CREATE_CHAR ( 139.5 , 122.5 , 3.0 ) 30 90 SPECIAL_GROUP_MEMBER END
SET_CHAR_THREAT_SEARCH ( Bot5 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot5 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot5 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot5 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot5 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot5 , ON )
SET_FAVOURITE_MODEL ( Bot5 , BMW )
GIVE_WEAPON ( Bot5 , FLAME_THROWER )
POINT_ARROW_AT ( Bot5Arrow , Bot5 )
SET_CHAR_MAX_RUNSPEED ( Bot5 , 0.040 )
SET_CHAR_MAX_DRIVESPEED ( Bot5 , 0.400 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot6 ) )
REMOVE_ARROW ( Bot6Arrow )
DELETE_ITEM ( Bot6 )
Bot6 = CREATE_CHAR ( 106.5 , 120.5 , 3.0 ) 43 270 GUARD_AGAINST_PLAYER END
SET_CHAR_THREAT_SEARCH ( Bot6 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot6 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot6 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot6 , LOONY )
SET_CHAR_DRIVE_AGGRESSION ( Bot6 , ON )
SET_CHAR_TO_USE_CAR_WEAPON ( Bot6 , ON )
SET_FAVOURITE_MODEL ( Bot6 , ZCX5 )
GIVE_WEAPON ( Bot6 , MACHINE_GUN )
POINT_ARROW_AT ( Bot6Arrow , Bot6 )
SET_CHAR_MAX_RUNSPEED ( Bot6 , 0.065 )
SET_CHAR_MAX_DRIVESPEED ( Bot6 , 0.450 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Pro1 ) )
DELETE_ITEM ( Pro1 )
Pro1 = CREATE_CHAR ( 126.5 , 116.5 , 2.0 ) 0 270 POLICE END
SET_CHAR_GRAPHIC_TYPE ( Pro1 , EMERG_GRAPHIC , 0 )
SET_CHAR_THREAT_SEARCH ( Pro1 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro1 , LOONY )
SET_CHAR_INVINCIBLE ( Pro1 , ON )
ADD_PATROL_POINT ( Pro1 , 117.5 , 116.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 101.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 139.5 , 101.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 139.5 , 104.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 127.5 , 104.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 127.5 , 102.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 102.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 117.5 , 116.5 , 2.0 )
ADD_PATROL_POINT ( Pro1 , 126.5 , 116.5 , 2.0 )
SET_CHAR_MAX_RUNSPEED ( Pro1 , 0.065 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Pro2 ) )
DELETE_ITEM ( Pro2 )
Pro2 = CREATE_CHAR ( 95.5 , 94.5 , 2.0 ) 0 90 POLICE END
SET_CHAR_GRAPHIC_TYPE ( Pro2 , EMERG_GRAPHIC , 0 )
SET_CHAR_THREAT_SEARCH ( Pro2 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro2 , LOONY )
SET_CHAR_INVINCIBLE ( Pro2 , ON )
ADD_PATROL_POINT ( Pro2 , 146.5 , 94.5 , 2.0 )
ADD_PATROL_POINT ( Pro2 , 146.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Pro2 , 95.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Pro2 , 95.5 , 94.5 , 2.0 )
SET_CHAR_MAX_RUNSPEED ( Pro2 , 0.065 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Pro3 ) )
DELETE_ITEM ( Pro3 )
Pro3 = CREATE_CHAR ( 110.5 , 110.2 , 5.0 ) 4 90 ARMY END
SET_CHAR_GRAPHIC_TYPE ( Pro3 , EMERG_GRAPHIC , 4 )
SET_CHAR_THREAT_SEARCH ( Pro3 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro3 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro3 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro3 , LOONY )
ADD_GROUP_TO_CHARACTER ( Pro3 , 0 )
GIVE_WEAPON ( Pro3 , MACHINE_GUN )
SET_CHAR_INVINCIBLE ( Pro3 , ON )
MAKE_CHAR_DO_NOTHING ( Pro3 )
SET_CHAR_MAX_RUNSPEED ( Pro3 , 0.075 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Pro4 ) )
DELETE_ITEM ( Pro4 )
Pro4 = CREATE_CHAR ( 110.5 , 110.7 , 5.0 ) 4 90 ARMY END
SET_CHAR_GRAPHIC_TYPE ( Pro4 , EMERG_GRAPHIC , 4 )
SET_CHAR_THREAT_SEARCH ( Pro4 , NO_THREATS )
SET_CHAR_THREAT_REACTION ( Pro4 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Pro4 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Pro4 , LOONY )
ADD_EXISTING_CHAR_TO_GROUP ( Pro3 , Pro4 )
GIVE_WEAPON ( Pro4 , MACHINE_GUN )
SET_CHAR_INVINCIBLE ( Pro4 , ON )
MAKE_CHAR_DO_NOTHING ( Pro4 )
SET_CHAR_MAX_RUNSPEED ( Pro4 , 0.075 )
ENDIF

ENDWHILE

LEVELEND