remove voice debug
This commit is contained in:
@@ -33,18 +33,9 @@ export default function customNametags() {
|
|||||||
const graphics = mp.game.graphics;
|
const graphics = mp.game.graphics;
|
||||||
const screenRes = graphics.getScreenResolution(0, 0);
|
const screenRes = graphics.getScreenResolution(0, 0);
|
||||||
|
|
||||||
var localPlayer: any = mp.players.local;
|
|
||||||
|
|
||||||
nametags.forEach(nametag => {
|
nametags.forEach(nametag => {
|
||||||
let [player, x, y, distance] = nametag;
|
let [player, x, y, distance] = nametag;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var voiceActive = player.isVoiceActive;
|
|
||||||
var isTalking = player.isPlayerTalking;
|
|
||||||
|
|
||||||
mp.gui.chat.push("name = " + player.name + ", voiceActive = " + voiceActive + ", isTalking =" + isTalking);
|
|
||||||
|
|
||||||
if (distance <= maxDistance) {
|
if (distance <= maxDistance) {
|
||||||
let scale = distance / maxDistance;
|
let scale = distance / maxDistance;
|
||||||
if (scale < 0.6) scale = 0.6;
|
if (scale < 0.6) scale = 0.6;
|
||||||
|
|||||||
Reference in New Issue
Block a user