Jump to content

_GET_PLAYER_HEALTH_RECHARGE_MULTIPLIER


Native Details

  • Name_GET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
  • NamespacePLAYER
  • Native Hash0x22CD23BB0C45E0CD
  • Typefloat
  • First seen version1207

Native Parameters

DESCRIPTION

There is no description yet for this native, why not edit it and add one?


User Feedback

Recommended Comments

This return -1 for inactive players and 1 for active players, i called this IS_PLAYER_VALID

 

p0 is player index

 

int __fastcall IS_PLAYER_VALID(unsigned int a1)
{
  __int64 v1; // rax
  __int64 v2; // rdx
  unsigned __int64 v3; // rax
  __int64 v4; // rdx
  float result; // xmm0_4

  v1 = get_player_addr(a1);
  if ( v1
    && (v2 = *(328i64 * ((*(v1 + 0x9C) & 0x1FFFFu) - dword_7FF7E77304F8) + qword_7FF7E7730500 + 0xA0),
        v3 = *(328i64 * ((*(v1 + 0x9C) & 0x1FFFFu) - dword_7FF7E77304F8) + qword_7FF7E7730500 + 0xA0) & 0xFFFFFFFFFFFFFFFEui64,
        v4 = -v2,
        v3 & -(v4 != 0)) )
  {
    result = *((v3 & -(v4 != 0)) + 0xA8);
  }
  else
  {
    result = *&return_minus_1;
  }
  return result;
}

Edited by ChinaCxCoder
  • Like 2
Link to comment
Share on other sites



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...