+ Reply to Thread
Results 1 to 9 of 9

Thread: lower the sensitivity of a gun when i'm shooting

  1. #1
    Junior Member _NoRoN_ is on a distinguished road
    Join Date
    Dec 2011
    Location
    Portugal
    Posts
    1

    lower the sensitivity of a gun when i'm shooting

    Mainly i was looking to do this for the LG, and every this that i find on the INTERNET is confusing as hell

    i know /bind x "weapon y; sensitivity z" but this will make the sensitivity all the time "z" and i want "z" when i'm shooting and not just walking around

    If anyone here can help that would be great.


    Thanks.

  2. #2
    Senior Member Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa's Avatar
    Join Date
    Aug 2010
    Location
    Kepler-22b
    Posts
    8,761
    Quote Originally Posted by _NoRoN_ View Post
    Mainly i was looking to do this for the LG, and every this that i find on the INTERNET is confusing as hell
    It's a bit complicated to have it only when shooting because an event trigger has to be created. Still I think it is fairly straightforward.

    Below is as simple as I can make it. Replace sens 2 with the lower sens you want, and sens 4 with the normal sens, and [key] with whichever key you use to select that weapon.

    alias +lgFire "sensitivity 2 ; +attack"
    alias -lgFire "sensitivity 4 ; -attack"

    set norm "sensitivity 4 ; bind mouse1 +attack"
    set zorm "sensitivity 4 ; bind mouse1 +lgFire"

    set weapon_1 "-attack ; weapon 1 ; vstr norm" // GT
    set weapon_2 "-attack ; weapon 2 ; vstr norm" // MG
    set weapon_3 "-attack ; weapon 3 ; vstr norm" // SG
    set weapon_4 "-attack ; weapon 4 ; vstr norm" // GL
    set weapon_5 "-attack ; weapon 5 ; vstr norm" // RL
    set weapon_6 "-attack ; weapon 6 ; vstr zorm" // LG
    set weapon_7 "-attack ; weapon 7 ; vstr norm" // RG
    set weapon_8 "-attack ; weapon 8 ; vstr norm" // PG

    bind [key] "vstr weapon_1"
    bind [key] "vstr weapon_2"
    bind [key] "vstr weapon_3"
    bind [key] "vstr weapon_4"
    bind [key] "vstr weapon_5"
    bind [key] "vstr weapon_6"
    bind [key] "vstr weapon_7"
    bind [key] "vstr weapon_8"

    Note: I recommend removing 'unaliasall' from any and all configs.

  3. #3
    Senior Member Lam has a spectacular aura about Lam has a spectacular aura about Lam has a spectacular aura about Lam's Avatar
    Join Date
    Aug 2010
    Posts
    3,763
    With above script, your sensitivity will be screwed up with other weapons after 1. you die with LG in hand, 2. you auto-switch on empty weapon, 3. you auto-switch on pickup, 4. you change weapon with mouse wheel.

    Also, trying to shaft-rail etc. in PQL won't work (weapon binds make you stop firing).


    Solution to all of those problems is using cg_weaponConfig variables that are available to all premium subscribers.

  4. #4
    Senior Member Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa's Avatar
    Join Date
    Aug 2010
    Location
    Kepler-22b
    Posts
    8,761
    Quote Originally Posted by Lam View Post
    With above script, your sensitivity will be screwed up with other weapons after 1. you die with LG in hand,
    Rectified by simply pressing a weapon key.

    2. you auto-switch on empty weapon,
    Yes, but as we know, autoswitch is bad. It's a rarer occurrence than the above scenario.

    3. you auto-switch on pickup,
    Autoswitch on pickup is _very_ bad.

    4. you change weapon with mouse wheel.
    Yes but the OP indicated that he doesn't do this with the 'bind x' comment.

    Also, trying to shaft-rail etc.
    Why? Pressing the rail key resets the sensitivity back to normal.

    Solution to all of those problems is using cg_weaponConfig variables that are available to all premium subscribers.
    Except the settings don't apply until the weapon is done dropping.. and yeah, only available on premium.

    in PQL won't work (weapon binds make you stop firing).
    Actually both QL and PQL ruleset had the same problem with that script, so I made a new one that fixes it. Note in this one replace mouse1 with your attack key, and again sens 1 with the lower sens you want, sens 4 with the normal sens you want.

    bind mouse1 "+lgFire"

    alias +lgFire "lgFire"
    alias -lgFire "sensitivity 4 ; -attack"

    set norm "sensitivity 4 ; vstr regg"
    set zorm "sensitivity 4 ; vstr legg"

    set regg "alias +lgFire rgFire"
    set legg "alias +lgFire lgFire"

    alias lgFire "sensitivity 1 ; +attack"

    alias rgFire "sensitivity 4 ; +attack"

    set weapon_1 "weapon 1 ; vstr norm" // GT
    set weapon_2 "weapon 2 ; vstr norm" // MG
    set weapon_3 "weapon 3 ; vstr norm" // SG
    set weapon_4 "weapon 4 ; vstr norm" // GL
    set weapon_5 "weapon 5 ; vstr norm" // RL
    set weapon_6 "weapon 6 ; vstr zorm" // LG
    set weapon_7 "weapon 7 ; vstr norm" // RG
    set weapon_8 "weapon 8 ; vstr norm" // PG

    bind [key] "vstr weapon_1"
    bind [key] "vstr weapon_2"
    bind [key] "vstr weapon_3"
    bind [key] "vstr weapon_4"
    bind [key] "vstr weapon_5"
    bind [key] "vstr weapon_6"
    bind [key] "vstr weapon_7"
    bind [key] "vstr weapon_8"

  5. #5
    Senior Member Lam has a spectacular aura about Lam has a spectacular aura about Lam has a spectacular aura about Lam's Avatar
    Join Date
    Aug 2010
    Posts
    3,763
    Quote Originally Posted by Lorfa View Post
    Why? Pressing the rail key resets the sensitivity back to normal.
    It also does "-attack" while your intention is to keep shooting and fire a rail instead of next LG bolt. That's a "shaft-rail" I was talking about. And you seem to understand it, working around this in newer version.


    Quote Originally Posted by Lorfa View Post
    Except the settings don't apply until the weapon is done dropping
    Except it's not a problem because:
    - in PQL, drop time is a millisecond,
    - in QL, do you really keep tracking with fire pressed after LG ammo is out, while the game switches to whatever it thinks is appropriate?

  6. #6
    Senior Member Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa's Avatar
    Join Date
    Aug 2010
    Location
    Kepler-22b
    Posts
    8,761
    Quote Originally Posted by Lam View Post
    It also does "-attack" while your intention is to keep shooting and fire a rail instead of next LG bolt. That's a "shaft-rail" I was talking about. And you seem to understand it, working around this in newer version.
    Oh the -attack thing for shaft to rail combos most likely in PQL.. yar, fixed.

    Except it's not a problem because:
    - in PQL, drop time is a millisecond,
    10 milliseconds :-D

    - in QL, do you really keep tracking with fire pressed after LG ammo is out, while the game switches to whatever it thinks is appropriate?
    Not sure, I usually change weaps before my ammo runs out afaik.

    Sometimes I hold the button down while changing weapons.

    Either way I'm not a fan of weaponconfig due to the settings being applied after weaponDropTime in QL ruleset, it feels lagged and uncomfortable.

    I also shy away from suggesting weaponconfig scripts because standard users cannot use them.

    In some cases a weaponconfig event trigger is the only way to accomplish a particular task in which case I will mention that it is required.

  7. #7
    Member corvu is on a distinguished road
    Join Date
    Jun 2011
    Posts
    61
    I have used the old zfire script (made by yakumo?) to change fov and sens forever and never had any problems with it. Right now i only use it for (1) changing fov when fireing with lg, and (2) changeing railtrailtime when fireing with rg. Try it. You can find it with my cfg here: http://qlhud.net/hud/H8qIDGyI or here: http://www.esreality.com/download.php?file_id=94932

  8. #8
    Senior Member Flanger is on a distinguished road Flanger's Avatar
    Join Date
    Aug 2010
    Posts
    284
    I use such modification for my LG. Here is my working config, nothing is screwed:
    Code:
    // ALIAS FOR GENERIC ATTACK
    
    alias +at "+attack"
    alias -at "-attack"
    
    // ALIAS FOR SHAFT SENSITIVITY
    
    alias +lg "+attack;sensitivity 1.4;cl_mouseAccel 0"
    alias -lg "-attack;sensitivity 2.7;cl_mouseAccel 0.03"
    
    bind 1 "weapon 1;sensitivity 2.7;bind mouse1 +at;cl_mouseAccel 0.03;cg_zoomfov 80"
    bind 2 "weapon 2;sensitivity 2.7;bind mouse1 +at;cl_mouseAccel 0.03;cg_zoomfov 80"
    bind 3 "weapon 3;sensitivity 2.7;bind mouse1 +at;cl_mouseAccel 0.03;cg_zoomfov 80"
    bind 4 "weapon 4;sensitivity 2.7;bind mouse1 +at;cl_mouseAccel 0.03;cg_zoomfov 80"
    bind q "weapon 5;sensitivity 2.7;bind mouse1 +at;cl_mouseAccel 0.03;cg_zoomfov 80"
    bind f "weapon 6;sensitivity 2.7;bind mouse1 +lg;cl_mouseAccel 0.03;cg_zoomfov 80"  <-- bound to sensitivity alias
    bind e "weapon 7;sensitivity 2.7;bind mouse1 +rg;cl_mouseAccel 0.03;cg_zoomfov 55"
    bind c "weapon 8;sensitivity 2.7;bind mouse1 +at;cl_mouseAccel 0.03;cg_zoomfov 80"

  9. #9
    Senior Member Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa is a jewel in the rough Lorfa's Avatar
    Join Date
    Aug 2010
    Location
    Kepler-22b
    Posts
    8,761
    I tested flanger's and it also works. Corvu's looked rather complicated and I didn't test it but its comments seem to be aware of the problems so it probably works too.

    What's neat about Flanger's is that in my first version I had the attack key rebound to +attack, and it wouldn't issue a -attack upon releasing the key. However if you make what would normally be a pointless alias of that just does +attack and -attack (like +at) then it actually will issue the -attack. A peculiar difference between the game's built-in aliases and user made aliases.

    So to summarize:

    Lorfa:

    Code:
    bind mouse1 "+lgFire"
    alias +lgFire "lgFire"
    alias -lgFire "sensitivity 5 ; -attack"
    
    set norm "sensitivity 5 ; vstr regg"
    set zorm "sensitivity 5 ; vstr legg"
    
    set regg "alias +lgFire rgFire"
    set legg "alias +lgFire lgFire"
    
    alias lgFire "sensitivity 1 ; +attack"
    alias rgFire "sensitivity 5 ; +attack"
    
    set weapon_1 "weapon 1 ; vstr norm" // GT
    set weapon_2 "weapon 2 ; vstr norm" // MG
    set weapon_3 "weapon 3 ; vstr norm" // SG
    set weapon_4 "weapon 4 ; vstr norm" // GL
    set weapon_5 "weapon 5 ; vstr norm" // RL
    set weapon_6 "weapon 6 ; vstr zorm" // LG
    set weapon_7 "weapon 7 ; vstr norm" // RG
    set weapon_8 "weapon 8 ; vstr norm" // PG
    
    bind [key] "vstr weapon_1"
    bind [key] "vstr weapon_2"
    bind [key] "vstr weapon_3"
    bind [key] "vstr weapon_4"
    bind [key] "vstr weapon_5"
    bind [key] "vstr weapon_6"
    bind [key] "vstr weapon_7"
    bind [key] "vstr weapon_8"
    Flanger:

    Code:
    // ALIAS FOR GENERIC ATTACK
    
    bind mouse1 "+at"
    
    alias +at "+attack"
    alias -at "-attack"
    
    // ALIAS FOR SHAFT SENSITIVITY
    
    alias +lg "+attack ; sensitivity 1"
    alias -lg "-attack ; sensitivity 5"
    
    bind [key] "weapon 1 ; sensitivity 5 ; bind mouse1 +at"
    bind [key] "weapon 2 ; sensitivity 5 ; bind mouse1 +at"
    bind [key] "weapon 3 ; sensitivity 5 ; bind mouse1 +at"
    bind [key] "weapon 4 ; sensitivity 5 ; bind mouse1 +at"
    bind [key] "weapon 5 ; sensitivity 5 ; bind mouse1 +at"
    bind [key] "weapon 6 ; sensitivity 5 ; bind mouse1 +lg"
    bind [key] "weapon 7 ; sensitivity 5 ; bind mouse1 +at"
    bind [key] "weapon 8 ; sensitivity 5 ; bind mouse1 +at"
    Corvu:

    Code:
    //-----<((WEAPONS>
    
    seta _GT "weapon 1;_zFireOff; _xfireoff"				
    seta _MG "weapon 2;_zFireOff; _xfireoff"
    seta _SG "weapon 3;_zFireOff; _xfireoff" 
    seta _GL "weapon 4;_zFireOff; _xfireoff"
    seta _RL "weapon 5;_zFireOff; _xfireoff"
    seta _LG "weapon 6;_zFireOn; _xfireoff"		// runs special settings for lg only, 
    seta _RG "weapon 7;_zFireOff; _xfireon"
    seta _PG "weapon 8;_zFireOff; _xfireoff"
    
    alias loadLgSettings "vstr _ch5"   //put all lg changes here, crosshair, sens, fov etc
    alias loadRgSettings "vstr _ch2"
    alias loadDefWeapSettings "vstr _chDefaultStyle" //put default weapon config here chrosshair settings, and sens/fov etc etc if you want
    
    alias -xfire "-attack;loadDefWeapSettings"
    alias +xfire "+attack"
    
    alias -zfire "-attack;loadDefWeapSettings"  //changes back to all default weaponsettings 
    alias +zfire "+attack" //setup +zfire or you wouldn't be able to fire or change who you spectate until you change a weapon.
    
    alias xfirept2 "+attack; loadRgSettings"
    alias _xfireOn "alias +xfire xfirept2"
    alias zFirePt2 "+attack;loadLgSettings" //2nd stage alias as otherwise you can't script more than one thing to change in an alias, loads al lg settings.
    alias _zFireOn "alias +zfire zFirePt2" 
    
    alias _zFireOff "alias +zfire +attack;loadDefWeapSettings" //do NOT call -zfire as it uses -attack it would stop next weapon firing, if fire as held during a change
    alias _xfireOff "alias +xfire +attack;loaddefweapsettings" // just revert reset +zfire to +attack only and as this is called on weapon change, loadDefWeapSettings too.
    
    // ------ +/- zfire changes -----------------------
    
    seta _ch1 "cg_railtrailtime 1200; cg_fov 103" // NORMAL A.K.A loadDefWeapSettings A.K.A _chDefaultStyle
    seta _ch2 "cg_railtrailtime 20" // RG SPECIFIC A.K.A _xfireon
    seta _ch3 "" 
    seta _ch4 ""  
    seta _ch5 "cg_fov 90" // LG SPECIFIC A.K.A -zfireon
    
    seta _chDefaultStyle "vstr _ch1" 
    
    //binds
    
    bind MOUSE1 "+zfire; +xfire"
    
    bind [key] "vstr _GT"
    bind [key] "vstr _MG"
    bind [key] "vstr _SG"
    bind [key] "vstr _GL"
    bind [key] "vstr _RL"
    bind [key] "Vstr _LG"
    bind [key] "vstr _RG"
    bind [key] "Vstr _PG"

+ 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