mouse wheel FOV zoom lock with quick release

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

mouse wheel FOV zoom lock with quick release

Postby AceOfThumbs » Wed Sep 05, 2007 11:38 pm

I posted a 3 level zoom config script yesterday, but it needed some tweaking. Well, I started tweaking and came up with a new idea that is much better so I thought it deserved a new post.

HOW IT WORKS
Use the mouse wheel to zoom in and out with 3 presets so you can zoom a little for close quarters of a lot for the wide open spaces. Shift acts as a quick release so you can Press and release shift to unlock the zoom in case you are zoomed all the way in and someone starts attacking nearby.

CUSTOMIZE
At the top and bottom, you'll see USER SETTINGS. These are areas that you can easily set even if you are unfamiliar with the console.

WEAPON SELECTION
Since this script uses the mouse wheel, you will need to use mouse buttons or or the keyboard to switch weapons. Many on the forum recommend using the keyboard for weapons because it is faster. I suggest you give it a try.

Another good tip is to bind a mouse key or keyboard key to a bestweapon console command. You can specify which weapons you like best and with one click Nexuiz will switch to the best weapon available.

OPTION SCREEN
This script does not use the FOV and sensitivity settings you choose in the Options screen. This is because those settings are being modified on the fly and if you are killed while you are zoomed in, the zoomed settings become the new default. It's actually easier to set all of the settings in the script instead of some here and some there anyway.

THE SCRIPT
Copy and paste this into your autoexec.cfg file.
// AceOfThumbs 3 level mouse wheel FOV zoom lock with quick release

// USER SETTINGS-zoom levels
// adjust zoom amount and mouse sensitivity levels to suit yourself, zoom0 and sens0 are for no zoom
set aot_zoom0 110
set aotzoom1 70
set aotzoom2 50
set aotzoom3 20
set aot_sens0 3
set aotsens1 2
set aotsens2 1.5
set aotsens3 1
// END OF USER SETTINGS-zoom levels

// these actually do the zooming
alias "+aot_zoom_now" "fov $aot_cur_zoom ; sensitivity $aot_cur_sens"
alias "-aot_zoom_now" "fov $aot_zoom0 ; sensitivity $aot_sens0"

// these zoom level commands set up the sequence for zooming in and out
alias "aot_zoom_level3" "set aot_cur_zoom $aotzoom3 ; set aot_cur_sens $aotsens3 ; +aot_zoom_now ; echo zoom3 ; alias aot_zoom_in aot_zoom_level3 ; alias aot_zoom_out aot_zoom_level2"
alias "aot_zoom_level2" "set aot_cur_zoom $aotzoom2 ; set aot_cur_sens $aotsens2 ; +aot_zoom_now ; echo zoom2 ; alias aot_zoom_in aot_zoom_level3 ; alias aot_zoom_out aot_zoom_level1"
alias "aot_zoom_level1" "set aot_cur_zoom $aotzoom1 ; set aot_cur_sens $aotsens1 ; +aot_zoom_now ; echo zoom1 ; alias aot_zoom_in aot_zoom_level2 ; alias aot_zoom_out aot_zoom_level0"
alias "aot_zoom_level0" "set aot_cur_zoom $aot_zoom0 ; set aot_cur_sens $aot_sens0 ; +aot_zoom_now ; echo zoom off ; alias aot_zoom_in aot_zoom_level1 ; alias aot_zoom_out aot_zoom_level0"

// start with no zoom
aot_zoom_level0

// USER SETTINGS-key bindings
// you can change the binding here, but it is so cool having it on the wheel that you should try it first
bind "mwheelup" "aot_zoom_in"
bind "mwheeldown" "aot_zoom_out"

// this is the quick release, shift is good for me, but set to whatever works for you
bind "shift" "aot_zoom_level0"

// END USER SETTINGS-key bindings


I hope you enjoy this. I find it to be very useful. I'm happy to help if you like the idea, but would like some adjustment.
AceOfThumbs
Alien
 
Posts: 158
Joined: Tue Sep 04, 2007 11:12 pm

Postby AceOfThumbs » Tue Sep 11, 2007 10:35 pm

I've updated this script a bit. If anyone is interested, let me know.
AceOfThumbs
Alien
 
Posts: 158
Joined: Tue Sep 04, 2007 11:12 pm

Postby nexbender » Wed Sep 19, 2007 8:18 pm

AceOfThumbs wrote:I've updated this script a bit. If anyone is interested, let me know.


I'll never use it, Ace - I really am all thumbs & have to keep it simple! But thanks for reminding me that when playing against you on sniper-friendly maps like Facing Worlds, I need to kill you early & often! :D
I was converted to the darkside and now mostly play Urban Terror with a clan as |ALPHA|DrPepper. Also branching out into CoD4.
nexbender
Alien
 
Posts: 138
Joined: Tue Jun 26, 2007 12:35 am
Location: Kal E Forn Ya

Postby AceOfThumbs » Thu Sep 20, 2007 1:06 am

HA HA HA! Well, I'm not strictly a sniper. I prefer to run around and practice my jumping skills. When I do snipe though, it works out pretty well.
AceOfThumbs
Alien
 
Posts: 158
Joined: Tue Sep 04, 2007 11:12 pm

Postby Mizu Kitsune » Thu Jun 04, 2009 5:03 am

works great for me, i'm usually the sniper, heavy, or scout/runner. you said you updated it?
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby [-z-] » Thu Jun 04, 2009 5:06 am

AoT's been on vacation / MIA for sometime now. This thread is from 2007...
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby Lee_Stricklin » Mon Sep 28, 2009 11:56 am

Would this be considered a "legal" hack? Or would using this be considered cheating?
I have left this website with the rest of the GPL Nexuiz community. You can find us at Xonotic.org
Lee_Stricklin
Alien trapper
 
Posts: 404
Joined: Sat Jun 21, 2008 8:42 pm
Location: Midwest

Postby Mizu Kitsune » Mon Sep 28, 2009 2:23 pm

no, it doesnt change anything except zoom fov. kinda like tribes did with the z button.
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia


Return to Nexuiz - Gameplay

Who is online

Users browsing this forum: No registered users and 1 guest