Quantcast

Jump to content

» «
Photo

Cleo question.

9 replies to this topic
Finding
  • Finding

    Player Hater

  • Members
  • Joined: 30 Aug 2011

#1

Posted 24 September 2011 - 02:36 PM Edited by Finding, 27 September 2011 - 10:53 AM.

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?

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown

#2

Posted 25 September 2011 - 08:54 PM

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?

Finding
  • Finding

    Player Hater

  • Members
  • Joined: 30 Aug 2011

#3

Posted 26 September 2011 - 04:18 PM

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.

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown

#4

Posted 26 September 2011 - 06:14 PM

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.

Swoorup
  • Swoorup

    innovator

  • Feroci
  • Joined: 28 Oct 2008
  • Nepal

#5

Posted 26 September 2011 - 06:23 PM

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

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown

#6

Posted 26 September 2011 - 06:29 PM

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

Finding
  • Finding

    Player Hater

  • Members
  • Joined: 30 Aug 2011

#7

Posted 26 September 2011 - 07:27 PM

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.

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown

#8

Posted 26 September 2011 - 08:37 PM

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

Finding
  • Finding

    Player Hater

  • Members
  • Joined: 30 Aug 2011

#9

Posted 27 September 2011 - 07:45 AM Edited by Finding, 27 September 2011 - 10:52 AM.

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?

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown

#10

Posted 27 September 2011 - 07:21 PM

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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users