Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Happy Holidays from the GTANet team!

'HMYDRUG' and 'BIKDRUG' peds, bug or error?


DavidReyes2250
 Share

Recommended Posts

DavidReyes2250

While making modifications to the main script of the game, I have seen something strange.
As you know, the 'HMYDRUG' and 'BIKDRUG' peds are supposed to be unused peds which are supposed to be drug dealers, but I don't think so, right? Well, the main script in one line says like this ...

0928: init_external_script_trigger 19 (DEALER) with_actor_model #BMYDRUG priority 100 
0928: init_external_script_trigger 19 (DEALER) with_actor_model #WMYDRUG priority 100 
0928: init_external_script_trigger 19 (DEALER) with_actor_model #HMYDRUG priority 100 
0928: init_external_script_trigger 19 (DEALER) with_actor_model #BIKDRUG priority 100 

As you can see if they are not blind, the peds 'BMYDRUG', 'WMYDRUG' (these do appear in the game), 'HMYDRUG' and 'BIKDRUG' unlike the previous two, these other two do not appear in the game although the opcode It says they are given a full priority of 100, is there any reason why they don't appear even though they both have a full priority?

 

And by the way, as a curiosity, if you didn't know, every time we start a new game (if the main.scm is the original one), if you search well, the 'BIKDRUG' ped will almost always appear only for the first and last time, strange no? Does anyone have an answer why does this happen?🤔🤔

 

Edit:
There was a small mistake in the last paragraph, in fact, very few times, in fact, almost never, we will see the 'BIKDRUG' ped but the 'HMYDRUG' ped we will never see

Edited by DavidReyes2250
Link to comment
Share on other sites

The dealers work as expected; the rules are a bit weird though. I don't remember the exact details but if you dig through the forums you should be able to find the information that you need to control which dealers spawn.

 

The biker dealer only spawns in San Fierro, but normally there are no valid gangs (Grove, Ballas or Vagos) in SF. This used to be fairly common due to the popularity of the PS2 trick of adding gang zones by flying over the sea, and is easy enough to enable using zone editors or gang mods.

 

The biker dealer might spawn in Jefferson on a new game if you skip the cutscene while CJ is still in the Liberty City airport because that location is high above Cranberry station in SF. Some other SF-only peds and cars might spawn in Jefferson for a short while too but are harder to notice.

 

IIRC, the Hispanic dealer only spawns for zones with Hispanic peds but without White or Black ethnic groups enabled. I don't think there are any zones with the appropriate flags so you'll need to fiddle with the ped type settings with a zone editor or other modding tools. Hispanic only or Hispanic plus Asian should work.

Link to comment
Share on other sites

DavidReyes2250
1 hour ago, OrionSR said:

The dealers work as expected; the rules are a bit weird though. I don't remember the exact details but if you dig through the forums you should be able to find the information that you need to control which dealers spawn.

 

The biker dealer only spawns in San Fierro, but normally there are no valid gangs (Grove, Ballas or Vagos) in SF. This used to be fairly common due to the popularity of the PS2 trick of adding gang zones by flying over the sea, and is easy enough to enable using zone editors or gang mods.

 

The biker dealer might spawn in Jefferson on a new game if you skip the cutscene while CJ is still in the Liberty City airport because that location is high above Cranberry station in SF. Some other SF-only peds and cars might spawn in Jefferson for a short while too but are harder to notice.

 

IIRC, the Hispanic dealer only spawns for zones with Hispanic peds but without White or Black ethnic groups enabled. I don't think there are any zones with the appropriate flags so you'll need to fiddle with the ped type settings with a zone editor or other modding tools. Hispanic only or Hispanic plus Asian should work.

Good explanation, but I found another thing even more curious, if you use a Skin Selector (in my case I used the Cheat Menu), if you put on the 'HMYDRUG' skin, and once you put it on and explore the map For example, Los Santos, more specifically, in gang areas like Ganton and nearby areas, you can easily find this ped and for some reason the other traffickers no longer appear, what is happening here?

Edited by DavidReyes2250
Link to comment
Share on other sites

The dealer ped only acts as dealer if opcode 076A: gives dealer to zone

Maybe, it's also required for spawn

 

opcode 076A: is only given for zones in LS

Add lines for other zones in SF and LV

 

//Doherty
076A: set_zone 'DOH1' dealer_density_to 4
076A: set_zone 'DOH2' dealer_density_to 4

 

 

Spoiler
Originally main.scm adds only to Los Santos


076A: set_zone 'CHC1A' dealer_density_to 4 
076A: set_zone 'CHC1B' dealer_density_to 4 
076A: set_zone 'CHC2A' dealer_density_to 4 
076A: set_zone 'CHC2B' dealer_density_to 4   Las Colinas
076A: set_zone 'CHC3' dealer_density_to 4 
076A: set_zone 'CHC4A' dealer_density_to 4 
076A: set_zone 'CHC4B' dealer_density_to 4 

076A: set_zone 'EBE1' dealer_density_to 2 
076A: set_zone 'EBE2A' dealer_density_to 2    East Beach
076A: set_zone 'EBE2B' dealer_density_to 2 
076A: set_zone 'EBE3C' dealer_density_to 2

076A: set_zone 'GLN1' dealer_density_to 6 
076A: set_zone 'GLN2A' dealer_density_to 2     Glen Park

076A: set_zone 'IWD1' dealer_density_to 2 
076A: set_zone 'IWD2' dealer_density_to 2 
076A: set_zone 'IWD3A' dealer_density_to 2     Idlewood
076A: set_zone 'IWD3B' dealer_density_to 2 
076A: set_zone 'IWD4' dealer_density_to 2 
076A: set_zone 'IWD5' dealer_density_to 2

076A: set_zone 'JEF1A' dealer_density_to 6 
076A: set_zone 'JEF1B' dealer_density_to 6 
076A: set_zone 'JEF2' dealer_density_to 6      Jefferson
076A: set_zone 'JEF3B' dealer_density_to 6 
076A: set_zone 'JEF3C' dealer_density_to 6

076A: set_zone 'LFL1A' dealer_density_to 4      Los Flores
076A: set_zone 'LFL1B' dealer_density_to 4 

076A: set_zone 'ELS1A' dealer_density_to 2 
076A: set_zone 'ELS1B' dealer_density_to 2 
076A: set_zone 'ELS2' dealer_density_to 2 
076A: set_zone 'ELS3A' dealer_density_to 2      East Los Santos
076A: set_zone 'ELS3B' dealer_density_to 2 
076A: set_zone 'ELS4' dealer_density_to 2 

076A: set_zone 'VERO1' dealer_density_to 2 
076A: set_zone 'VERO2' dealer_density_to 2 
076A: set_zone 'VERO3' dealer_density_to 2     Verona Beach
076A: set_zone 'VERO4A' dealer_density_to 2 
076A: set_zone 'VERO4B' dealer_density_to 2

 

 

 

Edited by ZAZ
Link to comment
Share on other sites

7 hours ago, DavidReyes2250 said:

I found another thing even more curious

I'm really not sure why other hispanic dealers spawn when you are playing with his skin, but I suspect it has something to do with having the model always loaded. Perhaps something similar to how the biker dealer spawns when it's model was preloaded for SF during the intro cutscene but more persistent. I don't have the skills to dig into the details - I had to have some help from experts just to figure out the rules described above.

 

5 hours ago, ZAZ said:

The dealer ped only acts as dealer if opcode 076A: gives dealer to zone

Maybe, it's also required for spawn

Using opcode 076A: is good coding practice but not absolutely necessary for dealers to spawn in a zone. Adding gang density to a zone is enough for dealer to spawn; I think the dealer density gets updated by the same routine that modifies the zone color if the dealers aren't already added with 076A:. 

 

Dealers will appear in gang zones glitched by flying off the map or using the satchel trick. Efforts to reduce dealer density to zero have always failed. Something keeps adding them back.

Edited by OrionSR
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.