IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Cleo question.

 
Finding  
Posted: Saturday, Sep 24 2011, 14:36
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 30, 2011

XXXXX



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;

CODE

22@ = 34
22@ += 33
22@ *= 312
22@ += 4532525
22@ += 43  


now 22@ = 34 is M4 I assume, How do I config other guns?

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

This post has been edited by Finding on Tuesday, Sep 27 2011, 10:53
PM
  Top
 

 
Wesser  
Posted: Sunday, Sep 25 2011, 20:54
Quote Post


The complexity simplifier, the efficiency optimizer
Group Icon
Group: Members
Joined: Aug 19, 2006

eu.gif

Member Award




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?
PMMSNPlayStation Network
  Top
 

 
Finding  
Posted: Monday, Sep 26 2011, 16:18
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 30, 2011

XXXXX



QUOTE (Wesser @ Sunday, Sep 25 2011, 20:54)
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.
PM
  Top
 

 
Wesser  
Posted: Monday, Sep 26 2011, 18:14
Quote Post


The complexity simplifier, the efficiency optimizer
Group Icon
Group: Members
Joined: Aug 19, 2006

eu.gif

Member Award




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.
PMMSNPlayStation Network
  Top
 

 
Swoorup  
Posted: Monday, Sep 26 2011, 18:23
Quote Post


innovator
Group Icon
Group: Members
Joined: Oct 28, 2008

au.gif

XXXXX



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

 
Wesser  
Posted: Monday, Sep 26 2011, 18:29
Quote Post


The complexity simplifier, the efficiency optimizer
Group Icon
Group: Members
Joined: Aug 19, 2006

eu.gif

Member Award




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

 
Finding  
Posted: Monday, Sep 26 2011, 19:27
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 30, 2011

XXXXX



QUOTE (Wesser @ Monday, Sep 26 2011, 18:29)
Nope. As I said, players and peds get all weapon info from 0xC8AAB8 array.

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

 
Wesser  
Posted: Monday, Sep 26 2011, 20:37
Quote Post


The complexity simplifier, the efficiency optimizer
Group Icon
Group: Members
Joined: Aug 19, 2006

eu.gif

Member Award




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

 
Finding  
Posted: Tuesday, Sep 27 2011, 07:45
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 30, 2011

XXXXX



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

CODE

22@ = 34
22@ += 33
22@ *= 312
22@ += 4532525
22@ += 43
0A8C: write_memory 22@ 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?

This post has been edited by Finding on Tuesday, Sep 27 2011, 10:52
PM
  Top
 

 
Wesser  
Posted: Tuesday, Sep 27 2011, 19:21
Quote Post


The complexity simplifier, the efficiency optimizer
Group Icon
Group: Members
Joined: Aug 19, 2006

eu.gif

Member Award




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.
PMMSNPlayStation Network
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG