// GTA2 SAN ANDREAS

// directions: 0 = South, 90 = East, 180 = North, 270 = West

// PLAYER SETUP
PLAYER_PED p1 = ( 80.5 , 250.5 , 2.0 ) 25 180
//PLAYER_PED p1 = ( 249.7 , 86.5 , 2.0 ) 25 90

// ARROWS
ARROW_DATA end_arrow
ARROW_DATA arrow1

// PARKED CARS
	// players car
PARKED_CAR_DATA playercar = ( 252.2 , 86.5 , 2.0 ) 28 180 TBIRD // T-Rex
PARKED_CAR_DATA cop = ( 80.5 , 249.5 , 2.0 ) 35 90 COPCAR

	// parked cars
PARKED_CAR_DATA car01 = ( 252.2 , 78.5 , 2.0 ) 13 0 GRAHAM // Shark
PARKED_CAR_DATA car02 = ( 244.2 , 102.5 , 2.0 ) 16 270 VAN // Van
PARKED_CAR_DATA car03 = ( 213.5 , 57.5 , 3.0 ) 4 90 STRIPETB // Hachura
PARKED_CAR_DATA car04 = ( 7.5 , 10.5 , 5.0 ) 7 270 ALLARD // Wellard
PARKED_CAR_DATA car05 = ( 23.5 , 27.5 , 5.0 ) 9 90 MIURA // Miara
PARKED_CAR_DATA car06 = ( 83.5 , 24.5 , 5.0 ) 12 270 XK120 // Jugular
PARKED_CAR_DATA car07 = ( 15.5 , 88.5 , 1.0 ) 17 180 STYPE // B-Type
PARKED_CAR_DATA car08 = ( 20.5 , 88.5 , 1.0 ) -1 0 TAXI // Taxi
PARKED_CAR_DATA car09 = ( 18.5 , 90.5 , 1.0 ) -1 180 TAXI // Taxi
PARKED_CAR_DATA car10 = ( 21.5 , 92.5 , 1.0 ) 2 180 MORGAN // Morton
PARKED_CAR_DATA car11 = ( 13.5 , 92.5 , 1.0 ) 18 0 ALFA // Romero
PARKED_CAR_DATA car12 = ( 196.5 , 64.5 , 2.0 ) 4 270 STRATOS // Meteor
PARKED_CAR_DATA car13 = ( 195.5 , 89.5 , 1.0 ) -1 270 COPCAR // Cop Car
PARKED_CAR_DATA car14 = ( 193.5 , 93.5 , 1.0 ) -1 180 COPCAR // Cop Car
PARKED_CAR_DATA car15 = ( 183.5 , 89.5 , 1.0 ) -1 90 COPCAR // Cop Car
PARKED_CAR_DATA car16 = ( 5.2 , 159.5 , 2.0 ) -1 180 TAXI // Taxi
PARKED_CAR_DATA car17 = ( 22.5 , 248.0 , 2.0 ) 5 180 VTYPE // Z-Type
PARKED_CAR_DATA car18 = ( 230.5 , 249.3 , 2.0 ) 17 270 EDSEL // Eddy
PARKED_CAR_DATA car19 = ( 245.5 , 201.5 , 2.0 ) 15 0 SPIDER // Arachnid
PARKED_CAR_DATA car20 = ( 173.5 , 211.5 , 2.0 ) 19 90 BUG // Bug
PARKED_CAR_DATA car21 = ( 150.5 , 180.2 , 2.0 ) 10 270 MONSTER // Monster Bug
PARKED_CAR_DATA car22 = ( 78.5 , 139.5 , 2.0 ) 2 0 MIURA // Miara
PARKED_CAR_DATA car23 = ( 93.5 , 154.5 , 2.0 ) 2 180 MIURA // Miara
PARKED_CAR_DATA car24 = ( 190.5 , 225.2 , 2.0 ) 8 270 GRAHAM // Shark
PARKED_CAR_DATA car25 = ( 185.2 , 221.9 , 2.0 ) -1 0 VAN // Van
	// parked cop cars

	// parked ambulances

	// parked firetrucks

	// parked trucks, limos and buses... anything long really!
PARKED_CAR_DATA truck01 = ( 252.2 , 84.5 , 2.0 ) -1 180 BOXTRUCK // Boxtruck
PARKED_CAR_DATA truck02 = ( 30.5 , 226.5 , 2.0 ) 11 90 TRUKCAB2 // Truck Cab SX
PARKED_CAR_DATA truck03 = ( 102.5 , 249.7 , 2.0 ) 20 90 BOXTRUCK //Boxtruck
PARKED_CAR_DATA truck04 = ( 86.5 , 151.5 , 2.0 ) 6 180 BOXTRUCK // Boxtruck
PARKED_CAR_DATA limo01 = ( 22.0 , 244.5 , 2.0 ) 2 270 LIMO // Limo
PARKED_CAR_DATA bus01 = ( 89.5 , 90.0 , 1.0 ) -1 180 BUS // Bus
PARKED_CAR_DATA bus02 = ( 92.5 , 93.0 , 1.0 ) -1 0 BUS // Bus
PARKED_CAR_DATA bus03 = ( 95.5 , 90.0 , 1.0 ) -1 0 BUS // Bus

	// parked trailers
PARKED_CAR_DATA trailer01 = ( 38.5 , 225.5 , 2.0 ) 2 270 TRUKTRNS // Flatbed Trailer
PARKED_CAR_DATA trailer02 = ( 116.5 , 244.5 , 2.0 ) -1 270 TANKER // Tanker

	// kill frenzy vehicles
PARKED_CAR_DATA kf_v_tank01 = ( 190.5 , 29.5 , 4.0 ) -1 90 TANK // Tank

// OBJECTS
OBJ_DATA driver_phone = ( 11.3 , 88.5 , 1.0 ) 180 PHONE

// COUNTERS
COUNTER true = 1

// DECLARATIONS
DECLARE_FINISH_SCORE ( 3500000 ) // $3,500,000 to win level
DECLARE_POLICELEVEL ( 5 ) // max level is: FBI

// START LEVEL!! //
LEVELSTART

// Set the direction of TV Van dishes to the save point
SET_DIR_OF_TV_VANS ( 248.5 , 86.5 )

// Set the shading level of the map
SET_SHADING_LEVEL ( 20 )

// create new crane pylon
ADD_NEW_BLOCK ( 79 , 250 , 2 )
ADD_NEW_BLOCK ( 79 , 250 , 3 )
ADD_NEW_BLOCK ( 79 , 250 , 4 )

CHANGE_BLOCK TYPE ( 79 , 250 , 2 ) AIR 0
CHANGE_BLOCK TYPE ( 79 , 250 , 3 ) AIR 0
CHANGE_BLOCK TYPE ( 79 , 250 , 4 ) FIELD 0

CHANGE_BLOCK LID ( 79 , 250 , 4 ) FLAT NOT_FLIP 0 0 262

CHANGE_BLOCK SIDE ( 79 , 250 , 2 ) TOP WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 2 ) LEFT WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 2 ) RIGHT WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 2 ) BOTTOM WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 3 ) TOP WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 3 ) LEFT WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 3 ) RIGHT WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 3 ) BOTTOM WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 4 ) TOP WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 4 ) LEFT WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 4 ) RIGHT WALL NOT_BULLET FLAT NOT_FLIP 0 53
CHANGE_BLOCK SIDE ( 79 , 250 , 4 ) BOTTOM WALL NOT_BULLET FLAT NOT_FLIP 0 53

// create walkway to ship...
ADD_NEW_BLOCK ( 78 , 252 , 2 )
ADD_NEW_BLOCK ( 79 , 252 , 2 )
ADD_NEW_BLOCK ( 80 , 252 , 1 )
ADD_NEW_BLOCK ( 80 , 251 , 1 )

CHANGE_BLOCK TYPE ( 78 , 252 , 2 ) FIELD 6
CHANGE_BLOCK TYPE ( 79 , 252 , 2 ) FIELD 5
CHANGE_BLOCK TYPE ( 80 , 252 , 1 ) FIELD 0
CHANGE_BLOCK TYPE ( 80 , 251 , 1 ) FIELD 0

CHANGE_BLOCK LID ( 78 , 252 , 2 ) FLAT NOT_FLIP 0 90 333
CHANGE_BLOCK LID ( 79 , 252 , 2 ) FLAT NOT_FLIP 0 90 333
CHANGE_BLOCK LID ( 80 , 252 , 1 ) FLAT NOT_FLIP 0 180 321
CHANGE_BLOCK LID ( 80 , 251 , 1 ) FLAT NOT_FLIP 0 0 333

// create a ship... mid game!!!
// built in sections: right side, right side angle, left side, left side angle, bridge and deck
	// right side
ADD_NEW_BLOCK ( 77 , 255 , 1 )
ADD_NEW_BLOCK ( 77 , 254 , 1 )
ADD_NEW_BLOCK ( 77 , 253 , 1 )
ADD_NEW_BLOCK ( 77 , 252 , 1 )
ADD_NEW_BLOCK ( 77 , 251 , 1 )
ADD_NEW_BLOCK ( 77 , 250 , 1 )
ADD_NEW_BLOCK ( 77 , 255 , 2 )
ADD_NEW_BLOCK ( 77 , 254 , 2 )
ADD_NEW_BLOCK ( 77 , 253 , 2 )
ADD_NEW_BLOCK ( 77 , 252 , 2 )
ADD_NEW_BLOCK ( 77 , 251 , 2 )
ADD_NEW_BLOCK ( 77 , 250 , 2 )
CHANGE_BLOCK TYPE ( 77 , 255 , 1 ) AIR 0
CHANGE_BLOCK TYPE ( 77 , 254 , 1 ) AIR 0
CHANGE_BLOCK TYPE ( 77 , 253 , 1 ) AIR 0
CHANGE_BLOCK TYPE ( 77 , 252 , 1 ) AIR 0
CHANGE_BLOCK TYPE ( 77 , 251 , 1 ) AIR 0
CHANGE_BLOCK TYPE ( 77 , 250 , 1 ) AIR 0
CHANGE_BLOCK TYPE ( 77 , 255 , 2 ) FIELD 0
CHANGE_BLOCK TYPE ( 77 , 254 , 2 ) FIELD 0
CHANGE_BLOCK TYPE ( 77 , 253 , 2 ) FIELD 0
CHANGE_BLOCK TYPE ( 77 , 252 , 2 ) FIELD 0
CHANGE_BLOCK TYPE ( 77 , 251 , 2 ) FIELD 0
CHANGE_BLOCK TYPE ( 77 , 250 , 2 ) FIELD 0
CHANGE_BLOCK SIDE ( 77 , 255 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 254 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 253 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 252 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 251 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 250 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 255 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 77 , 254 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 77 , 253 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 77 , 252 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 77 , 251 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 77 , 250 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK LID ( 77 , 252 , 2 ) NOT_FLAT NOT_FLIP 0 0 225
CHANGE_BLOCK LID ( 77 , 251 , 2 ) NOT_FLAT NOT_FLIP 0 0 225
CHANGE_BLOCK LID ( 77 , 250 , 2 ) NOT_FLAT NOT_FLIP 0 0 225

	// right side angle
ADD_NEW_BLOCK ( 77 , 249 , 1 )
ADD_NEW_BLOCK ( 76 , 248 , 1 )
ADD_NEW_BLOCK ( 75 , 247 , 1 )
ADD_NEW_BLOCK ( 74 , 246 , 1 )
ADD_NEW_BLOCK ( 77 , 249 , 2 )
ADD_NEW_BLOCK ( 76 , 248 , 2 )
ADD_NEW_BLOCK ( 75 , 247 , 2 )
ADD_NEW_BLOCK ( 74 , 246 , 2 )
CHANGE_BLOCK TYPE ( 77 , 249 , 1 ) AIR 46
CHANGE_BLOCK TYPE ( 76 , 248 , 1 ) AIR 46
CHANGE_BLOCK TYPE ( 75 , 247 , 1 ) AIR 46
CHANGE_BLOCK TYPE ( 74 , 246 , 1 ) AIR 46
CHANGE_BLOCK TYPE ( 77 , 249 , 2 ) FIELD 46
CHANGE_BLOCK TYPE ( 76 , 248 , 2 ) FIELD 46
CHANGE_BLOCK TYPE ( 75 , 247 , 2 ) FIELD 46
CHANGE_BLOCK TYPE ( 74 , 246 , 2 ) FIELD 46
CHANGE_BLOCK SIDE ( 77 , 249 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 76 , 248 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 75 , 247 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 74 , 246 , 1 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 250
CHANGE_BLOCK SIDE ( 77 , 249 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 76 , 248 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 75 , 247 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK SIDE ( 74 , 246 , 2 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 0 251
CHANGE_BLOCK LID ( 77 , 249 , 2 ) NOT_FLAT NOT_FLIP 0 0 225
CHANGE_BLOCK LID ( 76 , 248 , 2 ) NOT_FLAT NOT_FLIP 0 0 225
CHANGE_BLOCK LID ( 75 , 247 , 2 ) NOT_FLAT NOT_FLIP 0 0 225
CHANGE_BLOCK LID ( 74 , 246 , 2 ) NOT_FLAT NOT_FLIP 0 0 225

	// left side
ADD_NEW_BLOCK ( 70 , 255 , 1 )
ADD_NEW_BLOCK ( 70 , 254 , 1 )
ADD_NEW_BLOCK ( 70 , 253 , 1 )
ADD_NEW_BLOCK ( 70 , 252 , 1 )
ADD_NEW_BLOCK ( 70 , 251 , 1 )
ADD_NEW_BLOCK ( 70 , 250 , 1 )
ADD_NEW_BLOCK ( 70 , 255 , 2 )
ADD_NEW_BLOCK ( 70 , 254 , 2 )
ADD_NEW_BLOCK ( 70 , 253 , 2 )
ADD_NEW_BLOCK ( 70 , 252 , 2 )
ADD_NEW_BLOCK ( 70 , 251 , 2 )
ADD_NEW_BLOCK ( 70 , 250 , 2 )

	// left side angle
ADD_NEW_BLOCK ( 70 , 249 , 1 )
ADD_NEW_BLOCK ( 71 , 248 , 1 )
ADD_NEW_BLOCK ( 72 , 247 , 1 )
ADD_NEW_BLOCK ( 73 , 246 , 1 )
ADD_NEW_BLOCK ( 70 , 249 , 2 )
ADD_NEW_BLOCK ( 71 , 248 , 2 )
ADD_NEW_BLOCK ( 72 , 247 , 2 )
ADD_NEW_BLOCK ( 73 , 246 , 2 )

	// bridge
		// left side
ADD_NEW_BLOCK ( 70 , 255 , 3 )
ADD_NEW_BLOCK ( 70 , 254 , 3 )
ADD_NEW_BLOCK ( 70 , 253 , 3 )
ADD_NEW_BLOCK ( 70 , 255 , 4 )
ADD_NEW_BLOCK ( 70 , 254 , 4 )
ADD_NEW_BLOCK ( 70 , 253 , 4 )
		// right side
ADD_NEW_BLOCK ( 77 , 255 , 3 )
ADD_NEW_BLOCK ( 77 , 254 , 3 )
ADD_NEW_BLOCK ( 77 , 253 , 3 )
ADD_NEW_BLOCK ( 77 , 255 , 4 )
ADD_NEW_BLOCK ( 77 , 254 , 4 )
ADD_NEW_BLOCK ( 77 , 253 , 4 )
		// front
ADD_NEW_BLOCK ( 71 , 253 , 3 )
ADD_NEW_BLOCK ( 72 , 253 , 3 )
ADD_NEW_BLOCK ( 73 , 253 , 3 )
ADD_NEW_BLOCK ( 74 , 253 , 3 )
ADD_NEW_BLOCK ( 75 , 253 , 3 )
ADD_NEW_BLOCK ( 76 , 253 , 3 )
ADD_NEW_BLOCK ( 71 , 253 , 4 )
ADD_NEW_BLOCK ( 72 , 253 , 4 )
ADD_NEW_BLOCK ( 73 , 253 , 4 )
ADD_NEW_BLOCK ( 74 , 253 , 4 )
ADD_NEW_BLOCK ( 75 , 253 , 4 )
ADD_NEW_BLOCK ( 76 , 253 , 4 )

WHILE_EXEC ( true = 1 )

DO_NOWT

ENDWHILE

LEVELEND