Skip to content

Instantly share code, notes, and snippets.

@blair1922
Created December 16, 2023 22:36
Show Gist options
  • Save blair1922/0b46ac0db6c7818873c9ff3f23e8aece to your computer and use it in GitHub Desktop.
Save blair1922/0b46ac0db6c7818873c9ff3f23e8aece to your computer and use it in GitHub Desktop.
fortnite health/shield esp estimator (90% accurate)
//
// stripped off projectnino
// register_shot.cc: 14
//
const auto memes::etw_get_registered_shot_event[&] = ( {
this->registered_bullet.weapon_capacitor = reinterpret_cast< pawn* >( this->registered_bullet.sender )->current_weapon;
this->registered_damage = static_cast< float >( this->cached_estimated_health_and_shield - GET_DAMAGE_MULTIPLIER( ##this->registered_bullet.weapon_capacitor ) );
if ( this->cached_estimated_health_and_shield >= 205 )
this->event_register_count -= 5.0f;
return true;
} );
if( etw_get_registered_shot_event( this->target_actor ) )
{
this->cached_estimated_health_and_shield -= this->registered_taken_shield( -1 );
renderer::draw_health_and_shield_bar( e_rendering_types::engine, this->cached_estimated_health_and_shield );
}
@blair1922
Copy link
Author

this takes in account the registered projectiles/bullets handled by the game and by entities you know of.
if any shield/mushroom/health booster is taken, it will also be taken into account.
image
^ This is what it will look like once rendered (this is d3d11 rendering and not ImGui so we do direct polygon rendering calls and use stb_image to render the shield/health icons)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment