Skip to content

Commit

Permalink
dont render dead players
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-Lentz committed Jun 5, 2024
1 parent 753f455 commit e63a9c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lobby_broadcast": true,
"max_players": 1,
"disable_dm": true,
"skip_intro": true
"skip_intro": false
},
"client": {
"default_name": "Conan O'Brien",
Expand Down
4 changes: 4 additions & 0 deletions src/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,10 @@ void Client::geometryPass() {
}
break;
}
if (!sharedObject->playerInfo->is_alive) {
break; // don't render dead players
}

animManager->setAnimation(sharedObject->globalID, sharedObject->type, sharedObject->animState);

/* Update model animation */
Expand Down

0 comments on commit e63a9c1

Please sign in to comment.