////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////GTA2 MULTIPLAYER TRAINER///////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////

PLAYER_PED p1 = ( 52.5 , 194.5 , 2.0 ) 25 270

PARKED_CAR_DATA car01 = ( 83.5 , 190.5 , 4.0 ) 13 270 GRAHAM
PARKED_CAR_DATA car02 = ( 82.5 , 182.5 , 2.0 ) 4 90 RTYPE
PARKED_CAR_DATA car03 = ( 84.5 , 182.5 , 2.0 ) 2 0 STRATOSB
PARKED_CAR_DATA car04 = ( 61.5 , 195.5 , 2.0 ) 17 180 XK120
PARKED_CAR_DATA car05 = ( 101.5 , 177.5 , 2.0 ) 11 90 T2000GT
PARKED_CAR_DATA car06 = ( 113.5 , 170.5 , 2.0 ) 6 315 EDSEL
PARKED_CAR_DATA bus01 = ( 87.5 , 182.5 , 2.0 ) -1 180 BUS
PARKED_CAR_DATA tank01 = ( 65.5 , 181.5 , 6.0 ) -1 0 TANK

	// CPU characters
CHAR_DATA tekbot1a // SRS - Silenced Machine Gun
CHAR_DATA tekbot1b // SRS - Flamer
CHAR_DATA tekbot2a // Russian - Shotgun
CHAR_DATA tekbot2b // Russian - Rocket Launcher

	// arrows
ARROW_DATA tekbot1_arrow // Yellow arrow
ARROW_DATA tekbot2_arrow // Red arrow

	// player weapons
GENERATOR mgun01 = ( 75.5 , 188.5 , 2.0 ) 0 collect_01 1500 1500 20
GENERATOR mgun02 = ( 89.5 , 185.5 , 2.0 ) 0 collect_01 1500 1500 20
GENERATOR mgun03 = ( 62.5 , 174.5 , 2.0 ) 0 collect_01 1500 1500 20
GENERATOR shotgun01 = ( 83.5 , 188.5 , 4.0 ) 0 collect_06 1500 1500 10
GENERATOR grenades01 = ( 72.5 , 175.5 , 3.0 ) 0 collect_05 1500 1500 10
GENERATOR flamer01 = ( 63.5 , 171.5 , 4.0 ) 0 collect_08 1500 1500 10
GENERATOR electro01 = ( 91.5 , 159.5 , 2.0 ) 0 collect_03 1500 1500 10
GENERATOR rocket01 = ( 91.5 , 158.5 , 2.0 ) 0 collect_02 1500 1500 5
GENERATOR molotov01 = ( 118.5 , 168.5 , 2.0 ) 0 collect_04 1500 1500 10
GENERATOR smgun01 = ( 103.5 , 193.5 , 2.0 ) 0 collect_09 1500 1500 20
GENERATOR dual01 = ( 113.5 , 196.5 , 2.0 ) 0 collect_10 1500 1500 25
	// player armour & health
GENERATOR health01 = ( 92.5 , 185.5 , 2.0 ) 0 collect_30 1500 1500 10
GENERATOR health02 = ( 51.5 , 165.5 , 2.0 ) 0 collect_30 1500 1500 10
GENERATOR armour01 = ( 63.5 , 187.5 , 2.0 ) 0 collect_31 1500 1500 10
GENERATOR armour02 = ( 112.5 , 174.5 , 2.0 ) 0 collect_31 1500 1500 10
	// vehicle weapons
GENERATOR vmgun01 = ( 118.5 , 177.5 , 2.0 ) 0 collect_18 1500 1500 10
GENERATOR vmine01 = ( 106.5 , 196.5 , 2.0 ) 0 collect_17 1500 1500 5
GENERATOR voil01 = ( 79.5 , 182.5 , 4.0 ) 0 collect_16 1500 1500 10
	// bonus items
GENERATOR gang01 = ( 62.5 , 183.5 , 2.0 ) 0 collect_40 1500 1500 8
GENERATOR gang02 = ( 100.5 , 173.5 , 2.0 ) 0 collect_40 1500 1500 8
GENERATOR multiplier01 = ( 49.5 , 177.5 , 2.0 ) 0 collect_28 7500 7500 1
GENERATOR rapidfire01 = ( 67.5 , 197.5 , 4.0 ) 0 collect_36 5500 5500 1
GENERATOR dbldmg01 = ( 68.5 , 197.5 , 4.0 ) 0 collect_35 5500 5500 1

COUNTER neverends = 1

DECLARE_POLICELEVEL ( 4 )

LEVELSTART

tekbot1a = CREATE_CHAR ( 98.5 , 175.5 , 2.0 ) 7 0 ANY_GANG_MEMBER END
tekbot2a = CREATE_CHAR ( 67.5 , 161.5 , 2.0 ) 10 90 ANY_GANG_MEMBER END

SET_ARROW_COLOUR ( tekbot1_arrow , YELLOW )
SET_ARROW_COLOUR ( tekbot2_arrow , RED )

POINT_ARROW_AT ( tekbot1_arrow , tekbot1a )
POINT_ARROW_AT ( tekbot2_arrow , tekbot2a )

GIVE_WEAPON ( p1 , machine_gun , 35 )
GIVE_WEAPON ( tekbot1a , silenced_machine_gun )
GIVE_WEAPON ( tekbot2a , shotgun )

