Making NPC's use Jeep gun?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
User avatar
Pyro
Immortal
Posts: 414
Joined: 17 Mar 2010, 04:07
GH nick: Pyro
Location: Wales, UK

Making NPC's use Jeep gun?

Post by Pyro »

Hey :)

Always wondered but is it even possible to make NPC's use the Jeep gun when they are inside an Armed Land Roamer? I've tried using things like USE_CAR_WEAPON and they sit inside doing nothing. Changing the threat search and reaction to against the player just makes him leave the Jeep. Then if I set his objective to FIRE_AT_OBJECT_FROM_VEHICLE whilst inside the Jeep it just crashes the game? I know that command works for Tanks at least... Any ideas?

I suppose the same could be applied for fire trucks and their water/fire cannon. :shock:

Razor
Lunatic
Lunatic
Posts: 453
Joined: 19 Jul 2008, 14:14
GH nick: Razor, R
Location: Poland / Szczecin
Contact:

Re: Making NPC's use Jeep gun?

Post by Razor »

Bot in Firetruck can use Cannon.

In Harbor Town bot uses it :)



Here you have script:

Code: Select all

//Script by CarThief. Website: www.carthief.come2me.nl//
PLAYER_PED Player1 = ( 140.5 , 133.5 , 2.0 ) 8 90
//PLAYER_PED Player2 = ( 141.5 , 131.5 , 2.0 ) 10 0
//PLAYER_PED Player3 = ( 134.5 , 130.5 , 4.0 ) 11 90
//PLAYER_PED Player4 = ( 132.5 , 132.5 , 6.0 ) 5 0
//PLAYER_PED Player5 = ( 142.5 , 135.5 , 2.0 ) 13 180
//PLAYER_PED Player6 = ( 137.5 , 128.5 , 2.0 ) 9 180
CRANE_DATA Crane1 = ( 134.5 , 153.5 ) 180 NO_HOMECRANE FIRST ( 134.5 , 156.5 ) 0
CRANE_DATA Crane2 = ( 134.5 , 159.5 ) 0 Crane1 SECOND ( 134.5 , 162.5 ) 0
CRUSHER Crusher1 = ( 134.5 , 156.5 )
CONVEYOR Conveyor1 = ( 138.5 , 157.5 , 3.0 ) ( 1.0 , 6.0 ) 0 -5
CONVEYOR Conveyor2 = ( 134.5 , 162.5 , 3.0 ) ( 5.0 , 1.0 ) 5 0
DESTRUCTOR Destructor2 = ( 138.5 , 160.5 , 3.0 ) ( 1.0 , 1.0 )
DESTRUCTOR Destructor3 = ( 137.5 , 162.5 , 3.0 ) ( 1.0 , 1.0 )
GENERATOR Generator1 = ( 138.5 , 159.5 , 3.0 ) 0 COLLECT_01 2 10 12
DECLARE_CRANE_POWERUP ( Crane2 , Generator1 , 136 , 162 , 3 )
DECLARE_POWERUP_CARLIST ( ALFA , DART , EDSEL , FIAT , GRAHAM , JEFFREY , GT24640 , MORGAN , MORRIS , SPIDER , STINGRAY , STYPE , STYPECAB , VESPA , WBTWIN , XK120 , MIURA , EDSELFBI , ISETTA )
CAR_DATA CopCar1 = ( 118.5 , 118.5 , 2.0 ) -1 90 COPCAR
CAR_DATA CopCar2 = ( 118.5 , 119.5 , 2.0 ) -1 90 COPCAR
CAR_DATA CopCar3 = ( 118.5 , 120.5 , 2.0 ) -1 90 COPCAR
CAR_DATA MEDICAR1 = ( 174.5 , 150.5 , 2.0 ) -1 180 MEDICAR
CAR_DATA MEDICAR2 = ( 175.5 , 150.5 , 2.0 ) -1 180 MEDICAR
CAR_DATA MEDICAR3 = ( 176.5 , 150.5 , 2.0 ) -1 180 MEDICAR
CAR_DATA Bus1 = ( 115.5 , 142.5 , 2.0 ) 1 180 BUS
CAR_DATA FBICar1 = ( 117.5 , 145.5 , 5.0 ) -1 0 EDSELFBI
CAR_DATA FBICar2 = ( 118.5 , 145.5 , 5.0 ) -1 180 EDSELFBI
CAR_DATA SWATVan1 = ( 126.5 , 118.5 , 2.0 ) -1 0 SWATVAN
CAR_DATA SWATVan2 = ( 128.5 , 118.5 , 2.0 ) -1 0 SWATVAN
CAR_DATA Pacifier1 = ( 127.5 , 144.5 , 2.0 ) -1 90 APC
CAR_DATA ALRoamer1 = ( 103.5 , 163.5 , 2.0 ) -1 270 GUNJEEP
CAR_DATA ALRoamer2 = ( 103.5 , 164.5 , 2.0 ) -1 270 GUNJEEP
CAR_DATA Eddie1 = ( 136.5 , 131.5 , 2.0 ) 1 90 EDSEL
CAR_DATA Eddie2 = ( 138.5 , 131.5 , 2.0 ) 34 90 EDSEL
CAR_DATA Bulwark1 = ( 136.5 , 134.5 , 2.0 ) 32 90 BUICK
CAR_DATA Bulwark2 = ( 138.5 , 134.5 , 2.0 ) 34 90 BUICK
CAR_DATA KBus1 = ( 116.5 , 167.5 , 2.0 ) -1 0 KRSNABUS
CHAR_DATA Bot1
CHAR_DATA Bot2
CHAR_DATA Bot3
CHAR_DATA Bot4
CHAR_DATA Bot5
CHAR_DATA Bot6
DECLARE_POLICELEVEL ( 5 )
COUNTER Loop = 1

DECLARE_DOOR_INFO ( 928 , 935 , 2 )
DOOR_DATA Stationdoor1 = SINGLE ( 104 , 126 , 2 ) ( 104.0 , 126.0 , 2.0 , 3.0 , 3.0 ) RIGHT 0 ONE_MODEL CLOSE_WHEN_CLEAR 20 NOT_FLIPPED NOT_REVERSED TRAINCAB
DOOR_DATA Stationdoor2 = SINGLE ( 116 , 126 , 2 ) ( 116.0 , 126.0 , 2.0 , 3.0 , 3.0 ) LEFT 0 ONE_MODEL CLOSE_WHEN_CLEAR 20 NOT_FLIPPED NOT_REVERSED TRAINCAB
DOOR_DATA Stationdoor3 = SINGLE ( 136 , 174 , 2 ) ( 136.0 , 174.0 , 2.0 , 3.0 , 3.0 ) RIGHT 0 ONE_MODEL CLOSE_WHEN_CLEAR 20 NOT_FLIPPED NOT_REVERSED TRAINCAB
DOOR_DATA Stationdoor4 = SINGLE ( 146 , 174 , 2 ) ( 146.0 , 174.0 , 2.0 , 3.0 , 3.0 ) LEFT 0 ONE_MODEL CLOSE_WHEN_CLEAR 20 NOT_FLIPPED NOT_REVERSED TRAINCAB
SET_STATION_INFO ( trak00 , 2 , 0 , 0 )
SET_STATION_INFO ( trak01 , NO_TRAIN )
OBJ_DATA Blocker1 = ( 130.5 , 169.5 , 1.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA Blocker2 = ( 117.5 , 165.5 , 1.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA Blocker3 = ( 98.5 , 148.5 , 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA Blocker4 = ( 103.5 , 126.5 , 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA Blocker5 = ( 117.5 , 126.5 , 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA Blocker6 = ( 150.5 , 159.5 , 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA Football1 = ( 115.5 , 173.5 , 2.0 ) 0 FOOTY
GENERATOR Invunrability1 = ( 98.5 , 144.5 , 5.0 ) 0 COLLECT_34 1800 2990 1
GENERATOR Flamethrower1 = ( 108.5 , 156.5 , 2.0 ) 0 COLLECT_08 1800 2990 12
GENERATOR Uzi1 = ( 121.5 , 184.5 , 3.0 ) 0 COLLECT_01 1800 2990 12
GENERATOR SUzi1 = ( 130.5 , 184.5 , 3.0 ) 0 COLLECT_09 1800 2990 12
GENERATOR Armor1 = ( 140.5 , 143.5 , 4.0 ) 0 COLLECT_31 1800 2990 1
GENERATOR Bomb1 = ( 141.5 , 143.5 , 4.0 ) 0 COLLECT_15 1800 2990 4
GENERATOR Uzi2 = ( 110.5 , 143.5 , 4.0 ) 0 COLLECT_01 1800 2990 12
GENERATOR ElectroGun1 = ( 114.5 , 144.5 , 6.0 ) 0 COLLECT_03 1800 2990 8
GENERATOR Molotov1 = ( 175.5 , 139.5 , 6.0 ) 0 COLLECT_04 1800 2990 16
GENERATOR SUzi2 = ( 179.5 , 150.5 , 7.0 ) 0 COLLECT_09 1800 2990 12
GENERATOR Rocket1 = ( 115.5 , 171.5 , 3.0 ) 0 COLLECT_02 1800 2990 6
GENERATOR Rocket2 = ( 144.5 , 156.5 , 4.0 ) 0 COLLECT_02 1800 2990 6
GENERATOR Bribe1 = ( 115.5 , 175.5 , 3.0 ) 0 COLLECT_33 1800 2990 1
OBJ_DATA OilShop1 = ( 134.5 , 116.5 , 2.0 ) 0 CAR_SHOP OILSLICK_SHOP
OBJ_DATA SprayShop1 = ( 112.5 , 145.5 , 2.0 ) 0 CAR_SHOP 34
COUNTER Target = 1
ARROW_DATA Bot1Arrow
ARROW_DATA Bot2Arrow
ARROW_DATA Bot3Arrow
ARROW_DATA Bot4Arrow
ARROW_DATA Bot5Arrow
ARROW_DATA Bot6Arrow
GENERATOR Health1 = ( 121.5 , 161.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR Health2 = ( 113.5 , 141.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR Health3 = ( 122.5 , 117.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR Health4 = ( 179.5 , 146.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR Health5 = ( 142.5 , 170.5 , 2.0 ) 0 COLLECT_30 1800 2990 1

LEVELSTART
Bot1 = CREATE_CHAR ( 112.5 , 135.5 , 3.0 ) 12 90 FBI END
SET_CHAR_THREAT_SEARCH ( Bot1 , AREA )
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 , ICECREAM )
GIVE_WEAPON ( Bot1 , ELECTRO_GUN )
POINT_ARROW_AT ( Bot1Arrow , Bot1 )

Bot2 = CREATE_CHAR ( 141.5 , 160.5 , 3.0 ) -1 180 FBI END
SET_CHAR_THREAT_SEARCH ( Bot2 , AREA )
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 , EDSELFBI )
GIVE_WEAPON ( Bot2 , SILENCED_MACHINE_GUN )
POINT_ARROW_AT ( Bot2Arrow , Bot2 )

Bot3 = CREATE_CHAR ( 116.5 , 149.5 , 3.0 ) 4 270 ARMY END
SET_CHAR_THREAT_SEARCH ( Bot3 , AREA )
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 , APC )
GIVE_WEAPON ( Bot3 , MACHINE_GUN )
POINT_ARROW_AT ( Bot3Arrow , Bot3 )

Bot4 = CREATE_CHAR ( 122.5 , 144.5 , 6.0 ) 5 0 FBI END
SET_CHAR_THREAT_SEARCH ( Bot4 , AREA )
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 , TRANCEAM )
GIVE_WEAPON ( Bot4 , SHOTGUN )
POINT_ARROW_AT ( Bot4Arrow , Bot4 )

Bot5 = CREATE_CHAR ( 136.5 , 150.5 , 3.0 ) 14 0 FIREMAN END
SET_CHAR_THREAT_SEARCH ( Bot5 , AREA )
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 , FIRETRUK )
GIVE_WEAPON ( Bot5 , FLAME_THROWER )
POINT_ARROW_AT ( Bot5Arrow , Bot5 )

Bot6 = CREATE_CHAR ( 113.5 , 156.5 , 3.0 ) 11 0 PSYCHO END
SET_CHAR_THREAT_SEARCH ( Bot6 , AREA )
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 , FIRETRUK )
GIVE_WEAPON ( Bot6 , ROCKET_LAUNCHER )
POINT_ARROW_AT ( Bot6Arrow , Bot6 )

SWITCH_GENERATOR ( Invunrability1 , ON )
SWITCH_GENERATOR ( Flamethrower1 , ON )
SWITCH_GENERATOR ( Uzi1 , ON )
SWITCH_GENERATOR ( SUzi1 , ON )
SWITCH_GENERATOR ( Armor1 , ON )
SWITCH_GENERATOR ( Bomb1 , ON )
SWITCH_GENERATOR ( Uzi2 , ON )
SWITCH_GENERATOR ( ElectroGun1 , ON )
SWITCH_GENERATOR ( Molotov1 , ON )
SWITCH_GENERATOR ( SUzi2 , ON )
SWITCH_GENERATOR ( Rocket1 , ON )
SWITCH_GENERATOR ( Rocket2 , ON )
SWITCH_GENERATOR ( Bribe1 , ON )
SWITCH_GENERATOR ( Health1 , ON )
SWITCH_GENERATOR ( Health2 , ON )
SWITCH_GENERATOR ( Health3 , ON )
SWITCH_GENERATOR ( Health4 , ON )
SWITCH_GENERATOR ( Health5 , ON )

SET_CAR_ROCKETPROOF ( ALRoamer1 , ON )
SET_CAR_FLAMEPROOF ( ALRoamer1 , ON )
SET_CAR_ROCKETPROOF ( ALRoamer2 , ON )
SET_CAR_FLAMEPROOF ( ALRoamer2 , ON )
SET_CAR_BULLETPROOF ( CopCar1 , ON )
SET_CAR_BULLETPROOF ( CopCar2 , ON )
SET_CAR_BULLETPROOF ( CopCar3 , ON )
SET_CAR_BULLETPROOF ( Medicar1 , ON )
SET_CAR_BULLETPROOF ( Medicar2 , ON )
SET_CAR_BULLETPROOF ( Medicar3 , ON )
SET_CAR_BULLETPROOF ( Bus1 , ON )
SET_CAR_BULLETPROOF ( FBICar1 , ON )
SET_CAR_BULLETPROOF ( FBICar2 , ON )
SET_CAR_BULLETPROOF ( SWATVan1 , ON )
SET_CAR_BULLETPROOF ( SWATVan2 , ON )
SET_CAR_BULLETPROOF ( Pacifier1 , ON )
SET_CAR_FLAMEPROOF ( Pacifier1 , ON )
GIVE_WEAPON ( ALRoamer1 , CAR_FLAMETHROWER )
GIVE_WEAPON ( ALRoamer2 , CAR_FLAMETHROWER )
GIVE_WEAPON ( ALRoamer1 , JEEP_GUN )
GIVE_WEAPON ( ALRoamer2 , JEEP_GUN )
GIVE_WEAPON ( ALRoamer1 , JEEP_GUN )
GIVE_WEAPON ( ALRoamer2 , JEEP_GUN )
GIVE_CAR_ALARM ( FBICar1 )
GIVE_CAR_ALARM ( FBICar2 )
SET_CAR_EMERG_LIGHTS ( FBICar1 , ON )
SET_CAR_EMERG_LIGHTS ( FBICar2 , ON )
SET_CAR_BULLETPROOF ( Eddie1 , ON )
SET_CAR_BULLETPROOF ( Eddie2 , ON )
SET_CAR_BULLETPROOF ( Bulwark1 , ON )
SET_CAR_BULLETPROOF ( Bulwark2 , ON )
SET_CAR_BULLETPROOF ( KBus1 , ON )

WHILE_EXEC ( Loop = 1 )

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
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 5
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player5 ) 
SET Target = 6
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player6 ) 
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
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 5
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player5 ) 
SET Target = 6
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player6 ) 
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
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 5
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player5 ) 
SET Target = 6
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player6 ) 
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
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 5
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player5 ) 
SET Target = 6
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player6 ) 
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
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 5
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player5 ) 
SET Target = 6
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player6 ) 
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
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 5
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player5 ) 
SET Target = 6
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player6 ) 
SET Target = 1
ENDIF*/
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot1 ) )
REMOVE_ARROW ( Bot1Arrow )
EXPLODE ( Bot1 )
DELETE_ITEM ( Bot1 )
Bot1 = CREATE_CHAR ( 112.5 , 135.5 , 3.0 ) 12 90 FBI END
SET_CHAR_THREAT_SEARCH ( Bot1 , AREA )
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 , ICECREAM )
GIVE_WEAPON ( Bot1 , ELECTRO_GUN )
POINT_ARROW_AT ( Bot1Arrow , Bot1 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player2 ) 
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player3 ) 
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player4 ) 
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player5 ) 
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player6 ) 
ENDIF
*/ENDIF

