AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   CS:GO Hide HUD (https://forums.alliedmods.net/showthread.php?t=262722)

headline 05-11-2015 00:25

CS:GO Hide HUD
 
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 05-11-2015 02:53

Re: CS:GO Hide HUD
 
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);
    }



Bchewy 05-11-2015 04:33

Re: CS:GO Hide HUD
 
Check this out? :o
https://forums.alliedmods.net/showthread.php?p=2272977

headline 05-11-2015 13:58

Re: CS:GO Hide HUD
 
Quote:

Originally Posted by Bchewy (Post 2295458)

Thats to add elements to the HUD and doesn't give any information about what to do.

Mitchell 05-11-2015 22:29

Re: CS:GO Hide HUD
 
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.

nguyenbaodanh 10-18-2016 01:33

Re: CS:GO Hide HUD
 
Looking for this too ...

headline 10-18-2016 02:48

Re: CS:GO Hide HUD
 
Quote:

Originally Posted by nguyenbaodanh (Post 2463054)
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 


hmmmmm 06-24-2017 00:54

Re: CS:GO Hide HUD
 
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?

Kinsi 08-14-2017 19:32

Re: CS:GO Hide HUD
 
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 ¯\_(ツ)_/¯

hoppbro 09-08-2017 19:41

Re: CS:GO Hide HUD
 
so, does anyone know how to disable hud on the top of the screen (timer,score)?


All times are GMT -4. The time now is 04:21.

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