Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,270 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

Sign in to follow this  
Finding

Cleo question.

Recommended Posts

Finding

I'm creating a project which is a conerted map of SA into a sort of space theme. I'm trying to conert some guns into lazer guns and configuring their stats. I hae come across this for a weapon in cleo;

 

 

[email protected] = 34 [email protected] += [email protected] *= [email protected] += [email protected] += 43  

 

 

now [email protected] = 34 is M4 I assume, How do I config other guns?

 

Sorry wrong section can an admin / mod moe this too III era?

Edited by Finding

Share this post


Link to post
Share on other sites
Wesser

 

0xC8AAB8 is an array of every weapon setting according to any skill level. I think it is read/write, so writing some stats will affect also enemies weapon. Why do you want change them over the memory? Wouldn't it be easier to modify weapon.dat?

Share this post


Link to post
Share on other sites
Finding
0xC8AAB8 is an array of every weapon setting according to any skill level. I think it is read/write, so writing some stats will affect also enemies weapon. Why do you want change them over the memory? Wouldn't it be easier to modify weapon.dat?

I want to set enemies weapons to be very powerfull, I'm attempting to create difficultly levels without the main persons gun being edited.

Share this post


Link to post
Share on other sites
Wesser

It's impossible, sorry. Game reads all weapons stats once for all peds and players aswell. Plus, CWeapon__getInfo (0x743C60) is called by too many functions, so doing a hack would require a lot of work.

Share this post


Link to post
Share on other sites
Swoorup

@Wesser Cant it be made by just altering values of the weapon data in the runtime whenever necessary instead of writing those huge hacks?

Share this post


Link to post
Share on other sites
Wesser

Nope. As I said, players and peds get all weapon info from 0xC8AAB8 array.

Share this post


Link to post
Share on other sites
Finding
Nope. As I said, players and peds get all weapon info from 0xC8AAB8 array.

I private mailed you a pieace of code, which works.

Share this post


Link to post
Share on other sites
Wesser

It works for every ped entity and players are affected too.

Share this post


Link to post
Share on other sites
Finding

So If I was too add sniper or another gun I could use...

 

 

[email protected] = 34 [email protected] += [email protected] *= [email protected] += [email protected] += 43 0A8C: write_memory [email protected] size 4 value 1.1 virtual_protect 0 

 

 

 

 

I'm just asking about <number>@ Does this have to be a specific number or can it be any number?

Edited by Finding

Share this post


Link to post
Share on other sites
Wesser

You're asking a basic CLEO question then. You can use any number from 0 to 33. Note that the last 2 local variables are used for timers, so they increase continuously.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

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