unbindall

//ignore any engine settings if our 'default' values are different.
exec configs/preset_5_nice.cfg
exec configs/game_2_normal.cfg
exec huds/hud_default.cfg

//make sure cvars exist and have correct defaults. otherwise the user's config can replace ezhud's delay-created-cvar defaults.
exec configs/ezhud_default.cfg


bind ` toggleconsole

//various keys that I'm sure the player will apprechiate
bind w 		+forward
bind s 		+back
bind a 		+moveleft
bind d 		+moveright

bind q		impulse 7
bind e		impulse 8

bind ctrl 		+attack
bind mouse1 	+attack
bind mouse2 	+jump
bind space 	+jump

bind t		messagemode

//NOTE: when playing a demo, these do tracking automagically (4on4... lets hope you don't have any 255-player games...)
bind 1 		impulse 1
bind 2 		impulse 2
bind 3 		impulse 3
bind 4 		impulse 4
bind 5 		impulse 5
bind 6 		impulse 6
bind 7 		impulse 7
bind 8 		impulse 8
//tempting, but 9 and 11 are potentially cheats.
//bind 9 		impulse 9
//bind 0 		impulse 10
//bind - 		impulse 11
//bind = 		impulse 12

//misc binds
bind	kp_minus		"inc volume -0.1;echo Volume: $volume"
bind	kp_plus		"inc volume +0.1;if volume < 0 then volume = 0;echo Volume: $volume"
bind shift_kp_plus 	addbot
bind shift_kp_minus 	removebot
bind ctrl_kp_plus 	skillup
bind ctrl_kp_minus 	skilldown
bind enter			messagemode
bind	tab			+showteamscores
bind v 			+voip
bind f5			menu_servers
bind f8			menu_servers
bind f10			m_quit
bind f12			screenshot
bind t			messagemode2
bind pause			pause

//for csaddon fun
bind c 		"if sv_cheats == 0 then set ca_show 0; if sv_cheats != 0 then toggle ca_show"
bind n 		"if sv_cheats == 1 noclip"

//these are expected for ktpro/ktx
bind pgup		ready
bind pgdn		break
crosshair		2

//set up some 2nd-player splitscreen controls, so that feature is usable out of the box.
//player 2 might need to be left-handed.
bind kp_8		"+p2 forward"
bind kp_5		"+p2 back"
bind kp_7		"+p2 left"
bind kp_4		"+p2 moveleft"
bind kp_9		"+p2 right"
bind kp_6		"+p2 moveright"
bind kp_enter	"+p2 jump"
bind kp_ins	"+p2 attack"
bind kp_slash	"p2 impulse 12"	//prev weapon
bind kp_star	"p2 impulse 10"	//next weapon
bind shift_kp_1	"p2 impulse 1"
bind shift_kp_2	"p2 impulse 2"
bind shift_kp_3	"p2 impulse 3"
bind shift_kp_4	"p2 impulse 4"
bind shift_kp_5	"p2 impulse 5"
bind shift_kp_6	"p2 impulse 6"
bind shift_kp_7	"p2 impulse 7"
bind shift_kp_8	"p2 impulse 8"
p2 setinfo		name "Wart"
p2 setinfo		aim 0.93

bind alt_kp_1	"p3 track #1"
bind alt_kp_2	"p3 track #2"
bind alt_kp_3	"p3 track #3"
bind alt_kp_4	"p3 track #4"
bind alt_kp_5	"p3 track #5"
bind alt_kp_6	"p3 track #6"
bind alt_kp_7	"p3 track #7"
bind alt_kp_8	"p3 track #8"

bind ctrl_kp_1	"p4 track #1"
bind ctrl_kp_2	"p4 track #2"
bind ctrl_kp_3	"p4 track #3"
bind ctrl_kp_4	"p4 track #4"
bind ctrl_kp_5	"p4 track #5"
bind ctrl_kp_6	"p4 track #6"
bind ctrl_kp_7	"p4 track #7"
bind ctrl_kp_8	"p4 track #8"

con_textsize	"-16"	//fonts are all about pixel heights.
gl_font		cour

sensitivity 5

//pull frag messages out.
r_tracker_frags		"2"	//show all frags, just because.
msg_filter_frags	"1"	//separate frags+non-frags.
sbar_teamstatus		"2"	//move team statuses to only the hud thingie.

noskins		"2"	//use but don't download. forcing everything anyway, so whatever.
enemyskin		solid
enemycolor		0xff0000 0xff0000
teamcolor		off 0x00ff00
baseskin		"base"	//use the high-res player skin

//the included frogbot mod needs some team names to go with player colours (it ignores teams completely, which makes skin-forcing fun).
localinfo d_skill 1	//so that noobs don't get owned too easily
localinfo team0 t0
localinfo team1 t1
localinfo team2 t2
localinfo team3 t3
localinfo team4 red
localinfo team5 t5
localinfo team6 t6
localinfo team7 t7
localinfo team8 t8
localinfo team9 t9
localinfo team10 t10
localinfo team11 t11
localinfo team12 t12
localinfo team13 blue
localinfo team14 urk
localinfo team15 wut


//ensure various autocvars have correct default values, in case someone seta+cfg_saves them
set sb_shownumplayers		1
set sb_showmaxplayers		0
set sb_showfraglimit		0
set sb_showtimelimit		0
set sb_showping			1
set sb_showgamedir		0
set sb_showaddress		0
set sb_showmap			1
set sb_showname			1
