//---- onty's HL2DM Live Gaming CFG ---- 28/09/2008
//
//- Half Life 2 Deathmatch
//- Configurations
//- by Cristian Ontivero | a.k.a. onty.  (cristianontivero@gmail.com)
//
//-Launch Options:
// -width 1680 -height 1050 -refresh 75 -novid -heapsize 1048576 -console
//======================================================================

// ( )--- Movement & Others ---( )
// ===============================================================================================================

bind "w" "+forward"					// Moving Forward
bind "s" "+back"					      // Moving backwards
bind "a" "+moveleft"					// Strafe Left
bind "d" "+moveright"					// Strafe Right
bind "mwheelup" "+jump"					// Jump
bind "SHIFT" "+speed"					// Sprint (aux power)
bind "MOUSE5" "+duck"					// Crouch 
bind "MOUSE4" "use"				 	// Use
bind "MOUSE1" "+attack"					// Primary attack
bind "MOUSE2" "+attack2"				// Secondary attack
bind "MOUSE3" "toggle_zoom"				// Toggles suit zoom on/off with mouse 3 bottom

// ( )--- Communication ---( )
// ===============================================================================================================

bind "k" "+voicerecord"					// Voice communication
bind "u" "messagemode2"					// Team message
bind "y" "messagemode"					// Public message 
voice_enable "1"						// Enables vocie chat

// ( )--- Personal Binds ---( )
// ===============================================================================================================

bind "mwheeldown" "timeleft"
// bind "CTRL" "impulse 201"                	// Spray!  
bind "0" "disconnect"					// Disconnects from server when 0 is pressed
bind "F3" "say nextmap"
bind "F4" "say statsme"
bind "F5" "say thetime"
bind "F6" "jpeg"						// Takes a screenshot                                _
bind "F7" "give item_ammo_crossbow"			// Gives crossbow ammo	                              \
bind "F8" "impulsex5"					// Gives every weapon plus full ammo. (check scripts)  \ Check Alias
bind "F9" "combine"             			// Changes to combine model                            /   Section
bind "F10" "rebel"               			// Changes to rebel model                            _/
bind "F11" "jointeam 2"					// Joining back to a team 
bind "F12" "spectate"					// Joining Spectators

// ( )--- Weapons and misc ---( )
// ===============================================================================================================

bind "r" "+reload"						// Reload weapon
bind "2" "use weapon_pistol"					// Change to pistol
bind "3" "use weapon_smg1"					// Change to sub machinegun
bind "e" "use weapon_shotgun"					// Change to shotgun
bind "4" "use weapon_frag"					// Change to hand grenade
bind "f" "use weapon_physcannon"				// Change to Gravity Gun
bind "m" "use weapon_SLAM"					// Change to Slam
bind "n" "use weapon_357"			          	// Change to .357/Magnum
bind "q" "use weapon_crowbar;use weapon_stunstick"	// Change to crowbar/stunstick
bind "v" "use weapon_crossbow"			    	// Change to crossbow
bind "b" "use weapon_ar2"					// Change to ar2
bind "c" "use weapon_rpg"					// Change to rpg
// []-------------------------------------------------------------------------------------------------------------
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
cl_autowepswitch "0"						// Prevents from changing weapon when one more powerful is picked up
cl_defaultweapon "weapon_physcannon"			// Weapon with which you start (Gravity gun)
hud_fastswitch "1"

// ( )--- Personal Stuff ---( )
// ===============================================================================================================

hud_showemptyweaponslots "1"
hud_quickinfo "0"							// Removes crosshair brackets
bind "." "toggleconsole"					// Toggle console with "." (dot)
con_enable "1"							// Enables console
crosshair "1"							// Makes the crosshair visible
cl_spec_mode "3" 							// When you spectate, default view is "free roam"	
cl_playermodel "models/humans/Group03/Male_03.mdl"	// Black model (FTW :D)
cl_showpos "1"							// Shows position and speed
jpeg_quality "100"						// Maximum screenshot quality

// ( )----- Mouse settings for Razer Deathadder 1800 dpi -----( )
// ===============================================================================================================

sensitivity "0.54"             // Mouse in-game sensitivity.
zoom_sensitivity_ratio "1.0"   // Additional mouse sensitivity scale factor applied when FOV is zoomed in (default = 1, max 2).
cl_mouselook "1"               // Set to 1 to use mouse for look, 0 for keyboard look. Cannot be set while connected to a server.
m_pitch "0.022"                // Mouse pitch factor.
m_filter "0"                   // Disables mouse filtering (set this to 1 to average the mouse over 2 frames, not recommended for gamers).
m_side "0.8"                   // Mouse side factor.
m_yaw "0.022"                  // Mouse yaw factor.
m_forward "1"                  // Mouse forward factor.
m_customaccel "0"              // Custom mouse acceleration (0 disable, 1 to enable, 2 enable with separate yaw/pitch rescale formula).
m_customaccel_scale "0"        // Custom mouse acceleration value.
m_customaccel_max "0"          // Max mouse move scale factor, 0 for no limit.
m_customaccel_exponent "1"     // Mouse move is raised to this power before being scaled by scale factor.
m_mouseaccel1 "0"              // Windows mouse acceleration initial threshold (2x movement).
m_mouseaccel2 "0"              // Windows mouse acceleration secondary threshold (4x movement).
m_mousespeed "1"               // Windows mouse speed factor (range 1 to 20).

// ( )--- NetCode & Rates ---( )
// ===============================================================================================================

rate "25000"						
cl_updaterate "67"                         	
cl_cmdrate "67"						
cl_allowupload "1"                              
cl_downloadfilter "nosounds"			// Prevents sounds from being donwloaded from the server, other values are "none" and "all"
cl_allowdownload "1"
cl_timeout "30"
cl_lagcomp_errorcheck "1"
cl_lagcompensation "1"
cl_smooth "1"
cl_forcepreload "1"                      	// Preloads stuff, more loading times but less stuttering in-game.

// ( )--- NetGraph & FPS ---( )
// ===============================================================================================================

fps_max "125"               // FPS limited @ 125.
net_graph "3"               // Net graph enabled, type 3.
net_scale "5"
net_graphpos "2"            // Net graph position
net_graphsolid "1"

// ( )--- CPU Setting's ---( ) [Intel Core2Duo E6750]
// ===============================================================================================================

r_mmx "1"
r_sse "1"
r_sse2 "1"
r_3dnow "1"
dsp_slow_cpu "0" 			// If set to 1, reduces the quality of dsp sound effects, improving performance on systems with slower CPUs.

// ( )--- Video Settings --- ( )
// ===============================================================================================================

muzzleflash_light "0"	  	// If set to 1, weapons firing will emit a light along with the muzzle flash. If set to 0, a muzzle flash is still visible but no lighting is cast from it. Performance will improve in combat scenes with no noticeable drop in realism.
mp_decals "100"			// Maximum number of decals visible, as in bloodsprays, bulletholes etc
r_decals "100"			// Specifies the maximum number of decals visible at any one time (0 removes player sprays)
cl_ejectbrass "0"			// If set to 1, weapons eject shells as they fire. If set to 0 they don't, which can improve performance especially during heavy combat

// ( ) --- Sound Settings --- ( )
// ===============================================================================================================
snd_async_fullyasync "0"	// If set to 1, sound may go out of synch with actions but you will experience reduced loading pauses and stuttering. Usually best left disabled
snd_digital_surround "0"	 
dsp_enhance_stereo "1"     	// If set to 1 enhances the stereo effect, making sound richer and more atmospheric for a slight performance hit   

// []--- Alias --- []
// ===============================================================================================================

alias "rebel" "cl_playermodel models/humans/group03/male_03.mdl"    // Change to male_03 model
alias "combine" "cl_playermodel models/police.mdl" 	 		 // Change to combine_soldier model
alias "impulsex5" "impulse 101; wait; wait; impulse 101; wait; wait; impulse 101; wait; wait; impulse 101; wait; wait; impulse 101" // Impulse 101 cheat x 5.

//
// END
//
clear
echo "                                  _            _         "
echo "                     ___   _ __  | |_  _   _  ( )___     "
echo "                    / _ \ | '_ \ | __|| | | | |// __|    "
echo "                   | (_) || | | || |_ | |_| | _ \__ \    "
echo "                    \___/ |_| |_| \__| \__, |(_)|___/    "
echo "                     ____              |___/ _           "
echo "                    / ___| ___   _ __   / _|(_)  __ _    "
echo "                   | |    / _ \ | '_ \ | |_ | | / _` |   "
echo "                   | |___| (_) || | | ||  _|| || (_| |   "
echo "                 _  \____|\___/ |_| |_||_|  |_| \__, |_  "
echo "                | |     ___    __ _   __| |  ___|___/| | "
echo "                | |    / _ \  / _` | / _` | / _ \ / _` | "
echo "                | |___| (_) || (_| || (_| ||  __/| (_| | "
echo "                |_____|\___/  \__,_| \__,_| \___| \__,_| "
echo "                                                         "

