Results 1 to 5 of 5

Thread: Disable all HUDS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Thank you but i get this error:
    cg_draw2D is cheat protected.

    Edit: on server.cfg set sv_cheats "1" will not help me.

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Loveboy View Post
    Thank you but i get this error:
    cg_draw2D is cheat protected.

    Edit: on server.cfg set sv_cheats "1" will not help me.
    You have to be in developer mode to use that cvar. There is no way to hide all huds on a normal server. The only way to do it is go through every hud you are using, including stock ones, and put a cvar to turn them off. I did it for my version of hardcore mode:



    And I did that by editing hud.menu:

    Example:

    PHP Code:
        // WEAPON INFO
        
    menuDef
        
    {
            
    name "weaponinfo"
            
    fullScreen MENU_FALSE
            visible MENU_TRUE
            
    //rect 0 0 0 0 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
            
    rect 60 408.375 640 40

            
    // weapon ammo counter back
            
    itemDef
            
    {
                
    name "ammocounterback"
                
    //rect -100 -75 100 50
                
    rect 557.5 12 80 40
                forecolor 1.0 1.0 1.0 1.0
                background 
    "gfx/hud/hud@ammocounterback.tga"
                
    ownerdraw CG_PLAYER_AMMO_BACKDROP
                visible MENU_TRUE
                decoration
                dvartest  
    "scr_demon_hardcore"
                
    showDvar  "0" }
            }
            
            
    // weapon name
            
    itemDef
            
    {
                
    name "weapname"
                
    //rect -385 -40 290 40
                
    rect 242.5 37.65 320 30
                textstyle ITEM_TEXTSTYLE_SHADOWED
                textscale WEAPON_TEXTSCALE
                
    //textscale .4
                
    forecolor 1.0 1.0 1.0 1.0
                ownerdraw CG_PLAYER_WEAPON_NAME
                visible MENU_TRUE
                decoration
                dvartest  
    "scr_demon_hardcore"
                
    showDvar  "0" }
            }
            
            
    // ammo text
            
    itemDef 
            
    {
                 
    name "ammotex"
                
    //rect -85 -40 70 40
                
    rect 570 38.5 55 40
                textstyle ITEM_TEXTSTYLE_SHADOWED
                textscale .325
                forecolor 1.0 1.0 1.0 1.0
                ownerdraw CG_PLAYER_AMMO_VALUE
                visible MENU_TRUE
                decoration
                dvartest  
    "scr_demon_hardcore"
                
    showDvar  "0" }
            }
        } 
    If you look close, you can see that there is a dvartest for all menu items. To turn them all off, you just set the client cvar scr_demon_hardcore to 0 for all players.
    Last edited by Tally; 11th October 2013 at 12:01.

  3. The Following 2 Users Say Thank You to Tally For This Useful Post:

    kung foo man (11th October 2013),Loveboy (11th October 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •