Skip to content

Commit

Permalink
Fixed fake players, ESP in menu and warnings about ESP in console. (#82)
Browse files Browse the repository at this point in the history
* Added MP5-SD into weapons.
* Added warning with handle address.
  • Loading branch information
PetrSeifert committed Oct 15, 2023
1 parent 4f1abc6 commit 6c60358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion controller/src/enhancements/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ impl PlayerESP {
.context("invalid player name")?
.to_string()
} else {
"unknown".to_string()
log::warn!(
"Handle at address {:p} has no valid controller!",
&controller_handle
);
return Ok(None);
};

let player_has_defuser = player_pawn
Expand Down
2 changes: 1 addition & 1 deletion controller/src/enhancements/spectators_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Enhancement for SpectatorsList {

let local_observer_target_handle = local_obs_pawn
.m_pObserverServices()?
.read_schema()?
.reference_schema()?
.m_hObserverTarget()?;

let current_local_observer_target = ctx
Expand Down

0 comments on commit 6c60358

Please sign in to comment.