//
// CHARACTER CONTROLS
//

//Movement

bind    w	+forward
bind    a	+moveleft
bind    s	+back
bind    d	+moveright
bind    z	+leanleft
bind    x	+leanright

//Stance

bind	SHIFT	+moveup
bind	SPACE	lowerstance

//Interaction

bind	MOUSE1	+attack
bind	MOUSE2	+melee
bind	MOUSE3	+speed
bind	ALT	weapalt
bind	f	+activate
bind	r	+reload
bind	q	"weaponslot primary"
bind	e	"weaponslot primaryb"

//
// DEVELOPER CONTROLS
//

bind	n		noclip
bind	m		cg_noclip
bind	.		god
bind	/		"give all"
bind	\		scriptdebugger
bind	]		devgui
bind	f1		"toggle r_showtris 1 2 0"
bind	f2		"toggle r_showportals"
bind	f3		"toggle r_colormap white unchanged"
bind	f4		"toggle g_entinfo 4 2 0"
bind	f5		"toggle ai_shownodes"
bind	f12		screenshot
bind	HOME	map_restart
bind	PGUP	"replay_forward 10"
bind	PGDN	"replay_back 10"
bind	END		"replay_live"
bind	PAUSE	"pause"
bind	KP_PLUS "savegame quicksave"
bind	KP_MINUS "loadgame quicksave"

// Zoom

bind CTRL "vstr changezoom"

set zi "cg_fov 20;set changezoom vstr zo"
set zo "cg_fov 80;set changezoom vstr zi"
vstr zo

// Time scaler

bind DOWNARROW "timescale 1;vstr t0"
bind LEFTARROW "vstr slower"
bind MWHEELDOWN "vstr slower"
bind RIGHTARROW "vstr faster"
bind MWHEELUP "vstr faster"

set tn7 "timescale .125;set faster vstr tn6"
set tn6 "timescale .25;set slower vstr tn7;set faster vstr tn5"
set tn5 "timescale .375;set slower vstr tn6;set faster vstr tn4"
set tn4 "timescale .5;set slower vstr tn5;set faster vstr tn3"
set tn3 "timescale .625;set slower vstr tn4;set faster vstr tn2"
set tn2 "timescale .75;set slower vstr tn3;set faster vstr tn1"
set tn1 "timescale .875;set slower vstr tn2;set faster vstr t0"
set t0 "timescale 1;set slower vstr tn1;set faster vstr t1"
set t1 "timescale 2;set slower vstr t0;set faster vstr t2"
set t2 "timescale 3;set slower vstr t1;set faster vstr t3"
set t3 "timescale 4;set slower vstr t2;set faster vstr t4"
set t4 "timescale 5;set slower vstr t3;set faster vstr t5"
set t5 "timescale 6;set slower vstr t4;set faster vstr t6"
set t6 "timescale 7;set slower vstr t5;set faster vstr t7"
set t7 "timescale 8;set slower vstr t6"
vstr t0

// Model viewer

bind kp_5 "toggle cg_thirdperson;vstr a0;vstr r40"
bind kp_uparrow "vstr closer"
bind kp_downarrow "vstr farther"
bind kp_leftarrow "vstr left"
bind kp_rightarrow "vstr right"

set a0 "cg_thirdpersonangle 0;set left vstr a10;set right vstr a350"
set a10 "cg_thirdpersonangle 10;set left vstr a20;set right vstr a0"
set a20 "cg_thirdpersonangle 20;set left vstr a30;set right vstr a10"
set a30 "cg_thirdpersonangle 30;set left vstr a40;set right vstr a20"
set a40 "cg_thirdpersonangle 40;set left vstr a50;set right vstr a30"
set a50 "cg_thirdpersonangle 50;set left vstr a60;set right vstr a40"
set a60 "cg_thirdpersonangle 60;set left vstr a70;set right vstr a50"
set a70 "cg_thirdpersonangle 70;set left vstr a80;set right vstr a60"
set a80 "cg_thirdpersonangle 80;set left vstr a90;set right vstr a70"
set a90 "cg_thirdpersonangle 90;set left vstr a100;set right vstr a80"
set a100 "cg_thirdpersonangle 100;set left vstr a110;set right vstr a90"
set a110 "cg_thirdpersonangle 110;set left vstr a120;set right vstr a100"
set a120 "cg_thirdpersonangle 120;set left vstr a130;set right vstr a110"
set a130 "cg_thirdpersonangle 130;set left vstr a140;set right vstr a120"
set a140 "cg_thirdpersonangle 140;set left vstr a150;set right vstr a130"
set a150 "cg_thirdpersonangle 150;set left vstr a160;set right vstr a140"
set a160 "cg_thirdpersonangle 160;set left vstr a170;set right vstr a150"
set a170 "cg_thirdpersonangle 170;set left vstr a180;set right vstr a160"
set a180 "cg_thirdpersonangle 180;set left vstr a190;set right vstr a170"
set a190 "cg_thirdpersonangle 190;set left vstr a200;set right vstr a180"
set a200 "cg_thirdpersonangle 200;set left vstr a210;set right vstr a190"
set a210 "cg_thirdpersonangle 210;set left vstr a220;set right vstr a200"
set a220 "cg_thirdpersonangle 220;set left vstr a230;set right vstr a210"
set a230 "cg_thirdpersonangle 230;set left vstr a240;set right vstr a220"
set a240 "cg_thirdpersonangle 240;set left vstr a250;set right vstr a230"
set a250 "cg_thirdpersonangle 250;set left vstr a260;set right vstr a240"
set a260 "cg_thirdpersonangle 260;set left vstr a270;set right vstr a250"
set a270 "cg_thirdpersonangle 270;set left vstr a280;set right vstr a260"
set a280 "cg_thirdpersonangle 280;set left vstr a290;set right vstr a270"
set a290 "cg_thirdpersonangle 290;set left vstr a300;set right vstr a280"
set a300 "cg_thirdpersonangle 300;set left vstr a310;set right vstr a290"
set a310 "cg_thirdpersonangle 310;set left vstr a320;set right vstr a300"
set a320 "cg_thirdpersonangle 320;set left vstr a330;set right vstr a310"
set a330 "cg_thirdpersonangle 330;set left vstr a340;set right vstr a320"
set a340 "cg_thirdpersonangle 340;set left vstr a350;set right vstr a330"
set a350 "cg_thirdpersonangle 350;set left vstr a0;set right vstr a340" 
set r5 "cg_thirdpersonrange 5;set farther vstr r10;set closer vstr r500" 
set r10 "cg_thirdpersonrange 10;set farther vstr r20;set closer vstr r5" 
set r20 "cg_thirdpersonrange 20;set farther vstr r30;set closer vstr r10"
set r30 "cg_thirdpersonrange 30;set farther vstr r40;set closer vstr r20"
set r40 "cg_thirdpersonrange 40;set farther vstr r50;set closer vstr r30"
set r50 "cg_thirdpersonrange 50;set farther vstr r60;set closer vstr r40"
set r60 "cg_thirdpersonrange 60;set farther vstr r70;set closer vstr r50"
set r70 "cg_thirdpersonrange 70;set farther vstr r80;set closer vstr r60"
set r80 "cg_thirdpersonrange 80;set farther vstr r90;set closer vstr r70"
set r90 "cg_thirdpersonrange 90;set farther vstr r100;set closer vstr r80"
set r100 "cg_thirdpersonrange 100;set farther vstr r120;set closer vstr r90"
set r120 "cg_thirdpersonrange 120;set farther vstr r140;set closer vstr r100"
set r140 "cg_thirdpersonrange 140;set farther vstr r160;set closer vstr r120"
set r160 "cg_thirdpersonrange 160;set farther vstr r180;set closer vstr r140"
set r180 "cg_thirdpersonrange 180;set farther vstr r200;set closer vstr r160"
set r200 "cg_thirdpersonrange 200;set farther vstr r220;set closer vstr r180"
set r220 "cg_thirdpersonrange 220;set farther vstr r240;set closer vstr r200"
set r240 "cg_thirdpersonrange 240;set farther vstr r260;set closer vstr r220"
set r260 "cg_thirdpersonrange 260;set farther vstr r280;set closer vstr r240"
set r280 "cg_thirdpersonrange 280;set farther vstr r300;set closer vstr r260"
set r300 "cg_thirdpersonrange 300;set farther vstr r350;set closer vstr r280"
set r350 "cg_thirdpersonrange 350;set farther vstr r400;set closer vstr r300"
set r400 "cg_thirdpersonrange 400;set farther vstr r500;set closer vstr r350"
set r500 "cg_thirdpersonrange 500;set farther vstr r5;set closer vstr r400"

set fs_debug 0
set ai_shownodesdist 1024
set com_statmon 0
set loc_warnings 0
set loc_warningsaserrors 0

set introscreen 0
set start heli