Skip to content

Commit

Permalink
Draw player outline glow also when the local player is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Nov 30, 2024
1 parent 2439d05 commit 7d8c6eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class PlayerOutlineGlowCondition {

[[nodiscard]] bool shouldGlowPlayer(auto&& playerPawn) const noexcept
{
return context.isLocalPlayerAlive()
&& playerPawn.isAlive().value_or(true)
return playerPawn.isAlive().value_or(true)
&& playerPawn.health().greaterThan(0).valueOr(true)
&& !playerPawn.isControlledByLocalPlayer()
&& playerPawn.isTTorCT()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ class PlayerOutlineGlowContext {
return hookContext.template make<PlayerOutlineGlowCondition>();
}

[[nodiscard]] bool isLocalPlayerAlive() const noexcept
{
return hookContext.localPlayerController().playerPawn().isAlive().value_or(true);
}

private:
HookContext& hookContext;
};

0 comments on commit 7d8c6eb

Please sign in to comment.