IF ( HAS_CHARACTER_DIED ( Bot2 ) )
REMOVE_ARROW ( Bot2Arrow )
EXPLODE ( Bot2 )
DELETE_ITEM ( Bot2 )
Bot2 = CREATE_CHAR ( 141.5 , 160.5 , 3.0 ) -1 180 FBI END
SET_CHAR_THREAT_SEARCH ( Bot2 , AREA )
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 , EDSELFBI )
GIVE_WEAPON ( Bot2 , SILENCED_MACHINE_GUN )
POINT_ARROW_AT ( Bot2Arrow , Bot2 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player2 ) 
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player3 ) 
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player4 ) 
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player5 ) 
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player6 ) 
ENDIF
*/ENDIF

IF ( HAS_CHARACTER_DIED ( Bot3 ) )
REMOVE_ARROW ( Bot3Arrow )
EXPLODE ( Bot3 )
DELETE_ITEM ( Bot3 )
Bot3 = CREATE_CHAR ( 116.5 , 149.5 , 3.0 ) 4 270 ARMY END
SET_CHAR_THREAT_SEARCH ( Bot3 , AREA )
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 , TANK )
GIVE_WEAPON ( Bot3 , MACHINE_GUN )
POINT_ARROW_AT ( Bot3Arrow , Bot3 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player2 ) 
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player3 ) 
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player4 ) 
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player5 ) 
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player6 ) 
ENDIF
*/ENDIF

