Weapon::getWeaponHudStats: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
struct WeaponHudStatsData<br>{<br>    BYTE hudDamage; // 0x0000<br>    char _0x0001[0x7]; // 0x0001<br>    BYTE hudSpeed; // 0x0008<br>    char _0x0009[0x7]; // 0x0009<br>    BYTE hudCapacity; // 0x0010<br>    char _0x0011[0x7]; // 0x0011<br>    BYTE hudAccuracy; // 0x0018<br>    char _0x0019[0x7]; // 0x0019<br>    BYTE hudRange; // 0x0020<br>};<br><br>Usage:<br><br>WeaponHudStatsData data;<br>if (GET_WEAPON_HUD_STATS(weaponHash, (int *)&amp;data))<br>{<br>    // BYTE damagePercentage = data.hudDamage and so on<br>}
struct WeaponHudStatsData<br>{<br>    BYTE hudDamage; // 0x0000<br>    char _0x0001[0x7]; // 0x0001<br>    BYTE hudSpeed; // 0x0008<br>    char _0x0009[0x7]; // 0x0009<br>    BYTE hudCapacity; // 0x0010<br>    char _0x0011[0x7]; // 0x0011<br>    BYTE hudAccuracy; // 0x0018<br>    char _0x0019[0x7]; // 0x0019<br>    BYTE hudRange; // 0x0020<br>};<br><br>Usage:<br><br>WeaponHudStatsData data;<br>if (GET_WEAPON_HUD_STATS(weaponHash, (int *)&amp;data))<br>{<br>    // BYTE damagePercentage = data.hudDamage and so on<br>}
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">weapon.getWeaponHudStats(p0, p1);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.getWeaponHudStats(p0, p1);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' unknown (to be checked)
*'''p0:''' unknown (to be checked)
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Weapon_function_c}}
{{Weapon_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:35, 6 May 2017

struct WeaponHudStatsData
{
BYTE hudDamage; // 0x0000
char _0x0001[0x7]; // 0x0001
BYTE hudSpeed; // 0x0008
char _0x0009[0x7]; // 0x0009
BYTE hudCapacity; // 0x0010
char _0x0011[0x7]; // 0x0011
BYTE hudAccuracy; // 0x0018
char _0x0019[0x7]; // 0x0019
BYTE hudRange; // 0x0020
};

Usage:

WeaponHudStatsData data;
if (GET_WEAPON_HUD_STATS(weaponHash, (int *)&data))
{
// BYTE damagePercentage = data.hudDamage and so on
}

Syntax

mp.game.weapon.getWeaponHudStats(p0, p1);

Required Arguments

  • p0: unknown (to be checked)
  • p1: unknown (to be checked)

Return value

  • Boolean

Example

// todo

See also