Tremulous Forum

Mods => Modding Center => Topic started by: seeeker on June 04, 2008, 09:54:25 am

Title: Display cvar content on hud
Post by: seeeker 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
Title: Re: Display cvar content on hud
Post by: blood2.0 on June 07, 2008, 11:25:04 pm
what is  a cvar this is all i could find (http://www.corinthianvintagerace.com/) on it
Title: Re: Display cvar content on hud
Post by: Death On Ice 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