Jump to content

HUD toggle when shooting


S3ti

Recommended Posts

I was a little bored and had the idea of this hud-toggle-shooting script. And I can't say that it is really beneficial in any way, but maybe someone likes it :P
 
What it does is blending out the whole hud except crosshair when shooting with the main weapon (smg/rifle/heavy) and blend in again when you stop shooting, with all other weaponbanks like needle and packs it will stay on. Keys are 1-7 for switching and Mouse1 (o rly) for shooting, you can just change them to your needs. It consists of 3 small config files. If you want to use it just place them in your game/mod folder and exec "binds.cfg" or add it to your autoexec.

 

 


binds.cfg

//---------------------------------[ binds ]----------------------------------//

//weaponbank variables
set knife "weaponbank 1; exec hudon.cfg"
set pistol "weaponbank 2; exec hudon.cfg"
set smg "weaponbank 3; exec hudoff.cfg"
set grenade "weaponbank 4; exec hudon.cfg"
set special1 "weaponbank 5; exec hudon.cfg"
set special2 "weaponbank 6; exec hudon.cfg"
set special3 "weaponbank 7; exec hudon.cfg"

//knife
bind 1 "vstr knife"

//pistol
bind 2 "vstr pistol"

//smg
bind 3 "vstr smg"

//grenade
bind 4 "vstr grenade"

//special1 (needle, pliers..)
bind 5 "vstr special1"

//special2 (packs, dyna..)
bind 6 "vstr special2"

//special3 (adre)
bind 7 "vstr special3"

hudon.cfg

set cg_draw2d "1"
bind mouse1 "+attack"

hudoff.cfg

set hudon "+attack; cg_draw2d 0; set vstr hudoff"
set hudoff "-attack; cg_draw2d 1; set vstr hudon"
bind mouse1 "+vstr hudon hudoff"

 

 

 

Configs for download hudtoggle.zip

Link to comment
Share on other sites

Hmm, ok tried it for a few hours and it's damn annoying somehow. Also it's weird when shooting distant enemies, if you can't see them going down behind obstacles e.g, you can't tell if the guy is down or not because there's no "You killed ..." on the screen instantly.

 

Conclusion, I hate it :P

Link to comment
Share on other sites

Better change opacity than turning it off completly. Values 0.33 and 0.66 are nice :)

 

Th3o

Link to comment
Share on other sites

Better change opacity than turning it off completly. Values 0.33 and 0.66 are nice :)

 

Th3o

For Jaymod there are no cvars which can do that afaik, or do you know some? For ETPro yes, there are cvars which can change opacity for some hud elements. On Silent you can fully customize your HUD and that should be no problem at all (best feature ever imo).

 

Well, I don't use it anyway :D

Edited by S3ti
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.