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

ChinaCxCoder

Members
(edited)

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

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...

Recently Browsing 0

  • No registered users viewing this page.