From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Mon, 28 Feb 2011 23:29:31 +0000 (+0200)
Subject: Add velocity zoom to menu and enable it by default
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab601564bf41688e43f16a0339a9cc671327faa7;p=voretournament%2Fvoretournament.git

Add velocity zoom to menu and enable it by default
---

diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg
index 0d67f416..24b89de6 100644
--- a/data/defaultVoretournament.cfg
+++ b/data/defaultVoretournament.cfg
@@ -134,7 +134,7 @@ seta cl_reticle_stretch 0 "whether to stretch reticles so they fit the screen (b
 seta cl_reticle_item_weapon 1 "draw aiming reticle for weapon zoom, 0 disables and values between 0 and 1 change alpha"
 seta cl_reticle_item_normal 1 "draw reticle when zooming without a weapon, 0 disables and values between 0 and 1 change alpha"
 fov 90
-seta cl_velocityzoom 0	"velocity based zooming of fov, negative values zoom out"
+seta cl_velocityzoom -0.2	"velocity based zooming of fov, negative values zoom out"
 seta cl_velocityzoomtime 0.3	"time value for averaging speed values"
 seta cl_zoomfactor 5	"how much +zoom will zoom (1-16)"
 seta cl_zoomspeed 3.5	"how fast it will zoom (0.5-16), negative values mean instant zoom"
diff --git a/data/qcsrc/menu/voret/dialog_multiplayer_playersetup.c b/data/qcsrc/menu/voret/dialog_multiplayer_playersetup.c
index 1f04be53..d59dc688 100644
--- a/data/qcsrc/menu/voret/dialog_multiplayer_playersetup.c
+++ b/data/qcsrc/menu/voret/dialog_multiplayer_playersetup.c
@@ -102,6 +102,9 @@ void fillVoretPlayerSettingsTab(entity me)
 		sl = makeVoretSlider(0.5, 8, 0.5, "cl_rollangle");
 		me.TD(me, 1, 1, e = makeVoretSliderCheckBox(0, 1, sl, "View rolling:"));
 		me.TD(me, 1, 2, sl);
+	me.TR(me);
+		me.TD(me, 1, 1, e = makeVoretTextLabel(0, "Velocity zoom:"));
+		me.TD(me, 1, 2, e = makeVoretSlider(-2, 2, 0.1, "cl_velocityzoom"));
 	me.TR(me);
 	me.TR(me);
 		me.TD(me, 1, 1, e = makeVoretTextLabel(0, "Zoom Factor:"));