eLeMenT
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Binding a screenresolution change to a key

2 posters

Go down

Binding a screenresolution change to a key Empty Binding a screenresolution change to a key

Post by vega Sat Mar 22 2014, 12:40

Kwakkie asked me f i knew how to bind a screenresolution to a certain key and i did not but after a bit of trying i found this:

Step 1: do the command in console: vid_fullscreen 0
Now that is done we can start making the bind

Step 2: To make the bind you just do: bind key "set vid_width value; set vid_height value; vid_restart"
Change the key into what ever you like and the values in the width and height you want to have your resolution in. Now the dissadvantage of this change is that it has to do a vid_restart. What this does is that it reloads your game in the changed resolution so you will get a loading bar for a few seconds.

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by vega Sat Mar 22 2014, 13:29

Sadly after trying some stuff i found out you can't bind a bind in a bind (if that makes any sence..) what i did was this: bind 8 "vid_width 1056; vid_height 600; bind 8 "vid_width 1366; vid_height 768; bind 8 "vid width 1056; vid_height 600"; vid_restart"; vid_restart"

For those who understand what i did it does not work Very Happy

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by Kwakkiezalf Sun Mar 23 2014, 22:14

Veag,

great work. The idea was to toggle the binds in binds. Did u try that?
bind 8 toggle "vid_width 1056; vid_height 600; vid_restart"; "vid_width 1366; vid_height 768; vid_restart"

I did not try it, but this is what I am looking for.

cheers,

kwakkie
Kwakkiezalf
Kwakkiezalf
eLeMenT Friend
eLeMenT Friend


Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by vega Sun Mar 23 2014, 22:16

Hmm no i did not try a toggle yet i'll try that tomorow Smile what i tried was when you press the key it changes the resolution and then changes the bind to what the other resolution you wish. Sadly a bind in a bind doesn't work but i'll be looking for a toggle Smile

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by Kwakkiezalf Sun Mar 23 2014, 22:21

I think you can make a small loop (with a new value). I remember I had something like that in doom scripts.

Kwakkie
Kwakkiezalf
Kwakkiezalf
eLeMenT Friend
eLeMenT Friend


Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by vega Sun Mar 23 2014, 22:28

Allright after 3 tries i found how to toggle as well Smile its not as you thought but it looks like it:

bind 8 "toggle vid_width 1056 1366; toggle vid_height 600 768; vid_restart"

And that should work Smile

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by Kwakkiezalf Mon Mar 24 2014, 21:18

cool....i'll give it a try!

ciao
Kwakkiezalf
Kwakkiezalf
eLeMenT Friend
eLeMenT Friend


Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by vega Mon Mar 24 2014, 21:19

Be sure to do vid_fullscreen 0 and a vid_restart before you do it cause otherwise it doesn't do shit Very Happy

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by vega Sun Jun 01 2014, 23:06

SOLVED
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

Binding a screenresolution change to a key Empty Re: Binding a screenresolution change to a key

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum