Lower nametag height for MafiaC

This commit is contained in:
Vortrex
2023-02-26 20:06:40 -06:00
parent 272cfd9a3f
commit 081f78e53b
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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 = {};