IF ( HAS_CHARACTER_DIED ( Bot4 ) )
REMOVE_ARROW ( Bot4Arrow )
EXPLODE ( Bot4 )
DELETE_ITEM ( Bot4 )
Bot4 = CREATE_CHAR ( 122.5 , 144.5 , 6.0 ) 5 0 FBI END
SET_CHAR_THREAT_SEARCH ( Bot4 , AREA )
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 , TRANCEAM )
GIVE_WEAPON ( Bot4 , SHOTGUN )
POINT_ARROW_AT ( Bot4Arrow , Bot4 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player2 ) 
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player3 ) 
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player4 ) 
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player5 ) 
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player6 ) 
ENDIF
*/ENDIF

IF ( HAS_CHARACTER_DIED ( Bot5 ) )
REMOVE_ARROW ( Bot5Arrow )
EXPLODE ( Bot5 )
DELETE_ITEM ( Bot5 )
Bot5 = CREATE_CHAR ( 136.5 , 150.5 , 3.0 ) 14 0 FIREMAN END
SET_CHAR_THREAT_SEARCH ( Bot5 , AREA )
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 , FIRETRUK )
GIVE_WEAPON ( Bot5 , FLAME_THROWER )
POINT_ARROW_AT ( Bot5Arrow , Bot5 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player2 ) 
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player3 ) 
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player4 ) 
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player5 ) 
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player6 ) 
ENDIF
*/ENDIF

