Return to index
Printable Version Abbreviations
GOURANGA! Forums > Editing > General > Gangs MP [gta2]
Post 1 | New
Razor
  • Joined: Jun '08
  • Posts: 13
Hello i have 2 problems with gangs

1. Gang members dont attacks players (p1, p2, p3, p4)
2. I wuld like to have only gang members in area (no citizens, policemans ect.)

How to do it?


My script

SET_GANG_INFO ( prisonm2 , 22 , pistol , machine_gun , rocket_launcher , 0 , 0.0 , 0.0 , 0.0 , 0 , copcar , -1 )
CHECK_RESPECT_GREATER  ( p1 , prisonm2 , -10 )
CHECK_RESPECT_LOWER ( p1  , prisonm2,  10 )
CHECK_RESPECT_EQUAL  ( p1 , prisonm2, 0 )


SET_CAR_DENSITY  ( prisonm2, 0 )
SET_GOODCAR_RATIO ( prisonm2, 0 )
SET_BADCAR_RATIO  ( prisonm2, 0 )
SET_POLICECAR_RATIO  ( prisonm2, 0 )
SET_PEDDENSITY  ( prisonm2, 0 )
SET_MUGGER_RATIO  ( prisonm2, 0 )
SET_CARTHIEF_RATIO  ( prisonm2 , 0 )
SET_ELVIS_RATIO  ( prisonm2, 0 )
SET_GANG_RATIO  ( prisonm2, 1000 )
SET_POLICEPED_RATIO  ( prisonm2, 0 )
Post 2 | New
Lantyz
  • Joined: Jul '08
  • Posts: 1
To have only gang members in a certain area, you'll have to cover the area with an information zone and use the MAP_ZONE command to tell the game which and how much peds and cars you want to roam the zone. I see you've used the SET_commands, but I personaly don't have experience with those. I think they're meant for changing zone-info mid-game.

Code:
MAP_ZONE name_zone = ( car_total , good_cars, bad_cars , police_cars , ped_total , pickpockets , car_thiefs , elvis_chains, gang_members , cops , gang_cars )


No value may be more than 1000. The "total"-values declare the amount of peds and cars, and the other values declare the promille of the total value. The promille of normal peds and average cars is the promille that's left by adding the other values and subtract this from the total value.

So, if you want a zone with only gangmembers and gangcars, the command should be something like this:

Code:
MAP_ZONE gangzone = ( 1000 , 0, 0 , 0 , 1000 , 0 , 0 , 0, 1000 , 0 , 1000 )


If you want less gang cars and -members, you should decrease the "total"-values.

To make sure a gang doesn't attack players, you just have to force the gangs to respect all players and make sure this respect doesn't change. This can be done with the CHANGE_GANG_CHAR_RESPECT  command

Code:
CHANGE_GANG_CHAR_RESPECT  ( gang_name  ,  player_name , respect )


The respect value has to be between -5 and 5, in your case this should be 5 for maximum respect. To prevent respect form changing, you have to set the respect-value in the SET_GANG_INFO to '0', but you've already done that.

Also, I see you're using the cop car as a gang car. If I recall correctly, you can't use special-purpose-vehicles as gang cars, so Cop Cars, Fire Trucks, Tanks, etc. can't be used.
Post 3 | New
Razor
  • Joined: Jun '08
  • Posts: 13
Code:

PLAYER_PED p1 = (156.5, 131.5, 2.0) 6 0
PLAYER_PED p2 = (138.5, 136.5, 2.0) 10 0
PLAYER_PED p3 = (142.5, 145.5, 2.0) 11 0
PLAYER_PED p4 = (156.5, 129.5, 2.0) 13 0

PARKED_CAR_DATA Tank1 = (147.5, 145.5, 4.0) 0 180 TANK
PARKED_CAR_DATA Tank2 = (149.5, 145.5, 4.0) 0 180 TANK

PARKED_CAR_DATA Tank3 = (160.5, 135.9, 4.0) 0 180 TANK
PARKED_CAR_DATA Tank4 = (162.5, 135.9, 4.0) 0 180 TANK
PARKED_CAR_DATA Tank5 = (164.5, 135.9, 4.0) 0 180 TANK
PARKED_CAR_DATA Tank6 = (166.5, 135.9, 4.0) 0 180 TANK
PARKED_CAR_DATA Tank7 = (168.5, 135.9, 4.0) 0 180 TANK


SET_GANG_INFO ( pprisonm , 22 , pistol , machine_gun , rocket_launcher , 0 , 0.0 , 0.0 , 0.0 , 0 , pickup , -1 )
CHANGE_GANG_CHAR_RESPECT  ( pprisonm  ,  p1 , -5 )
MAP_ZONE untitled = ( 1000 , 0, 0 , 0 , 1000 , 0 , 0 , 0, 1000 , 0 , 1000 )



















SAVED_COUNTER true = 1
SAVED_COUNTER false = 0







LEVELSTART







LEVELEND














Gangsters still dont attack me :(  why?
Post 4 | New
Sektor
Sektor's Avatar


  • Joined: Feb '03
  • Posts: 301
You probably have to change the respect after LEVELSTART

------------------
Stealing cars is the easy part
Post 5 | New
Razor
  • Joined: Jun '08
  • Posts: 13
thx working :>

i have one more question :>

How i can do something like:

if i stept on tile no X i dieing imidietly :D
Post 6 | New
Sektor
Sektor's Avatar


  • Joined: Feb '03
  • Posts: 301
You could use these commands:

IS_CHAR_IN_BLOCK
EXPLODE_SMALL ( player 1 )

You could also make the ground electrified like the train tracks.

------------------
Stealing cars is the easy part
Printable Version Abbreviations
IceyBoard 1.6.2 © 2002-08 Icey