Jump to content
View in the app

A better way to browse. Learn more.

RDR2Mods.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.