Advertisement
Guest User

Untitled

a guest
May 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. // -- Begin zoom.cfg
  2.  
  3. // Script to automate zoom-unzoom-fire trick. Bind a key to zoomscope_toggle and replace +attack/+attack2 binds with +zoomscope_attack/+zoomscope_attack2.
  4.  
  5. alias +zoomscope_attack +attack
  6. alias -zoomscope_attack -attack
  7.  
  8. alias +zoomscope_attack_zoom "-zoom;+attack"
  9. alias -zoomscope_attack_zoom "-attack;+zoom"
  10.  
  11.  
  12. alias +zoomscope_attack2 +attack2
  13. alias -zoomscope_attack2 -attack2
  14.  
  15. alias +zoomscope_attack2_zoom "-zoom;+attack2"
  16. alias -zoomscope_attack2_zoom "-attack2;+zoom"
  17.  
  18.  
  19. alias zoomscope_toggle zoomscope_on
  20.  
  21. alias zoomscope_on "alias +zoomscope_attack +zoomscope_attack_zoom;alias -zoomscope_attack -zoomscope_attack_zoom;alias +zoomscope_attack2 +zoomscope_attack2_zoom;alias -zoomscope_attack2 -zoomscope_attack2_zoom;+zoom;alias zoomscope_toggle zoomscope_off"
  22. alias zoomscope_off "alias +zoomscope_attack +attack;alias -zoomscope_attack -attack;alias +zoomscope_attack2 +attack2;alias -zoomscope_attack2 -attack2;-zoom;alias zoomscope_toggle zoomscope_on"
  23.  
  24. // -- End zoom.cfg
  25.  
  26. // toggle_duck doesn't work.
  27. alias toggleduck toggleduck_on
  28. alias toggleduck_on "+duck;alias toggleduck toggleduck_off;
  29. alias toggleduck_off "-duck;alias toggleduck toggleduck_on;
  30.  
  31.  
  32. joystick 1 // Enables the joystick.
  33. joy_name "Xbox360 controller"
  34.  
  35.  
  36. bind JOY1 +jump // A
  37. bind JOY2 +reload // B
  38. bind JOY3 +use // X
  39. bind JOY4 "use weapon_crowbar;use weapon_pistol;use weapon_smg1;use weapon_ar2;use weapon_357;use weapon_rpg;use weapon_shotgun;use weapon_crossbow" // Y
  40.  
  41. bind AUX5 +speed // Top left button
  42. bind AUX6 phys_swap // Top right button
  43.  
  44. bind AUX7 "impulse 100" // Back - Flashlight
  45. bind AUX8 slot5 // Start
  46.  
  47. bind AUX9 toggleduck // Left stick press
  48. bind AUX10 zoomscope_toggle // Right stick press
  49.  
  50. bind AUX29 slot1 // DPad up
  51. bind AUX30 slot2 // DPad right
  52. bind AUX31 slot3 // DPad down
  53. bind AUX32 slot4 // DPad left
  54.  
  55.  
  56. joy_advanced 1 // Enables joy_adv*
  57.  
  58. // Sticks are handled lower down.
  59. unbind "X AXIS POS" // Left stick right
  60. unbind "X AXIS NEG" // Left stick left
  61. unbind "Y AXIS POS" // Left stick down
  62. unbind "Y AXIS NEG" // Left stick up
  63.  
  64. unbind "U AXIS POS" // Right stick right
  65. unbind "U AXIS NEG" // Right stick left
  66. unbind "R AXIS POS" // Right stick down
  67. unbind "R AXIS NEG" // Right stick up
  68.  
  69. bind "Z AXIS POS" +zoomscope_attack2 // Top left trigger
  70. bind "Z AXIS NEG" +zoomscope_attack // Top right trigger
  71.  
  72.  
  73. // 0 Axis not used
  74. // 1 Axis used for movement forward and back (forward)
  75. // 2 Axis used for looking up and down(pitch) -- DOES NOT WORK
  76. // 3 Axis used for strafing(side)
  77. // 4 Axis used for turning(yaw)
  78.  
  79. joy_advaxisx 3 // Left stick horizontal
  80. joy_advaxisy 1 // Left stick vertical
  81. joy_advaxisz 0 // Triggers
  82. joy_advaxisr 2 // Right stick vertical
  83. joy_advaxisu 4 // Right stick horizontal
  84. joy_advaxisv 0 // N/A
  85.  
  86. +jlook // Enables axis mode 2. (why is this needed?)
  87.  
  88.  
  89. hud_fastswitch 2 // Switch to weapons as soon as slot button is pressed.
  90.  
  91. joy_forwardthreshold 0.15
  92. joy_sidethreshold 0.15
  93.  
  94. joy_forwardsensitivity -1
  95. joy_sidesensitivity 1
  96.  
  97. joy_pitchthreshold 0.15
  98. joy_yawthreshold 0.15
  99.  
  100. joy_pitchsensitivity 1
  101. joy_yawsensitivity -1.25
  102.  
  103. joy_response_move 1 // 'Movement' stick response mode: 0=Linear, 1=quadratic, 2=cubic, 3=quadratic extreme, 4=power function(i.e., pow(x,1/sensitivity)) // in ep2's .cfg it's 5. new or undocumented?
  104. joy_response_look 1 // DISABLED - 'Look' stick response mode: 0=Linear, 1=quadratic, 2=cubic, 3=quadratic extreme, 4=custom
  105. joy_lowend 0.65 // Specifies the amount of the controller's physical range you wish to section off as the "inner zone".
  106. joy_lowmap 0.15 // Specifies the amount of the controller's true range is mapped to the "inner zone".
  107. joy_accelscale 1.4
  108.  
  109. joy_autoaimdampenrange 0.85 // The stick range where autoaim dampening is applied. 0 = off
  110. joy_autoaimdampen 0.5 // How much to scale user stick input when the gun is pointing at a valid target.
  111. joy_diagonalpov 0 // POV manipulator operates on diagonal axes, too.
  112. joy_display_input 0 // Write joystick control information to the console log.
  113. joy_wingmanwarrior_turnhack 0 // Fixes a spin problem with the Wingman Warrior joystick.
  114. joy_autosprint 0 // Automatically sprint when moving with an analog joystick
  115. joy_wingmanwarrior_centerhack 0 // Fixes a centering problem with the Wingman Warrior joystick.
  116. joy_axisbutton_threshold 0.3 // Analog axis range before a button press is registered.
  117.  
  118.  
  119. joyadvancedupdate // Apply changes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement