// load the base configuration
//exec default.cfg

// Setup custom controller
exec joystick.cfg

// special: enable cheats
sv_cheats "1"

// special: set player model every run due to mp menu being stupid
cl_playermodel "models/player.mdl"

// special: aliases
alias giveall "exec giveall.cfg"

//Basic Third Person Camera Toggle - Also controls DeathCam.
alias "tpv_tog" "tpv_on"
alias "tpv_on"  "thirdperson; smod_player_deathswitchcamera 1; alias tpv_tog tpv_off"
alias "tpv_off" "firstperson; smod_player_deathswitchcamera 0; alias tpv_tog tpv_on"

//Over-The-Shoulder View
alias "re4_tog" "re4_on"
alias "re4_on"  "cam_idealdist 32; cam_crouchheightofs 18; cam_standheightofs -4; cam_nottransmodel 1; cam_sideofs 12; cam_idealpitch 8; cam_idealyaw 8; alias re4_tog re4_on2"
alias "re4_on2"  "cam_idealdist 32; cam_crouchheightofs 18; cam_standheightofs -4; cam_nottransmodel 1; cam_sideofs -12; cam_idealpitch 8; cam_idealyaw -8; alias re4_tog re4_off"
alias "re4_off" "cam_idealdist 90; cam_crouchheightofs 20; cam_standheightofs 12; cam_nottransmodel 0; cam_sideofs 5; cam_idealpitch 0; cam_idealyaw 0; alias re4_tog re4_on"

//Fixed-Position Camera
alias "re1_tog" "re1_on"
alias "re1_on"  "cam_fixcamera 1; cam_livemode 1; alias re1_tog re1_off"
alias "re1_off" "cam_fixcamera 0; cam_livemode 0; alias re1_tog re1_on"

//Dev-Debug mode
//bind "F1" "developer 2; weapon_limitcategory 0; weapon_custom_debug 1; weapon_infinityammo 1; cl_showfps 2; cl_showpos 1; exec giveall.cfg"
//Ironsighting Mode
//bind "F2" "crosshair 1; crosshair_vis_in_ironsightmode 1; viewmodel_adjust "1"; viewmodel_nolag 1"
//Nodemaker Mode
//bind "F11" "give weapon_nodemaker; ai_nodes; ai_show_connect; wait; ai_show_connect_fly; wait; ai_show_connect_jump; wait; ai_show_hints; wait;ai_moveprobe_jump_debug 1"

//for easier ironsighting, etc
viewmodel_adjust "1"

//VERY IMPORTANT -- save games can crash if these are not set?
datacachesize "128"
sv_forcepreload "1"
cl_forcepreload "1"
save_history_count "6" 
ai_norebuildgraph "0" //rebuilt all nodegraphs so this should be okay now 

//addcontents isn't used by standalone. disable
disable_addcontents "1"

// failsafe thing
sv_unlockedchapters "64"

// run a user script file if present
exec autoexec.cfg

//
// stuff command line statements
//
stuffcmds

// display the startup level
startupmenu