Raised This Month: $32 Target: $400
 8% 

CS:GO Hide HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-11-2015 , 00:25   CS:GO Hide HUD
Reply With Quote #1

Hey guys! I am looking for a simple plugin that disables the Health, Armor, Ammo, Kill Feed, and Radar for everyone in the server. Can you guys please help me out on this one?

I have seen these before but dont know what to do with them

PHP Code:
// Hud Element hiding flags
#define    HIDEHUD_WEAPONSELECTION        ( 1<<0 )    // Hide ammo count & weapon selection
#define    HIDEHUD_FLASHLIGHT            ( 1<<1 )
#define    HIDEHUD_ALL                    ( 1<<2 )
#define HIDEHUD_HEALTH                ( 1<<3 )    // Hide health & armor / suit battery
#define HIDEHUD_PLAYERDEAD            ( 1<<4 )    // Hide when local player's dead
#define HIDEHUD_NEEDSUIT            ( 1<<5 )    // Hide when the local player doesn't have the HEV suit
#define HIDEHUD_MISCSTATUS            ( 1<<6 )    // Hide miscellaneous status elements (trains, pickup history, death notices, etc)
#define HIDEHUD_CHAT                ( 1<<7 )    // Hide all communication elements (saytext, voice icon, etc)
#define    HIDEHUD_CROSSHAIR            ( 1<<8 )    // Hide crosshairs
#define    HIDEHUD_VEHICLE_CROSSHAIR    ( 1<<9 )    // Hide vehicle crosshair
#define HIDEHUD_INVEHICLE            ( 1<<10 )
#define HIDEHUD_BONUS_PROGRESS        ( 1<<11 )    // Hide bonus progress display (for bonus map challenges)

#define HIDEHUD_BITCOUNT            12 
headline is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-11-2015 , 02:53   Re: CS:GO Hide HUD
Reply With Quote #2

I tried this and it doesn't seem to work yet it compiles fine...


PHP Code:
#define    HIDEHUD_WEAPONSELECTION    ( 1<<0 ) // Hide ammo count & weapon selection
#define    HIDEHUD_FLASHLIGHT    ( 1<<1 )
#define    HIDEHUD_ALL    ( 1<<2 )
#define    HIDEHUD_HEALTH    ( 1<<3 ) // Hide health & armor / suit battery
#define    HIDEHUD_PLAYERDEAD    ( 1<<4 ) // Hide when local player's dead
#define    HIDEHUD_NEEDSUIT    ( 1<<5 ) // Hide when the local player doesn't have the HEV suit
#define    HIDEHUD_MISCSTATUS    ( 1<<6 ) // Hide miscellaneous status elements (trains, pickup history, death notices, etc)
#define    HIDEHUD_CHAT    ( 1<<7 ) // Hide all communication elements (saytext, voice icon, etc)
#define    HIDEHUD_CROSSHAIR    ( 1<<8 ) // Hide crosshairs
#define    HIDEHUD_VEHICLE_CROSSHAIR    ( 1<<9 ) // Hide vehicle crosshair
#define    HIDEHUD_INVEHICLE    ( 1<<10 )
#define    HIDEHUD_BONUS_PROGRESS    ( 1<<11 ) // Hide bonus progress display (for bonus map challenges)

#define    HIDEHUD_BITCOUNT    12 

public OnPluginStart()
{
    
HookEvent("player_spawn"spawn);
}

public 
spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
userid GetEventInt(event"userid");
    
CreateTimer(0.0hide_hpuserid);
}

public 
Action:hide_hp(Handle:timerany:userid)
{
    new 
client GetClientOfUserId(userid);
    if(
client != && IsClientInGame(client))
    {
        
SetEntProp(clientProp_Send"m_iHideHUD"GetEntProp(clientProp_Send"m_iHideHUD")|HIDEHUD_HEALTH);
    }

headline is offline
Bchewy
AlliedModders Donor
Join Date: Nov 2014
Old 05-11-2015 , 04:33   Re: CS:GO Hide HUD
Reply With Quote #3

Check this out?
https://forums.alliedmods.net/showthread.php?p=2272977
Bchewy is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-11-2015 , 13:58   Re: CS:GO Hide HUD
Reply With Quote #4

Quote:
Originally Posted by Bchewy View Post
Thats to add elements to the HUD and doesn't give any information about what to do.
headline is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-11-2015 , 22:29   Re: CS:GO Hide HUD
Reply With Quote #5

The hidehud flags are different then they actually are in-game for csgo atleast, you will have to play around with the flags.
There is also ( 1<<12 ) and ( 1<<13 ) that you can consider in hiding elements.
Player deaths should be hidden through the player_death event, i think they still show up with the entire hud disabled, i might be wrong on that though.

Last edited by Mitchell; 05-11-2015 at 22:29.
Mitchell is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 10-18-2016 , 01:33   Re: CS:GO Hide HUD
Reply With Quote #6

Looking for this too ...
__________________
nguyenbaodanh is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 10-18-2016 , 02:48   Re: CS:GO Hide HUD
Reply With Quote #7

Quote:
Originally Posted by nguyenbaodanh View Post
Looking for this too ...
I'm glad this resurfaced. Found these not too long ago, some might not work. Idk who found these


PHP Code:
#define HIDEHUD_CSGO_ALL                    ( 1<<2 )
#define HIDEHUD_CSGO_HEALTH_AND_CROSSHAIR    ( 1<<4 )
#define HIDEHUD_CSGO_RADAR                    ( 1<<12 )
#define HIDEHUD_RADARANDTIMER                  12288 

Last edited by headline; 10-18-2016 at 02:48.
headline is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 06-24-2017 , 00:54   Re: CS:GO Hide HUD
Reply With Quote #8

These work great for me, but if the player is a spectator, it no longer works. Any ideas how to fix or why this happens?
hmmmmm is offline
Kinsi
Senior Member
Join Date: Apr 2013
Old 08-14-2017 , 19:32   Re: CS:GO Hide HUD
Reply With Quote #9

Looking for a working solution for spectators right now as well, doesnt look like there is any. It works while spectating some players, doesnt while others. Meh, csgo ¯\_(ツ)_/¯
Kinsi is offline
hoppbro
New Member
Join Date: Sep 2017
Old 09-08-2017 , 19:41   Re: CS:GO Hide HUD
Reply With Quote #10

so, does anyone know how to disable hud on the top of the screen (timer,score)?
hoppbro is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode