From 081f78e53b7b9b95c3ce01b1bba9c7f0510d346f Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 26 Feb 2023 20:06:40 -0600 Subject: [PATCH] Lower nametag height for MafiaC --- scripts/client/job.js | 4 ++++ scripts/client/nametag.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/client/job.js b/scripts/client/job.js index f060c528..2d95d221 100644 --- a/scripts/client/job.js +++ b/scripts/client/job.js @@ -11,6 +11,7 @@ let localPlayerJobType = -1; let localPlayerWorking = false; let jobRouteLocationBlip = null; let jobRouteLocationSphere = null; +let jobRouteLocationRadius = 5.0; let jobRouteLocationIndicatorPosition = toVector3(0.0, 0.0, 0.0); let jobRouteLocationIndicatorSize = [32, 32]; @@ -272,14 +273,17 @@ function removeJobsFromClient() { function processJobLocationIndicatorRendering() { if (jobRouteLocationIndicatorImage == null) { + logToConsole(LOG_VERBOSE, `[V.RP.Job]: Can't render job location indicator. Image is null.`); return false; } if (getGame() != V_GAME_MAFIA_ONE) { + logToConsole(LOG_VERBOSE, `[V.RP.Job]: Can't render job location indicator. Unsupported game.`); return false; } if (!jobRouteLocationIndicatorEnabled) { + logToConsole(LOG_VERBOSE, `[V.RP.Job]: Can't render job location indicator. Disabled`); return false; } diff --git a/scripts/client/nametag.js b/scripts/client/nametag.js index d86fdd47..b28db547 100644 --- a/scripts/client/nametag.js +++ b/scripts/client/nametag.js @@ -13,7 +13,7 @@ let afkStatusFont = null; let pingFont = null; let nametagDistance = 50.0; let nametagWidth = 70; -let nametagHeight = (getGame() == V_GAME_MAFIA_ONE) ? 2.5 : 0.9; +let nametagHeight = (getGame() == V_GAME_MAFIA_ONE) ? 2.0 : 0.9; let playerNames = {}; let playerColours = {};