Gta sa Memories...

JaggerJam

Well-Known Member
Joined
Sep 14, 2017
Messages
51
Likes
11
Points
38
#4
Here is a mini-HUD source, site link: https://libertycity.ru/files/gta-san-andreas/137571-simple-hud.html
P.S. But he creates new HUD.
Code:
/* Made by Vital */
//$PLAYER_ACTOR $PLAYER_GROUP $ONMISSION
//Byte, Char – 1; Short, Word – 2; Long, DWord, Float – 4
{$CLEO}
0000:

const
TEXT_FONT = 3 //0 (Gothic),1 (Standard),2 (Menu),3 (Pricedown)
LETTER_H = 1.8 //letter height
LETTER_W = 0.45 //letter width
OUTLINE_R = 0 //outline red colour (0–255)
OUTLINE_G = 0 //outline green colour (0–255)
OUTLINE_B = 0 //outline blue colour (0–255)
OUTLINE_A = 200 //outline alpha (0–255)
OUTLINE_W = 1 //outline width (1 & 2 are optimal values)
GXT_TIME = 'TIME'
GXT_TIME_0 = 'TIME_0'
GXT_VAR = 'BJ_0'
GXT_MONEY = 'DOLLAR'
end // const

while true
wait 0
0A8D: [email protected] = read_memory 0xBA6769 size 1 virtual_protect 0 //Hud Mode (menu)
0A8D: [email protected] = read_memory 0xB6F065 size 1 virtual_protect 0 //Widescreen (scripted)
    if and
    player.Defined(0) 
    09E7:   player 0 not_frozen
    not fading
    [email protected] == 1
    [email protected] == 0
    then
    0826: enable_hud 0     
  
    //drawing new HUD
    03F0: enable_text_draw 1
  
//armour
    04DD: [email protected] = actor $PLAYER_ACTOR armour
    if
    [email protected] > 0
    then
    03E4: set_text_draw_align_right 1
    0340: set_text_draw_RGBA 150 150 150 255
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0AB1: call_scm_func @Offset 2 633.0 7.0 [email protected] [email protected] //max X 640.0 max Y 448.0
    045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
    end
      
//health
    [email protected] = actor.Health($PLAYER_ACTOR) 
    if
    [email protected] > 0
    then
    03E4: set_text_draw_align_right 1 
    0340: set_text_draw_RGBA 255 0 0 255
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
        if
        [email protected] > 0 //armour
        then
        0A08: get_gxt_string_1number GXT_VAR number [email protected] width_to [email protected]  // ~1~
        0AB1: call_scm_func @Offset 2 2.0 7.0 [email protected] [email protected]     
        0093: [email protected] = integer [email protected] to_float           
        [email protected] -= 625.0
        0097: make [email protected] absolute_float
        005B: [email protected] += [email protected]  // (float)
        045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
        else
        0AB1: call_scm_func @Offset 2 633.0 7.0 [email protected] [email protected]
        045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
        end
    end   
  
//ammo
    0AB1: call_scm_func @GetAmmo_2 0 [email protected] [email protected] //in clip; remaining
    if
    [email protected] > 0 //ammo in clip 
    then
    03E4: set_text_draw_align_right 1
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    0093: [email protected] = integer [email protected] to_float
    [email protected] /= 0.5
    0092: [email protected] = float [email protected] to_integer
        if
        [email protected] > 200
        then
        [email protected] = 200     
        end 
    0340: set_text_draw_RGBA 50 200 [email protected] 255
    033F: set_text_draw_letter_size LETTER_W LETTER_H
        if and
        [email protected] > 0 //remaining ammo
        not [email protected] > 9999 //max displated ammo
        then
        0A08: get_gxt_string_1number GXT_VAR number [email protected] width_to [email protected]  // ~1~
        0AB1: call_scm_func @Offset 2 2.0 25.0 [email protected] [email protected] 
        0093: [email protected] = integer [email protected] to_float     
        [email protected] -= 625.0
        0097: make [email protected] absolute_float
        005B: [email protected] += [email protected]  // (float)
        045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
        else
        0AB1: call_scm_func @Offset 2 633.0 25.0 [email protected] [email protected]
        045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
        end
    end
  
    if and
    [email protected] > 0 //remaining ammo
    not [email protected] > 9999 //max displated ammo
    then
    03E4: set_text_draw_align_right 1
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT 
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0340: set_text_draw_RGBA 255 180 180 255
    0AB1: call_scm_func @Offset 2 633.0 25.0 [email protected] [email protected]         
    045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
    end
            
//time
    00BF: [email protected] = current_time_hours, [email protected] = current_time_minutes
    0342: set_text_draw_centered 1
    0093: [email protected] = integer [email protected] to_float
    0093: [email protected] = integer [email protected] to_float
    [email protected] /= 60.0 //convert minutes: 60 min is 1
    005B: [email protected] += [email protected]  // (float) add converted minutes to hours
    [email protected] *= 7.5 //convert to angle: 12:00 is 90°, whose sine is 1
    02F6: [email protected] = sine [email protected] // (float) get sine
    [email protected] *= 170.0 //max is 1, multiply by 170, which is max added colour value 
    0092: [email protected] = float [email protected] to_integer
    [email protected] += 70 //70 is min colour value in order not to make the text too dark
    0340: set_text_draw_RGBA [email protected] [email protected] 255 255 
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0AB1: call_scm_func @Offset 2 320.0 7.0 [email protected] [email protected]
    if
    [email protected] > 9
    then 
    045B: draw_text_2numbers [email protected] [email protected] GXT GXT_TIME numbers [email protected] [email protected]  // ~1~:~1~
    else 
    045B: draw_text_2numbers [email protected] [email protected] GXT GXT_TIME_0 numbers [email protected] [email protected]  // ~1~:0~1~
    end
  
//oxygen
    if
    0965:   actor $PLAYER_ACTOR swimming
    then
    0AB1: call_scm_func @GetOxygen_1 0 [email protected] //2652.0 max
    0087: [email protected] = [email protected] // (float)
    [email protected] /= 25.0
        if
        [email protected] > 100.0
        then
        [email protected] = 100.0
        end 
    0092: [email protected] = float [email protected] to_integer
    0085: [email protected] = [email protected] // (int)
    [email protected] += 125
    0AB1: call_scm_func @Offset 2 320.0 25.0 [email protected] [email protected]
    0342: set_text_draw_centered 1 
    0340: set_text_draw_RGBA 0 255 255 [email protected] 
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B [email protected]
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
    end
      
//money
    [email protected] = player.Money(0) 
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H 
    if
    [email protected] > 0
    then
    0340: set_text_draw_RGBA 72 140 62 255
    else
        if
        [email protected] == 0
        then
        0340: set_text_draw_RGBA 200 200 200 255
        else
        0340: set_text_draw_RGBA 255 0 0 255
        end
    end
    0AB1: call_scm_func @Offset 2 7.0 7.0 [email protected] [email protected]
    045A: draw_text_1number [email protected] [email protected] GXT GXT_MONEY number [email protected]  // ALL RACES WON!~n~~w~$~1~
  
//wanted level
    [email protected] = player.WantedLevel(0) 
    0A8D: [email protected] = read_memory 0xB7CD9C size 4 virtual_protect 0 //CWanted
    0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 //cop rage: 6900 max
    if
    [email protected] > 0 
    then   
    0093: [email protected] = integer [email protected] to_float
    [email protected] /= 44.5 //convert: 6900 — 155
    0092: [email protected] = float [email protected] to_integer
    [email protected] += 100     
    0340: set_text_draw_RGBA [email protected] 215 100 255
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0AB1: call_scm_func @Offset 2 7.0 25.0 [email protected] [email protected]
    045A: draw_text_1number [email protected] [email protected] GXT GXT_VAR number [email protected]  // ALL RACES WON!~n~~w~$~1~
    end     
  
    //turn drawing mode off
    03F0: enable_text_draw 0
    end
end

:GetAmmo_2
0A96: [email protected] = actor $PLAYER_ACTOR struct 
[email protected] += 0x718
0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 //weapon slot
    if and
    [email protected] > 1 //not melee
    [email protected] <> 10 //not gifts
    [email protected] <> 11 //not goggles or parachute
    [email protected] <> 12 //not detonator
    then
    [email protected] *= 28 //each slot has 28 bytes of info
    0A96: [email protected] = actor $PLAYER_ACTOR struct
    [email protected] += 0x5A0 //CWeaponSlot
    005A: [email protected] += [email protected]  // (int)
    [email protected] += 8 //get ammo in clip
    0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
    [email protected] += 4 //get all ammo
    0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
    0062: [email protected] -= [email protected]  // (int) get remaining ammo
    else
    [email protected] = -1
    [email protected] = -1
    end
0AB2: ret 2 [email protected] [email protected]

