Page 1 of 1
Zoom out with mouse scroll in spec mode
Posted: Mon Nov 23, 2020 3:08 pm
by yolozzz
I just thought it will be cool to unzoom with a scroll button in spec mode while plyaing, like if you need to fast check the next part or see a big picture of a map. And each time you spec/unspec the zoom amount will reset to default. What do you think about it?
Re: Zoom out with mouse scroll in spec mode
Posted: Mon Nov 23, 2020 3:49 pm
by deen
You could automatically zoom out every time you pause by adding these 2 files in config_directory.bat:
spec1.cfg:
Code: Select all
bind q "say /spec; zoom-; zoom-; zoom-; zoom-; zoom-; exec spec2.cfg"
spec2.cfg:
Code: Select all
bind q "say /spec; zoom; exec spec1.cfg"
Then activate it by running
exec spec1.cfg
in F1.
Re: Zoom out with mouse scroll in spec mode
Posted: Mon Nov 23, 2020 3:59 pm
by yolozzz
I would love to have this feature instead but thanks for the binds, they're helpful!
Re: Zoom out with mouse scroll in spec mode
Posted: Mon Nov 23, 2020 6:10 pm
by Index
You can even bind the exact feature you requested.
Just as a quick draft (it might be more elegant to use .cfg-files for enable/disable):
ON
bind x "say /spec; bind mousewheelup zoom+; bind mousewheeldown zoom-"
OFF
bind y "say /spec; zoom; bind mousewheelup +nextweapon; bind mousewheeldown +prevweapon"
Binding fun
Posted: Mon Jan 18, 2021 9:49 am
by GG Kid
Sounds like my kind of topic. i like the idea, but sense i don't code.... lets bind.
As for the issues that arise from using binds, it's that they are just an extension of your actions, let say you use Deens bind solution & when paused(& zoomed out) you leave the sever, the state of zoom will now be reversed. i.e. zoomed out when joined. same 'reverse issue' will happen with Index's except it's the ScrollWheel binds this time.
Now that you understand the limitations what should you do? well the only thing i can think of is bind a reset key. i suggest 'composed binds' like shift+x or a moment key not used is spec mode.
SpecOut.cfg
Code: Select all
bind q "say /spec; zoom-; zoom-; zoom-; zoom-; zoom-; exec JoinReset.cfg"
JoinReset.cfg
Code: Select all
bind q "say /spec; zoom; exec SpecOut.cfg"
Zooms out 5 times on /spec
To initialize it:
exec SpecOut.cfg
, then use
Q in-game to toggle it.
to work around the revese issue
bind space "+jump; zoom; exec SpecOut.cfg"
& use SPACE in game to reset back to normal.
SpecZoom.cfg
say /spec
bind mousewheelup zoom+
bind mousewheeldown zoom-
bind p exec JoinRebind.cfg
JoinRebind.cfg
say /spec
zoom
bind mousewheelup +nextweapon
bind mousewheeldown +prevweapon
bind p exec SpecZoom.cfg
WheelZoomReset.cfg
zoom
bind mousewheelup +nextweapon
bind mousewheeldown +prevweapon
bind p exec SpecZoom.cfg
ScrollWheel Zooms when it Spectator Mode
To initiate:
bind p exec SpecZoom.cfg
, then use
P in-game to toggle it on & off.
to work around the revese issue
bind shift+p "exec WheelZoomReset.cfg"
& use SHIFT+P in game to reset back to normal.
also you might as well make a "autoexec.cfg" file & put the initialization binds in there so that when you start your client they will be set to the beginning. if you need anymore help i made a tut
viewtopic.php?f=16&t=5819 Long time no see, hope your doing well man. life happens & these little side things stop being so important, i sure do like the challenge of thinking though the Binding system sometimes tho...