SWITCH_GENERATOR ( mgun01 , ON )
SWITCH_GENERATOR ( mgun02 , ON )
SWITCH_GENERATOR ( mgun03 , ON )
SWITCH_GENERATOR ( shotgun01 , ON )
SWITCH_GENERATOR ( grenades01 , ON )
SWITCH_GENERATOR ( flamer01 , ON )
SWITCH_GENERATOR ( electro01 , ON )
SWITCH_GENERATOR ( rocket01 , ON )
SWITCH_GENERATOR ( molotov01 , ON )
SWITCH_GENERATOR ( smgun01 , ON )
SWITCH_GENERATOR ( dual01 , ON )
SWITCH_GENERATOR ( health01 , ON )
SWITCH_GENERATOR ( health02 , ON )
SWITCH_GENERATOR ( armour01 , ON )
SWITCH_GENERATOR ( armour02 , ON )
SWITCH_GENERATOR ( vmgun01 , ON )
SWITCH_GENERATOR ( vmine01 , ON )
SWITCH_GENERATOR ( voil01 , ON )
SWITCH_GENERATOR ( gang01 , ON )
SWITCH_GENERATOR ( gang02 , ON )
SWITCH_GENERATOR ( multiplier01 , ON )
SWITCH_GENERATOR ( rapidfire01 , ON )
SWITCH_GENERATOR ( dbldmg01 , ON )

SET_CHAR_THREAT_SEARCH ( tekbot1a , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_SEARCH ( tekbot2a , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( tekbot1a , REACT_AS_NORMAL )
SET_CHAR_THREAT_REACTION ( tekbot2a , REACT_AS_NORMAL )
SET_CHAR_OBJECTIVE ( tekbot1a , KILL_CHAR_ANY_MEANS , p1 )
SET_CHAR_OBJECTIVE ( tekbot2a , KILL_CHAR_ANY_MEANS , p1 )
SET_CHAR_DRIVE_AGGRESSION ( tekbot1a , ON )
SET_CHAR_DRIVE_AGGRESSION ( tekbot2a , ON )

WHILE_EXEC ( neverends = 1 )

	IF ( HAS_CHARACTER_DIED ( tekbot1a ) )
	DELETE_ITEM ( tekbot1a )
	DELAY_HERE ( 60 )
	tekbot1b = CREATE_CHAR ( 98.5 , 175.5 , 2.0 ) 7 0 ANY_GANG_MEMBER END
	GIVE_WEAPON ( tekbot1b , flame_thrower )
	SET_CHAR_THREAT_SEARCH ( tekbot1b , AREA_PLAYER_ONLY )
	SET_CHAR_THREAT_REACTION ( tekbot1b , REACT_AS_NORMAL )
	SET_CHAR_OBJECTIVE ( tekbot1b , KILL_CHAR_ANY_MEANS , p1 )
	SET_CHAR_DRIVE_AGGRESSION ( tekbot1b , ON )
	POINT_ARROW_AT ( tekbot1_arrow , tekbot1b )
	ADD_LIVES ( p1 , 1 )
	ENDIF

	IF ( HAS_CHARACTER_DIED ( tekbot1b ) )
	DELETE_ITEM ( tekbot1b )
	DELAY_HERE ( 60 )
	tekbot1a = CREATE_CHAR ( 98.5 , 175.5 , 2.0 ) 7 0 ANY_GANG_MEMBER END
	GIVE_WEAPON ( tekbot1a , silenced_machine_gun )
	SET_CHAR_THREAT_SEARCH ( tekbot1a , AREA_PLAYER_ONLY )
	SET_CHAR_THREAT_REACTION ( tekbot1a , REACT_AS_NORMAL )
	SET_CHAR_OBJECTIVE ( tekbot1a , KILL_CHAR_ANY_MEANS , p1 )
	SET_CHAR_DRIVE_AGGRESSION ( tekbot1a , ON )
	POINT_ARROW_AT ( tekbot1_arrow , tekbot1a )
	ADD_LIVES ( p1 , 1 )
	ENDIF

	IF ( HAS_CHARACTER_DIED ( tekbot2a ) )
	DELETE_ITEM ( tekbot2a )
	DELAY_HERE ( 60 )
	tekbot2b = CREATE_CHAR ( 67.5 , 161.5 , 2.0 ) 10 0 ANY_GANG_MEMBER END
	GIVE_WEAPON ( tekbot2b , rocket_launcher )
	SET_CHAR_THREAT_SEARCH ( tekbot2b , AREA_PLAYER_ONLY )
	SET_CHAR_THREAT_REACTION ( tekbot2b , REACT_AS_NORMAL )
	SET_CHAR_OBJECTIVE ( tekbot2b , KILL_CHAR_ANY_MEANS , p1 )
	SET_CHAR_DRIVE_AGGRESSION ( tekbot2b , ON )
	POINT_ARROW_AT ( tekbot2_arrow , tekbot2b )
	ADD_LIVES ( p1 , 1 )
	ENDIF

	IF ( HAS_CHARACTER_DIED ( tekbot2b ) )
	DELETE_ITEM ( tekbot2b )
	DELAY_HERE ( 60 )
	tekbot2a = CREATE_CHAR ( 67.5 , 161.5 , 2.0 ) 10 0 ANY_GANG_MEMBER END
	GIVE_WEAPON ( tekbot2a , shotgun )
	SET_CHAR_THREAT_SEARCH ( tekbot2a , AREA_PLAYER_ONLY )
	SET_CHAR_THREAT_REACTION ( tekbot2a , REACT_AS_NORMAL )
	SET_CHAR_OBJECTIVE ( tekbot2a , KILL_CHAR_ANY_MEANS , p1 )
	SET_CHAR_DRIVE_AGGRESSION ( tekbot2a , ON )
	POINT_ARROW_AT ( tekbot2_arrow , tekbot2a )
	ADD_LIVES ( p1 , 1 )
	ENDIF

   DO_NOWT

ENDWHILE

LEVELEND