Author Topic: Display cvar content on hud  (Read 3826 times)

seeeker

  • Posts: 122
  • Turrets: +19/-5
Display cvar content on hud
« on: June 04, 2008, 09:54:25 am »
Is it possible to display the contents of a certain cvar on the hud?
Im trying to make a small menu that will be populated with text stored on cvars, the content will change constantly.


Code: [Select]

itemDef
    {
      name "littlebox"
      rect 8 250 800 100
      visible 1
  showCvar { 1 }
      decoration
      forecolor 1 0 0 1
      textscale 0.5
      autowrapped
      text cvarname???

    }

Any help is appreciated. Thanks

blood2.0

  • Guest
Re: Display cvar content on hud
« Reply #1 on: June 07, 2008, 11:25:04 pm »
what is  a cvar this is all i could find on it

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Re: Display cvar content on hud
« Reply #2 on: June 08, 2008, 02:43:17 am »
It's a setting, essentially.
sv_hostname is an example of a server side one,
cl_guidserveruniq is an an example of a client side one