From 276c2e07a461dcac4af4c97068a8fa8798967a06 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Mon, 11 Apr 2011 22:20:26 +0300 Subject: [PATCH] looks like we can figure out the netname with stuff that already exists in CSQC :) --- qcsrc/client/Main.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 929a775b2..144e1f79f 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -920,13 +920,13 @@ void Ent_ShowNames() playerslots[the_entnum].origin_x = ReadShort(); playerslots[the_entnum].origin_y = ReadShort(); playerslots[the_entnum].origin_z = ReadShort(); - print("Updated origin = ", vtos(playerslots[the_entnum].origin), " for player # ", ftos(the_entnum), "\n"); + print("Updated origin = ", vtos(playerslots[the_entnum].origin), " for player ", GetPlayerName(the_entnum-1), "\n"); } if(sf & 2) { playerslots[the_entnum].health = ReadByte(); playerslots[the_entnum].armorvalue = ReadByte(); - print("Updated health/armor = ", ftos(playerslots[the_entnum].health), "/", ftos(playerslots[the_entnum].health), " for player # ", ftos(the_entnum), "\n"); + print("Updated health/armor = ", ftos(playerslots[the_entnum].health), "/", ftos(playerslots[the_entnum].health), "\n"); } /* -- 2.39.2