View Single Post
Author Message
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 12-11-2021 , 16:59   [L4D & L4D2] HUD Hiddens v1.6 [3-December-2022]
Reply With Quote #1

about
  • what this do?default hide all players HUD,trigger show instantly by menu opened or specifies key pressed or incapped
  • on my realism server i want to have immersive experience so this my first plugin appeared
  • idea from [L4D2] More Hard Core HUD Mode 【Remasterd】 and this thread and Valve's Lost Mutations: Ultra Realism
  • can config hud instantly shows when key press / menu opened / incapped / HUDs / which team / which difficulties / which admins
  • the flag 64 is hide HP bar and hint and menu ,check screenshot attachment
  • can specifies which admin flag acces hide hud only
  • can toggle HUD over sm_hud command, and command permission configurable

ConVar

PHP Code:
// hidd these HUDs, 1=weapon selection, 2=flashlight, 4=all, 8=health
// 16=player dead, 32=needssuit, 64=misc, 128=chat, 256=crosshair, 512=vehicle crosshair, 1024=in vehicle
// not all available
hide_hud_hideflag "64"

// game frames skips of hidden action, 10=every 10 frames, higher value detect slower and less performance
hide_hud_interval "10"

// show hud on these difficulties. 1=easy 2=normal 4=hard 8=expert -1=All 7=excluded expert. add numbers together you want.
hide_hud_show_on_difficulties "1"

// show hud if incapped
hide_hud_show_on_incapped "1"

// show hud if press these key, 131072=speed(shift) 4=crouch 
hide_hud_show_on_key "131072"

// show hud if menu open
hide_hud_show_on_menuing "1"

// show hud on these teams. 1=idle 2=spectator 4=survivors 8=infected 11=excluded survivors. add numbers together you want.
hide_hud_show_on_teams "11"

// admin flags to access plugin, dont hide hud if player doesnt has permission.
// f=sm_slay empty=everyone allow. see more on /configs/admin_levels.cfg
hide_hud_hide_on_admin ""

//admin flags to access sm_hud, toggle the hide status.
// f=sm_slay empty=everyone allow. see more on /configs/admin_levels.cfg
hide_hud_command "" 

Commands
PHP Code:
find "client hud"
"sm_hidehud"
 
toggle did override client hud hiddenmeaning on or off
"sm_hud"
 
toggle did override client hud showmeaning on or off 

changelog
  • v1.0 just released;
  • v1.0.1 check entity validates for button status;
  • v1.2 turn to new syntax and less performance usage, add binary check now compatible for other flag change plugins;
  • v1.3
    support show on specifies teams or difficulties,
    change work way to GameFrame and hide_hud_interval change to frames unit,
    add key detection instead +speed;
    death also regarded as incapped; 7-April-2022
  • v1.4 new ConVar *_hide_on_admin to control hide hud on specify admins; 1-November-2022
  • v1.5
    new Command sm_hud to toggle did override client hud status, meaning on or off, command status save on server over 'clientprefs',
    new ConVar *_command to control which admin flag user can access command sm_hud or everyone; 2-December-2022
  • v1.6
    new Command sm_hidehud to toggle did override hud hidden, this is the opposite of the sm_hud, but didnt override hide_hud_show_on_menuing, otherwise cannot show any menu,
    variable style turn to hungarian notation; 3-December-2022


Installation
  • put hideHUD.smx on /plugins/
Attached Images
File Type: jpg 20211214051647.jpg (62.2 KB, 1090 views)
Attached Files
File Type: sp Get Plugin or Get Source (hideHUD.sp - 463 views - 8.8 KB)
__________________

Last edited by NoroHime; 12-03-2022 at 09:45.
NoroHime is offline