Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Neuntoter

NATIVE DB Discussion and Explaination

Recommended Posts

Neuntoter

PedID PED::CREATE_PED(int Type, int ModelHash, float X, float Y, float Z, float Heading, bool NetworkHandle, bool ReturnHandle);

 

Type - ??? It appears 1 works for . also 26 is often used in scripts. So I don't think it is to do with relationship.

ModelHash - Hash of model, Can be obtained with Any ModelHash = GAMEPLAY::GET_HASH_KEY("<MODELNAME>"); must be loaded with STREAMING::REQUEST_MODEL(ModelHash);

X, Y, Z = Location to put model.

Heading = I would assume it's a 360 degree? North 0?

NetworkHandle = ??? I see it is usually if not always true but why?

ReturnHandle = I guess it makes it return the PedID, but what would it return if false.

 

RETURN: an int which would be the PedID.

Share this post


Link to post
Share on other sites
Neuntoter

void AI::TASK_WANDER_STANDARD(Ped pedHandle, int p1, int p2)

 

pedHandle - Obviously a PedID. But often in the scripts I see a 0 here... Not sure how that would work.

p1 - ??? X maybe but in scripts I see 0x471C4000 often. I also see references to headings. So maybe a heading.

p2 - ??? Y maybe but in scripts I see 0 always maybe?

 

---

void AI::TASK_WANDER_IN_AREA(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6)

p0 - Appears to be PedID again. With sometimes 0 in scripts.

p1 - float, maybe X?

p2 - float, maybe Y?

p3 - float, maybe Z?

p4 - float, maybe radius or distance to wander from XYZ?

p5 - int, usually 0x40400000 heading of some kind?

p6 - int, usually 0x40C00000 heading of some kind?

Share this post


Link to post
Share on other sites
BenBaron

Whenever there is a 0 supplied as handle in the AI:: natives in the decompiled scripts, they are most likely using the following structure:

 

AI::OPEN_SEQUENCE_TASK (&task)

.

.

.

AI::CLOSE_SEQUENCE_TASK (&task)

 

AI::TASK_PERFORM_SEQUENCE (pedHandle, task)

 

AI::CLEAR_SEQUENCE_TASK (&task)

 

Between OPEN and CLOSE you can define multiple tasks to be performed in a row, like driving to a spot and parking there. As the task sequence is explicitely assigned to the ped later on, 0's are supplied as pedHandle between OPEN and CLOSE. As task I am using an int.

Edited by BenBaron

Share this post


Link to post
Share on other sites
Neuntoter

void AI::TASK_STAND_GUARD(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5)

 

p0 - Guessing PedID

p1, p2, p3 - XYZ?

p4 - Heading

p5 - "WORLD_HUMAN_GUARD_STAND" Guessing that is an animation name.

 

---

void AI::TASK_GUARD_SPHERE_DEFENSIVE_AREA(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6, Any p7, Any p8, Any p9, Any p10)

 

p0 - Guessing PedID

p1, p2, p3 - XYZ?

p4 - ???

p5 - Maybe the size of sphere from XYZ?
p6 - ???

p7, p8, p9 - XYZ again?

p10 - Maybe the size of sphere from second XYZ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.