From 33cf8715e7f47a9fbb7eff786942f28f965f615a Mon Sep 17 00:00:00 2001 From: Bukz Date: Wed, 1 Jun 2011 03:03:33 +0000 Subject: [PATCH] "showtargetname" - enables or disables showing the player name on the HUD when in your crosshair. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6487 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/docs.cfg | 2 ++ docs/reference.xml | 5 +++++ source/src/renderhud.cpp | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/docs.cfg b/config/docs.cfg index 53bd8b48..32d8047b 100644 --- a/config/docs.cfg +++ b/config/docs.cfg @@ -1141,6 +1141,8 @@ docident [cncolumncolor] [colour of CN column in scoreboard]; docargument [N] [0..9] [min 0/max 9/default 5]; docident [radarheight] [change at what height you are floating in the radar-view]; docargument [H] [height] [min 20/max 70/default 35]; +docident [showtargetname] [enables or disables showing the player name on the HUD when in your crosshair.]; +docargument [N] [0 off, 1 on] [min 0/max 1/default 1] [0]; docsection [Visuals] docident [aadynshadow] [Sets the size/resolution of the dynamic shadow data.]; docargument [] [the size] [min 0/max 3/default 2]; diff --git a/docs/reference.xml b/docs/reference.xml index a28704d9..10218124 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -4531,6 +4531,11 @@ Output: change at what height you are floating in the radar-view + + + enables or disables showing the player name on the HUD when in your crosshair. + + diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 090c6265..3a5a37fd 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -701,6 +701,7 @@ COMMANDN(getEngineState, CSgetEngineState, ARG_NONE); VARP(clockdisplay,0,0,2); VARP(dbgpos,0,0,1); +VARP(showtargetname,0,1,1); void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwater) { playerent *p = camera1->type