Skip to content

Commit

Permalink
fix: orange ghost rotation (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
tricksurf authored and ThisAMJ committed Jan 3, 2024
1 parent f455885 commit 0890ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/Demo/NetworkGhostPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void NetworkManager::SendPlayerData() {
auto player = client->GetPlayer(GET_SLOT() + 1);
if (player) {
bool grounded = player->ground_entity();
packet << DataGhost{client->GetAbsOrigin(player), engine->GetAngles(GET_SLOT()), client->GetViewOffset(player).z, grounded};
packet << DataGhost{client->GetAbsOrigin(player), engine->GetAngles(engine->IsOrange() ? 0 : GET_SLOT()), client->GetViewOffset(player).z, grounded};
} else {
packet << DataGhost{{0, 0, 0}, {0, 0, 0}, 0, false};
}
Expand Down

0 comments on commit 0890ada

Please sign in to comment.