diff --git a/src/Features/ConfigPlus.cpp b/src/Features/ConfigPlus.cpp index 00c743064..c16084faa 100644 --- a/src/Features/ConfigPlus.cpp +++ b/src/Features/ConfigPlus.cpp @@ -717,7 +717,8 @@ static Condition *ParseCondition(std::queue toks) { // }}} CON_COMMAND_F(sar_get_partner_id, "sar_get_partner_id - Prints your coop partner's steam id\n", FCVAR_DONTRECORD) { - if (!engine->IsCoop() || engine->IsSplitscreen()) { + if (!engine->IsCoop() || engine->IsSplitscreen() || !strcmp("0", engine->GetPartnerSteamID32().c_str())) { + console->Print("This command only works in online co-op.\n"); return; } console->Print("%s\n", engine->GetPartnerSteamID32().c_str()); diff --git a/src/Features/Demo/GhostRenderer.cpp b/src/Features/Demo/GhostRenderer.cpp index 330ba3485..b26937b3a 100644 --- a/src/Features/Demo/GhostRenderer.cpp +++ b/src/Features/Demo/GhostRenderer.cpp @@ -116,10 +116,19 @@ void GhostRenderer::UpdateAnimatedVerts() { localPos.x * yawSin + localPos.y * yawCos, localPos.z }; - if (ghost->name == "Dinnerbone") { + + if (ghost->name == "Dinnerbone" || ghost->name == "Grumm") { localPos.z = 72 - localPos.z; } + if (ghost->name == "jeb_") { + int host, server, client; + engine->GetTicks(host, server, client); + + int hue = (server) % 360; + ghost->color = Utils::HSVToRGB(hue, 100, 100); + } + // transform it to global coordinates Vector globalPos = ghost->data.position + localPos;