From e63a9c148defb72803cba779deada9df385d388e Mon Sep 17 00:00:00 2001 From: Tyler Lentz Date: Wed, 5 Jun 2024 13:19:39 -0700 Subject: [PATCH] dont render dead players --- config.json | 2 +- src/client/client.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index d6e1281c..5c3e0e66 100644 --- a/config.json +++ b/config.json @@ -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", diff --git a/src/client/client.cpp b/src/client/client.cpp index fd6abcd2..3d975004 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -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 */