IF ( HAS_CHARACTER_DIED ( Bot6 ) )
REMOVE_ARROW ( Bot6Arrow )
EXPLODE ( Bot6 )
DELETE_ITEM ( Bot6 )
Bot6 = CREATE_CHAR ( 113.5 , 156.5 , 3.0 ) 11 0 PSYCHO END
SET_CHAR_THREAT_SEARCH ( Bot6 , AREA )
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 , ISETLIMO )
GIVE_WEAPON ( Bot6 , ROCKET_LAUNCHER )
POINT_ARROW_AT ( Bot6Arrow , Bot6 )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player1 ) 
ENDIF
/*IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player2 ) 
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player3 ) 
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player4 ) 
ENDIF
IF ( Target = 5 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player5 ) 
ENDIF
IF ( Target = 6 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player6 ) 
ENDIF
*/ENDIF

IF ( Target = 1 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot1 , Player1 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot1 ) ) )
EXPLODE_LARGE ( Bot1 )
ENDIF
ENDIF
ENDIF
/*
IF ( Target = 2 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot1 , Player2 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot1 ) ) )
EXPLODE_LARGE ( Bot1 )
ENDIF
ENDIF
ENDIF

IF ( Target = 3 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot1 , Player3 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot1 ) ) )
EXPLODE_LARGE ( Bot1 )
ENDIF
ENDIF
ENDIF

IF ( Target = 4 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot1 , Player4 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot1 ) ) )
EXPLODE_LARGE ( Bot1 )
ENDIF
ENDIF
ENDIF

IF ( Target = 5 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot1 , Player5 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot1 ) ) )
EXPLODE_LARGE ( Bot1 )
ENDIF
ENDIF
ENDIF

IF ( Target = 6 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot1 , Player6 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot1 ) ) )
EXPLODE_LARGE ( Bot1 )
ENDIF
ENDIF
ENDIF
*/

