HUD Toggle / Screenshot script

A Config Script for Half-Life 2

4 lines | 171 bytes | Raw Code
1
2
3
4
bind x "hudoff"
alias hudoff "cl_drawhud 0; wait; r_drawviewmodel 0; bind x "hudon"
alias hudon "
cl_drawhud 1; wait; r_drawviewmodel 1; bind x "hudoff"
jpeg_quality 100
bind x "hudoff"
alias hudoff "cl_drawhud 0; wait; r_drawviewmodel 0; bind x "hudon"
alias hudon "cl_drawhud 1; wait; r_drawviewmodel 1; bind x "hudoff"

jpeg_quality 100


This is a pretty basic use of aliases in scripting, it disables your viewmodel and hud on the push of a button, then enables them again when you push the same button. The default button is X but you can change that, just replace all the "X"s after the word "bind" with whatever key you want. I use this whenever I'm trying to take a screenshot.
Sign up to access this!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Hedy
Wrote it

Submitter

HedyL avatar
HedyL Joined 1y ago
Offline
931 points Ranked 5767th

HedyL
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 389 Views
  • 6moSubmitted
  • 6moModified

Scores

  • Not yet rated
Sign up to access this!

WiPs by Submitter

More Other/Misc Scripts

bcp.crwdcntrl.net tracking pixel