:GetOxygen_1 //0xB7CDB4 - sprinting time left, just in case
0A8D: [email protected] = read_memory 0xB7CDE0 size 4 virtual_protect 0
0AB2: ret 1 [email protected]

:Offset //[email protected] - X, [email protected] - Y
0A4A: store_joystick_X_offset_to [email protected] Y_offset_to [email protected]
[email protected] *= 0.05
[email protected] *= -0.05
0079: [email protected] += frame_delta_time * 0.02 // (float)
0079: [email protected] += frame_delta_time * 0.02 // (float)
    if
    [email protected] > 5.0
    then
    [email protected] = 5.0
    else
        if
        [email protected] < -5.0
        then
        [email protected] = -5.0
        end
    end
  
    if
    [email protected] > 5.0
    then
    [email protected] = 5.0
    else
        if
        [email protected] < -5.0
        then
        [email protected] = -5.0
        end
    end
005B: [email protected] += [email protected]  // (float)
005B: [email protected] += [email protected]  // (float)
0AB2: ret 2 [email protected] [email protected]
 

Attachments

couldnot

Active Member
Joined
Dec 24, 2018
Messages
25
Likes
1
Points
8
#6
Maybe use Interface Editor Visual.

Money.X=32
Money.Y=89
Money.Format.Positive=$%08d
Money.Format.Negative=-$%07d
Money.Color=$RRGGBBFF
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,215
Likes
415
Points
113
Location
Lithuania
Website
ugbase.eu
20
#9
Memories from Gta Sa
Some other stuff i keep for myself xD

PHP:
{$CLEO .cs}

0000: NOP

wait 8500

{
    // Default Coords
    0AB1: @Health 3 X 141.0 Y 77.0 SizeX 569.0
    0AB1: @Armour 3 X 94.0 Y 48.0
    0AB1: @WeaponIcon 3 X 0.1734304577 Y 20.0 SizeY 58.0
    0AB1: @Money 2 Y 89.0 SizeX 0.5500000119
    0AB1: @HudRadarAndComponentsCoords 16 fRadarLeft 40.0 fRadarTop 104.0 fRadarWidth 94.0 fRadarHeight 76.0 fRadarRingPlaneHorzPad 18.0 fRadarRingPlaneVertPad 18.0 fAltimeterRadarLeft 40.0 fAltimeterRadarTop 104.0 fAltimeterRadarHeight 76.0 fAltimeterVertBarLeftMostRadarPos 20.0 fAltimeterVertBarLeftRadarPos 10.0 fAltimeterHorzBarLeftMostRadarPos 25.0 fAltimeterHorzBarLeftRadarPos 5.0 fAltimeterHorzBarHeight 2.0 fRadarDiscHorzMargin 4.0 fRadarDiscVertMargin 4.0
}

0AB1: @Health 3 X 497.5 Y 370.0 SizeX 569.0
0AB1: @Armour 3 X 450.0 Y 383.0
0AB1: @WeaponIcon 3 X 0.7334304142 Y 315.0 SizeY 80.0
0AB1: @Money 2 Y 400.0 SizeX 0.5500000119
0AB1: @RadarAndComponentsCoords 16 fRadarLeft 40.0 fRadarTop 104.0 fRadarWidth 94.0 fRadarHeight 76.0 fRadarRingPlaneHorzPad 18.0 fRadarRingPlaneVertPad 18.0 fAltimeterRadarLeft 40.0 fAltimeterRadarTop 104.0 fAltimeterRadarHeight 76.0 fAltimeterVertBarLeftMostRadarPos 20.0 fAltimeterVertBarLeftRadarPos 10.0 fAltimeterHorzBarLeftMostRadarPos 25.0 fAltimeterHorzBarLeftRadarPos 5.0 fAltimeterHorzBarHeight 2.0 fRadarDiscHorzMargin 4.0 fRadarDiscVertMargin 4.0
0AB1: @HudCloring 15 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00
0AB1: @RadarCloring 21 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 

while true
wait 0

end

:RadarCloring
0A8C: write_memory 0x58A9A2 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A99A size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A996 size 1 value [email protected] virtual_protect 0

0A8C: write_memory 0x58A8EE size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A8E6 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A8DE size 1 value [email protected] virtual_protect 0

0A8C: write_memory 0x58A89A size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A896 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A894 size 1 value [email protected] virtual_protect 0

0A8C: write_memory 0x58A798 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A790 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58A78E size 1 value [email protected] virtual_protect 0

0A8C: write_memory 0x582F20 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x582F1A size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x582F18 size 1 value [email protected] virtual_protect 0
// My pos icon
0A8C: write_memory 0x588691 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x58868C size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x588687 size 1 value [email protected] virtual_protect 0
// " N " circle icon
0A8C: write_memory 0x5860CD size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x5860C2 size 1 value [email protected] virtual_protect 0
0A8C: write_memory 0x5860BD size 1 value [email protected] virtual_protect 0
0AB2: ret 0


:HudCloring
0A8C: write_memory 0xBAB22C size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB230 size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB234 size 4 value [email protected] virtual_protect 0

0A8C: write_memory 0xBAB238 size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB23C size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB260 size 4 value [email protected] virtual_protect 0

0A8C: write_memory 0xBAB240 size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB244 size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB248 size 4 value [email protected] virtual_protect 0

0A8C: write_memory 0xBAB24C size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB250 size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB254 size 4 value [email protected] virtual_protect 0

0A8C: write_memory 0xBAB258 size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB25C size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0xBAB260 size 4 value [email protected] virtual_protect 0
0AB2: ret 0

:Money
0A8C: write_memory 0x866C88 size 4 value [email protected] virtual_protect 0 // Y
0A8C: write_memory 0x866CAC size 4 value [email protected] virtual_protect 0 // Size X
0AB2: ret 0

:Health
0A8C: write_memory 0x86535C size 4 value [email protected] virtual_protect 0 // X
0A8C: write_memory 0x866CA8 size 4 value [email protected] virtual_protect 0 // Y
0A8C: write_memory 0xB793E0 size 4 value [email protected] virtual_protect 0 // Size X
0AB2: ret 0

:Armour
0A8C: write_memory 0x866B78 size 4 value [email protected] virtual_protect 0 // X
0A8C: write_memory 0x862D38 size 4 value [email protected] virtual_protect 0 // Y
0AB2: ret 0

:WeaponIcon
0A8C: write_memory 0x866C84 size 4 value [email protected] virtual_protect 0 // X
0A8C: write_memory 0x858BA4 size 4 value [email protected] virtual_protect 0 // Y
0A8C: write_memory 0x866C50 size 4 value [email protected] virtual_protect 0 // Size Y
0AB2: ret 0

:RadarAndComponentsCoords
const 
    fRadarLeft = [email protected] 
    fRadarTop = [email protected] 
    fRadarWidth = [email protected] 
    fRadarHeight = [email protected] 
    fRadarRingPlaneHorzPad = [email protected] 
    fRadarRingPlaneVertPad = [email protected] 
    fAltimeterRadarLeft               = [email protected] 
    fAltimeterRadarTop                = [email protected] 
    fAltimeterRadarHeight             = [email protected] 
    fAltimeterVertBarLeftMostRadarPos = [email protected] 
    fAltimeterVertBarLeftRadarPos     = [email protected] 
    fAltimeterHorzBarLeftMostRadarPos = [email protected] 
    fAltimeterHorzBarLeftRadarPos     = [email protected] 
    fAltimeterHorzBarHeight           = [email protected] 
    fRadarDiscHorzMargin              = [email protected] 
    fRadarDiscVertMargin              = [email protected]
end  