IF ( Target = 1 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot4 , Player1 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot4 ) ) )
EXPLODE_LARGE ( Bot4 )
ENDIF
ENDIF
ENDIF
/*
IF ( Target = 2 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot4 , Player2 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot4 ) ) )
EXPLODE_LARGE ( Bot4 )
ENDIF
ENDIF
ENDIF

IF ( Target = 3 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot4 , Player3 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot4 ) ) )
EXPLODE_LARGE ( Bot4 )
ENDIF
ENDIF
ENDIF

IF ( Target = 4 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot4 , Player4 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot4 ) ) )
EXPLODE_LARGE ( Bot4 )
ENDIF
ENDIF
ENDIF

IF ( Target = 5 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot4 , Player5 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot4 ) ) )
EXPLODE_LARGE ( Bot4 )
ENDIF
ENDIF
ENDIF

IF ( Target = 6 )
IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( Bot4 , Player6 , 2.0 , 2.0 ) )
IF ( NOT ( HAS_CHARACTER_DIED ( Bot4 ) ) )
EXPLODE_LARGE ( Bot4 )
ENDIF
ENDIF
ENDIF*/

ENDWHILE

LEVELEND

Shazdeh
Psycho
Psycho
Posts: 60
Joined: 29 Jul 2009, 20:22
GH nick: Dont_have_yet

Re: Making NPC's use Jeep gun?

Post by Shazdeh »

Sounds like a delicious snippet to me! Could you cut out the portions that are not relevant and post it?

Razor
Lunatic
Lunatic
Posts: 453
Joined: 19 Jul 2008, 14:14
GH nick: Razor, R
Location: Poland / Szczecin
Contact:

Re: Making NPC's use Jeep gun?

Post by Razor »

TRY THIS:

Code: Select all

SET_CHAR_TO_USE_CAR_WEAPON ( x , ON )
SET_FAVOURITE_MODEL ( x, GUNJEEP )

Post Reply