Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      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

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

IV pedtypes


ceedj
 Share

Recommended Posts

This is the list on GTAModding.com:

 

 

Number  Description0  Player1  CIVMALE2  CIVFEMALE3  COP4  GANG15  GANG26  GANG37  GANG48  GANG59  GANG610  GANG711  GANG812  GANG913  GANG1014  MEDIC15  FIREMAN16  CRIMINAL17  PROSTITUTE 

 

 

How did we come up with this? I only ask because I've seen several examples in the sco code that contradict this. For example, in ambpoledancer, the only create_char reference is this:

 

 

CREATE_CHAR(5, sub_5ca(), L[3].v0, L[3].v1, L[3].v2, &L[2], 1);

 

 

while ambinternetcafe shows this:

 

 

 if (L[107])                              {                                  CREATE_CHAR(5, L[102], L[103].v0, L[103].v1, L[103].v2, &L[101], 1);                              }                              else                              {                                  CREATE_CHAR(L[118], L[102], L[103].v0, L[103].v1, L[103].v2, &L[101], 1);                              }

 

 

(L[118] is 4, which makes sense, as there is at least one internet cafe that has a male at the desk. Overall, I don't get that at ALL, why use up a local variable when it's referenced exactly ONE time in the code; just do CREATE_CHAR 4, etc and be done with it. Ah, those wacky R* programmers. biggrin.gif )

 

Both of these examples would clearly be a female (except L[118], suggesting a male), so following old coding, 4 would be civmale aand 5 would be civfemale. Just curious as to why a gang pedtype (suggested by the list above) would be used instead of a civfemale. I'm sure I mentioned it somewhere else before, but 25 would seem to be special male and 26 would be special female (see the dating sco's for examples of this).

 

Thanks. smile.gif

 

EDIT: The reason I'm asking is 1) for proper completeness, and 2) because I was trying to point someone in the right direction. In San An, the game will crash if you try to assign a male ped model to type 5 (female); however, any ped created can use 4 (male).

Edited by ceedj

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

I like to know too smile.gif

 

It seems that using setrelationsship using 3 for cops, does absolutely nothing.

 

Now, obviously if 3 is actually not used for cops, it would explain why setrelationship does nothing smile.gif

 

 

Link to comment
Share on other sites

Excellent example. I'm also finding that my assertion that 25 and 26 are special male and female are right; see Elizabeta, Cia, Cherise, and the dating scripts for examples, which all use 26 as the pedtypes for the female characters. 25 tends to be used in the male missions, like Packie, Bruice, etc. Makes sense, as VC and San An used special actors for those types of missions as well.

Edited by ceedj

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

Ok, did some work, this is the list I put together based on what is found in the sco files (1,2 and 3 are guesses based on the previous games). If anyone has any ideas on how to get the rest of it, we'd be happy to hear it.

 

 

Number  Description0  Player 11  Player 22  Player network3  Player Unused4  CIVMALE5  CIVFEMALE6  COP7  GANG1 (Latino)8  GANG2 (Russian)9  GANG3 (Goon?)21  FIREMAN25  SPECIAL 126  SPECIAL 2 

 

 

EDIT: I'm becoming more convinced that ped type and relationship type are two different classes. Will experiment some more tomorrow.

Edited by ceedj

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

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.