+ Reply to Thread
Results 1 to 8 of 8

Thread: Zoom Toggle reset (zoom out)?

  1. #1
    Junior Member fat_ass is on a distinguished road
    Join Date
    Aug 2010
    Posts
    5

    Zoom Toggle reset (zoom out)?

    It'd be nice if there was a command to reset the zoom toggle state while in game.. I know "cg_zoomOutOnDeath" resets the state to zoomed out when you die.. which is great.. but the reason I'd like a manual zoom out function is because I'd like to use it the way that I have my zoom bound..

    I'm still using cg_fov for zooming and here's why.
    For example: my 'E' key is my rail key.. however, I set it up as a vstr, so if I push the 'E' key to pull out rail I then posses the rail. now if I hit 'E' a 2nd time it will zoom in, then if I push it again or push any other weapon other than mg it will zoom out. Then when I die or respawn I push mouse3 or my MG key to ensure that my settings reset. ...would love to see a "cg_vstrOnDeath" so I will no longer have to do this manually. Would also be great for other people who uses different sensitivities for weapons.

    Now the question is: so if it works this way for me, why would I want to be able to reset the built in zoom toggle? basically because the manual way I'm doing it now I have to specify a sensitivity.. and well.. I don't know the exact factor cg_fov changes sensitivity by, so don't know what the exact sensitivity should translate to. However with the built in toggle zoom.. it automatically adjusts your sensitivity correctly.

    So.. I'd either like a way to reset the zoom toggle to the zoomed out state (so that I could replace my cg_fov use with built in zoom function for accurate sensitivity transition).. OR I guess find out a way to get the correct sensitivity on the changing fovs based on my resolution. Thanks for anyone that can help.

    Edit:
    In case anyone is curious of my zoom script here it is

    // weapons

    bind "mouse3" "vstr spawn"
    bind "mwheelup" "vstr zoomin+"
    bind "mwheeldown" "vstr zoom-;sensitivity 2.5"

    // keys
    bind "w" "weapon 2;sensitivity 2.5;cl_mouseaccel 0;cg_drawcrosshair 6;cg_crosshairsize 40;cg_railtrailtime 400;vstr zoomtoga;set zoomtog vstr zoomtog0" //mg
    bind "e" "weapon 7;sensitivity 2.5;cl_mouseaccel 0;cg_drawcrosshair 3;cg_crosshairsize 24;cg_railtrailtime 0;vstr zoomtog;set zoomtoga vstr zoomtog0a" //rg
    bind "y" "weapon 6;sensitivity 3;cl_mouseaccel 0;cg_drawcrosshair 6;cg_crosshairsize 40;cg_railtrailtime 400;vstr zoom*" //lg
    bind "u" "weapon 1;sensitivity 3;cl_mouseaccel 0;cg_drawcrosshair 3;cg_crosshairsize 24;cg_railtrailtime 400;vstr zoom*" //g
    bind "t" "weapon 5;sensitivity 3;cl_mouseaccel 0;cg_drawcrosshair 3;cg_crosshairsize 24;cg_railtrailtime 400;vstr zoom*" //rl

    bind "h" "weapon 8;sensitivity 2.5;cl_mouseaccel 0;cg_drawcrosshair 3;cg_crosshairsize 24;cg_railtrailtime 400;vstr zoom*" //pg
    bind "j" "weapon 4;sensitivity 3;cl_mouseaccel 0;cg_drawcrosshair 3;cg_crosshairsize 24;cg_railtrailtime 400;vstr zoom*" //gl


    bind "b" "weapon 3;sensitivity 2.5;cl_mouseaccel 0;cg_drawcrosshair 3;cg_crosshairsize 24;cg_railtrailtime 400;vstr zoom*" //sg
    bind "x" "weapon 13;sensitivity 3;cl_mouseaccel 0;cg_drawcrosshair 6;cg_crosshairsize 40;cg_railtrailtime 400;vstr zoom*" //cg

    // zoom script
    set "spawn" "vstr zoom-;set zoomtog vstr zoomtog0;set zoomtoga vstr zoomtog1a;sensitivity 2.5;cg_drawcrosshair 6;cg_crosshairsize 40;cg_railtrailtime 400"
    set "zoom*" "vstr zoom-;set zoomtog vstr zoomtog0;set zoomtoga vstr zoomtog0a"

    set "zoom-" "cg_fov 90;set zoomin+ vstr zoomin++;set zoomintog vstr zoomintog1"
    set "zoom+" "cg_fov 60;sensitivity 2"
    set "zoom++" "cg_fov 40;sensitivity 1.5"

    set "zoomin+" "vstr zoomin++"
    set "zoomin++" "vstr zoom+;set zoomin+ vstr zoomin+++;set zoomintog vstr zoomintog2"
    set "zoomin+++" "vstr zoom++"

    set "zoomintog" "vstr zoomintog1"
    set "zoomintog1" "vstr zoom+;set zoomintog vstr zoomintog2;set zoomin+ vstr zoomin+++"
    set "zoomintog2" "vstr zoom-;set zoomintog vstr zoomintog1"

    set "zoomtog" "vstr zoomtog0"
    set "zoomtog0" "set zoomtog vstr zoomtog1"
    set "zoomtog1" "vstr zoomintog"

    set "zoomtoga" "vstr zoomtog0a"
    set "zoomtog0a" "set zoomtoga vstr zoomtog1a"
    set "zoomtog1a" "vstr zoomintog"
    Last edited by fat_ass; 12-05-2010 at 10:59 AM.

  2. #2
    Banned Lorfa has a spectacular aura about Lorfa has a spectacular aura about Lorfa's Avatar
    Join Date
    Aug 2010
    Location
    Kepler-22b
    Posts
    5,563
    While I think it is completely bananas, a lot of people actually want this.

    An event trigger for deaths would have to be implemented.

  3. #3
    Senior Member Salamatiqus is on a distinguished road Salamatiqus's Avatar
    Join Date
    Aug 2010
    Location
    Astana, Kazakhstan
    Posts
    1,538
    seta cg_actionOnDeath "we put here our vstr`s "

    But it can be abused by say binds like "hacker lucker etc"
    bind END "quit'

  4. #4
    Junior Member fat_ass is on a distinguished road
    Join Date
    Aug 2010
    Posts
    5
    Quote Originally Posted by Lorfa View Post
    While I think it is completely bananas, a lot of people actually want this.

    An event trigger for deaths would have to be implemented.
    This is a little more relevant to my other post, however, it would be great.

    Now here's what I was requesting in reference to this most.. I would like to be able to somehow reset the 'zoom toggle' state to zoom out.. manually while alive in game because currently I'm limited to pushing a key to toggle in and out.. and with my current zoom script setup this would be impossible without that function.

    The only other workaround would be if they created another set of zoom cvars that was just to zoom in and another to zoom out.

    Quote Originally Posted by Salamatiqus View Post
    seta cg_actionOnDeath "we put here our vstr`s "

    But it can be abused by say binds like "hacker lucker etc"
    I'm sure they could code it to ignore 'say' commands, even within vstrs.. however, I think for the most part.. most annoying people..casual gamers wont even know about the command.
    Last edited by fat_ass; 12-05-2010 at 10:57 AM.

  5. #5
    Senior Member crucci is on a distinguished road
    Join Date
    Aug 2010
    Posts
    2,870
    fat_ass why don't you just use a single, separate key for zooming with every weapon, and simply specify a zoomfov for every weapon? The way you're using zoom sounds overly complicated. Or are you trying to achieve something different from simply having different zoom levels? You can set +zoom as a toggle:

    bind ALT "vstr zoomon"
    set zoomon "+zoom; bind ALT vstr zoomoff"
    set zoomoff "-zoom; bind ALT vstr zoomon"

  6. #6
    Junior Member fat_ass is on a distinguished road
    Join Date
    Aug 2010
    Posts
    5
    Quote Originally Posted by crucci View Post
    fat_ass why don't you just use a single, separate key for zooming with every weapon, and simply specify a zoomfov for every weapon? The way you're using zoom sounds overly complicated. Or are you trying to achieve something different from simply having different zoom levels? You can set +zoom as a toggle:

    bind ALT "vstr zoomon"
    set zoomon "+zoom; bind ALT vstr zoomoff"
    set zoomoff "-zoom; bind ALT vstr zoomon"
    crazy, i don't know if there's a reason i couldn't use this before or if commands changed or what. but i just made sure my cg_zoomscaling was set to 0 and my cg_zoomtoggle was set to 0 and -zoom and +zoom worked just as they should. hope there wasn't another reason why i couldn't do this a long while ago, maybe something had just crossed my mind and never revisited.. no idea ..anyways thnx

    my script works perfect now how it should have. i like to zoom in with the same key i use to select the rail, so that's why i scripted this, so i wont need a diff. key.

  7. #7
    Junior Member hellrazor_ is on a distinguished road
    Join Date
    Aug 2010
    Posts
    8
    Factor for changing cg_fov 110 to cg_fov 55 for sensitivity transition 2.816901408.
    I think there is a formula but havent't seen it in ages. Maybe the factor works generell, at least for my cg_fov's it works.

  8. #8
    Senior Member DEICIDE is on a distinguished road
    Join Date
    Aug 2010
    Posts
    113
    You can simply bind a button to change zoom and sens. There's also cg_zoomSens or smth.

    Ye know

    bind CTRL Z1
    seta Z1 "set cg_fov 70;set sensitivity 7;bind CTRL Z2"
    seta Z2 "set cg_fov 110;seta sensitivity 5;bind CTRL Z1"

    Or allias instead of seta.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts