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