Quantcast

Jump to content

» «
Photo

OPCODE 04AE?

3 replies to this topic
daniHCF96
  • daniHCF96

    Sanit

  • Members
  • Joined: 21 Sep 2013
  • Spain

#1

Posted 30 September 2013 - 03:45 PM

I'm modifiying the Main.scm of GTA SA with Sanny Builder, removing opcodes and replacing some things, and i'm not really sure of the function of the following opcode:

 

 

04AE: $ICON_CJ = 15 // $ = any
04AE: $ICON_SWEET = 38 // $ = any
04AE: $ICON_RYDER = 34 // $ = any
04AE: $ICON_BIG_DMOKE = 8 // $ = any
04AE: $ICON_OG_LOC = 28 // $ = any
04AE: $ICON_CRASH = 16 // $ = any
04AE: $ICON_CESAR = 13 // $ = any
04AE: $ICON_CATALINA = 12 // $ = any
04AE: $ICON_TRUTH = 40 // $ = any
04AE: $ICON_WOOZIE = 46 // $ = any
04AE: $ICON_LOCOSYNDICATE = 23 // $ = any
04AE: $ICON_TRIADS = 43 // $ = any
04AE: $ICON_CESAR_2 = 13 // $ = any
04AE: $ICON_RACE = 33 // $ = any
04AE: $ICON_ZERO = 47 // $ = any
04AE: $ICON_TRIADS_CASINO = 44 // $ = any
04AE: $ICON_MAFIA_CASINO = 25 // $ = any
04AE: $ICON_CASH = 52 // $ = any
04AE: $ICON_MADDOG = 24 // $ = any
04AE: $ICON_TORENO = 42 // $ = any
04AE: $ICON_AIRYARD = 5 // $ = any
04AE: $ICON_CJ_2 = 15 // $ = any
04AE: $ICON_SCHOOL = 36 // $ = any
04AE: $ICON_SWEET_2 = 38 // $ = any

 

 

In the description found on GTA Gaming it says:

"Stores the value of the second variable into the first variable. Is used with both floats and integers. In Rockstars native compiler, this opcode is used when assigning a variable to the value of a constant."

 

Is there a practical function of the opcode, or can I delete it without creating bugs or crashes?

 

Thanks!


Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#2

Posted 30 September 2013 - 03:51 PM

As the description says, 04AE is pretty much the same as regular 0004/0006 assignment, although 04AE assigns a CONSTANT value to a ver. You're free to remove them if these globals are not used in your script anymore.

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown
  • Contribution Award [Mods]

#3

Posted 01 October 2013 - 10:02 AM Edited by Wesser, 01 October 2013 - 11:03 AM.

They DO the same thing. :p The ONLY difference consists in how the native compiler treats these commands. Note floating-point constants are never assigned natively but the assignment is still fine in Sanny Builder (it doesn't take care about data types in most times).


daniHCF96
  • daniHCF96

    Sanit

  • Members
  • Joined: 21 Sep 2013
  • Spain

#4

Posted 01 October 2013 - 05:11 PM

ok, thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users