0AC6: [email protected] = label @DefaultRadarAndComponentsCoords offset
0085: fRadarLeft = [email protected]
0A8C: write_memory fRadarLeft size 4 value [email protected] virtual_protect 0
0A8E: fRadarTop = [email protected] + 0x04
0A8C: write_memory fRadarTop size 4 value [email protected] virtual_protect 0
0A8E: fRadarWidth = [email protected] + 0x08
0A8C: write_memory fRadarWidth size 4 value [email protected] virtual_protect 0
0A8E: fRadarHeight = [email protected] + 0x0C
0A8C: write_memory fRadarHeight size 4 value [email protected] virtual_protect 0
0A8E: fRadarRingPlaneHorzPad = [email protected] + 0x10
0A8C: write_memory fRadarRingPlaneHorzPad size 4 value [email protected] virtual_protect 0
0A8E: fRadarRingPlaneVertPad = [email protected] + 0x14
0A8C: write_memory fRadarRingPlaneVertPad size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterRadarLeft = [email protected] + 0x18
0A8C: write_memory fAltimeterRadarLeft size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterRadarTop = [email protected] + 0x1C
0A8C: write_memory fAltimeterRadarTop size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterRadarHeight = [email protected] + 0x20
0A8C: write_memory fAltimeterRadarHeight size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterVertBarLeftMostRadarPos = [email protected] + 0x24
0A8C: write_memory fAltimeterVertBarLeftMostRadarPos size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterVertBarLeftRadarPos = [email protected] + 0x28
0A8C: write_memory fAltimeterVertBarLeftRadarPos size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterHorzBarLeftMostRadarPos = [email protected] + 0x2C
0A8C: write_memory fAltimeterHorzBarLeftMostRadarPos size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterHorzBarLeftRadarPos = [email protected] + 0x30
0A8C: write_memory fAltimeterHorzBarLeftRadarPos size 4 value [email protected] virtual_protect 0
0A8E: fAltimeterHorzBarHeight = [email protected] + 0x34
0A8C: write_memory fAltimeterHorzBarHeight size 4 value [email protected] virtual_protect 0
0A8E: fRadarDiscHorzMargin = [email protected] + 0x38
0A8C: write_memory fRadarDiscHorzMargin size 4 value [email protected] virtual_protect 0
0A8E: fRadarDiscVertMargin = [email protected] + 0x3C// Map and sprites position relative to the radar rectangle.
0A8C: write_memory fRadarDiscVertMargin size 4 value [email protected] virtual_protect 0
0A8C: write_memory 0x005834C2 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x005834D4 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x005834F6 size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x00583500 size 4 value fRadarTop virtual_protect 1// Radar ring plane rectangle.
0A8C: write_memory 0x0058A449 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A453 size 4 value fRadarRingPlaneHorzPad virtual_protect 1
0A8C: write_memory 0x0058A469 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A47D size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A489 size 4 value fRadarRingPlaneVertPad virtual_protect 1
0A8C: write_memory 0x0058A499 size 4 value fRadarTop virtual_protect 1// Altimeter rectangle.
0A8C: write_memory 0x0058A5E2 size 4 value fAltimeterRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A5F0 size 4 value fAltimeterVertBarLeftMostRadarPos virtual_protect 1
0A8C: write_memory 0x0058A60E size 4 value fAltimeterRadarTop virtual_protect 1
0A8C: write_memory 0x0058A620 size 4 value fAltimeterVertBarLeftRadarPos virtual_protect 1
0A8C: write_memory 0x0058A632 size 4 value fAltimeterRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A6E6 size 4 value fAltimeterRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A6F2 size 4 value fAltimeterHorzBarLeftMostRadarPos virtual_protect 1
0A8C: write_memory 0x0058A70E size 4 value fAltimeterRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A71E size 4 value fAltimeterRadarTop virtual_protect 1
0A8C: write_memory 0x0058A759 size 4 value fAltimeterHorzBarLeftRadarPos virtual_protect 1
0A8C: write_memory 0x0058A767 size 4 value fAltimeterHorzBarHeight virtual_protect 1// Upper-left radar disc rectangle.
0A8C: write_memory 0x0058A79B size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A7A9 size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A7C7 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A7D9 size 4 value fRadarDiscVertMargin virtual_protect 1
0A8C: write_memory 0x0058A7E9 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A801 size 4 value fRadarHeight virtual_protect 1// Upper-right radar disc rectangle.
0A8C: write_memory 0x0058A836 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A840 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A848 size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A868 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A87A size 4 value fRadarDiscVertMargin virtual_protect 1
0A8C: write_memory 0x0058A8AB size 4 value fRadarHeight virtual_protect 1// Lower-left radar disc rectangle.
0A8C: write_memory 0x0058A8E9 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A8F9 size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A913 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A921 size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A92D size 4 value fRadarDiscVertMargin virtual_protect 1
0A8C: write_memory 0x0058A943 size 4 value fRadarWidth virtual_protect 1// Lower-right radar disc rectangle.
0A8C: write_memory 0x0058A98A size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A99D size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A9AB size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A9C7 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A9D5 size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A9E1 size 4 value fRadarDiscVertMargin virtual_protect 1// Radar searchlight maximum width?
0A8C: write_memory 0x0058781B size 4 value fRadarWidth virtual_protect 1
0AB2: ret 0

:HudRadarAndComponentsCoords
hex 
00002042 // ( 40.0f) fRadarLeft 
0000D042 // (104.0f) fRadarTop 
0000BC42 // ( 94.0f) fRadarWidth 
00009842 // ( 76.0f) fRadarHeight 
00009041 // ( 18.0f) fRadarRingPlaneHorzPad 
00009041 // ( 18.0f) fRadarRingPlaneVertPad 
00002042 // ( 40.0f) fAltimeterRadarLeft 
0000D042 // (104.0f) fAltimeterRadarTop 
00009842 // ( 76.0f) fAltimeterRadarHeight 
0000A041 // ( 20.0f) fAltimeterVertBarLeftMostRadarPos 
00002041 // ( 10.0f) fAltimeterVertBarLeftRadarPos 
0000C841 // ( 25.0f) fAltimeterHorzBarLeftMostRadarPos 
0000A040 // (  5.0f) fAltimeterHorzBarLeftRadarPos     // Unscaled, R* bug. 
00000040 // (  2.0f) fAltimeterHorzBarHeight           // Unscaled, R* bug. 
00008040 // (  4.0f) fRadarDiscHorzMargin 
00008040 // (  4.0f) fRadarDiscVertMargin
end
PHP:
:BrightSkin
// 0AB1: @BrightSkin 1 ActorHandle [email protected]
0A96: [email protected] = actor [email protected] struct // [email protected] = Actor handle
[email protected] += 300
0A8C: write_memory [email protected] size 4 value 12.5 virtual_protect 0
0AB2: ret 0

:DarkSkin
// 0AB1: @DarkSkin 1 ActorHandle [email protected]
0A96: [email protected] = actor [email protected] struct // [email protected] = Actor handle
[email protected] += 300
0A8C: write_memory [email protected] size 4 value -12.5 virtual_protect 0
0AB2: ret 0
 
Last edited:

ItsRobinson

Well-Known Member
Joined
Nov 16, 2017
Messages
105
Likes
19
Points
33
#12
@Parazitas I did not share with you so that you would not share with others.

PHP:
Health PosX - 0x58EE87
Health PosY - 0x58EE68
Health Width - 0x5892D8
Health Height - 0x589358
Health Color - 0x58932A
Health Border - 0x589353
Health Percentage - 0x589355
Armor PosX - 0x58EF59
Armor PosY - 0x58EF3A
ArmorWidth - 0x58915D
ArmorHeight - 0x589146
ArmorColor - 0x5890F5
ArmorBorder - 0x589123
ArmorPercentage - 0x589125
BreathX - 0x58F11F
BreathY - 0x58F100
BreathWidth - 0x589235
BreathHeight - 0x58921E
BreathColor - 0x5891E4
BreathBorder - 0x589207
BreathPercentage - 0x589209
MoneyX - 0x58F5FC
MoneyY - 0x58F5DC
MoneyXScale - 0x58F564
MoneyYScale - 0x58F54E
MoneyColor - 0x58F492
MoneyColorDebt - 0x58F4D4
WeaponX - 0x58F92F
WeaponIconX - 0x58F927
WeaponIconY - 0x58F913
WeaponAmmoY - 0x58F9DC
WeaponAmmoX - 0x58F9F7
WeaponIconWidth - 0x58FAAB
WeaponAmmoHeight - 0x5894B7
WeaponAmmoWidth - 0x5894CD
WantedX - 0x58DD0F
WantedY - 0x58DDFC
WantedEmptyY - 0x58DE27
WantedXScale - 0x58DCC0
WantedYScale - 0x58DCAA
WantedColor - 0x58DDC9
RadioY - 0x4E9FD8
RadioXScale - 0x4E9F38
RadioYScale - 0x4E9F22
RadioColor - 0x4E9F91
RadarX - 0x58A79B, 0x5834D4, 0x58A836, 0x58A8E9, 0x58A98A, 0x58A469, 0x58A5E2, 0x58A6E6
RadarY - 0x58A7C7, 0x58A868, 0x58A913, 0x58A9C7, 0x583500, 0x58A499, 0x58A60E, 0x58A71E
RadarHeight - 0x58A47D, 0x58A632, 0x58A6AB, 0x58A70E, 0x58A801, 0x58A8AB, 0x58A921, 0x58A9D5, 0x5834F6
RadarWidth - 0x5834C2, 0x58A449, 0x58A7E9, 0x58A840, 0x58A943, 0x58A99D
RadarScaleWidth - 0x5834EE, 0x58A475, 0x58A602, 0x58A706, 0x58A7BB, 0x58A85C, 0x58A90B, 0x58A9BF
RadarScaleHeight - 0x5834BC, 0x58A443, 0x58A5DA, 0x58A6E0, 0x58A793, 0x58A830, 0x58A8E1, 0x58A984
Radar-Tilt-XPos - 0x58A469
Radar-Tilt-YPos - 0x58A499
Radar-Height-XPos - 0x58A5E2, 0x58A6E6
Radar-Height-YPos - 0x58A60E, 0x58A71E
 
Top