// autoexec.cfg -- config file for Xbox build.
//

// Debugging
"DisableSound" "0"
"DisableMusic" "1"
//"runworld" "Worlds/Test/BombTest"
//"DebugLevel" "1"
//"errorlog" "1"
//"alwaysflushlog" "1"
//"showfileaccess" "1"
//"TraceConsole" "1"
//"DebugModelRez" "1"

// Game Settings
"32BitLightMaps" "1"
"32bittextures" "1"
"Anisotropic" "1"
"AutoWeaponSwitch" "1"
"AxisForwardBackwardDeadZone" "0.200000"
"AxisLeftRightDeadZone" "0.200000"
"AxisPitchDeadZone" "0.024000"
"AxisYawDeadZone" "0.030000"
"BackBufferCount" "2"
// default LAN bandwidth 10m
"BandwidthTargetClient" "10000000"
"BandwidthTargetServer" "10000000"
"BindingIconAlpha" "0.500000"
"BindingIconSize" "0"
"BindingNumbers" "1"
"BitDepth" "32"
"BulletHoles" "300.000000"
"BumpMapPolyGrids" "1"
"CardDesc" "HAL"
"ClientFXDetailLevel" "2"
"CloudMapLight" "1.000000"
"consolealpha" "0.25"
"CrosshairAlpha" "127"
"CrosshairBlue" "255"
"CrosshairColorB" "1.000000"
"CrosshairColorG" "0.874510"
"CrosshairColorR" "0.874510"
"CrosshairDynamic" "1"
"CrosshairGreen" "255"
"CrosshairRed" "31"
"CrosshairStyle" "0"
"DebrisFXLevel" "2"
"defaultsoundmultiplier" "0.750000"
"DetailLevel" "2"
"Detailtextures" "1"
"DetailTextureScale" "1.0"
"Difficulty" "1"
"DrawPortals" "1"
"DrawShadows" "1"
"DrawSky" "1"
"DrawWorld" "2.0"
"DynamicLight" "1.000000"
"DynamicLightWorld" "1"
"EnableRetailLevels" "1"
"EnableWeatherFX" "1"
"envbumpmapenable" "1"
"EnvironmentalDetail" "3"
"EnvMapEnable" "1"
"EnvMapWorld" "1"
"EnvPanSpeed" "0.000500"
"FadeBodies" "0"
"FarZ" "6274"
"FastLight" "0.000000"
"FastTurnRate" "2.300000"
"FixedAxisPitch" "0.000000"
"FixSparkleys" "0"
"fixtjunc" "1"
"FogEnable" "1"
"FontWidthHeightRatio" "0.500000"
"Forceclear" "1"
"FresnelPolyGrids" "1"
"FXDetail" "2"
"GammaB" "1.000000"
"GammaG" "1.000000"
"GammaR" "1.000000"
"Gore" "1"
"GroupOffset0" "0.000000"
"GroupOffset1" "0"
"GroupOffset2" "0"
"GroupOffset3" "0"
"GroupOffset4" "-2"
"GroupOffset5" "-2"
"GroupOffset6" "-2"
"HardwareCursor" "1"
"HeadBob" "1.000000"
"HUDLayout" "1"
"IgnoreTaunts" "0"
"ImpactFXLevel" "2"
"inputrate" "12.000000"
"LeanAngle" "8.0"
"LeanCenterTime" "0.2"
"LeanOutTime" "0.15"
"LightMap" "1"
"LightModelSprites" "1"
"LightSaturate" "0.5"
"LodOffset" "-200.000000"
"LodScale" "2.000000"
"LookSpring" "0.000000"
"LookUpRate" "2.500000"
"MasterPaletteMode" "1.000000"
"MaxFps" "31"
"MaxModelShadows" "1"
"MaxWorldPoliesToDraw" "50000"
"MessageDuration" "1.000000"
"mipmapbias" "-1"
"MipmapDist" "375.000000"
"ModelAdd" "50 50 50"
"modeldist1" "150.000000"
"modeldist2" "250.000000"
"modeldist3" "350.000000"
"ModelFullbrite" "0"
"ModelLOD" "2.000000"
"ModelLODOffset" "0"
"ModelShadowAlpha" "96"
"ModelShadowProj" "0"
"ModelShadowProjLOD" "1.000000"
"ModelShadowProjRes" "128.000000"
"ModelShadow_proj_alpha" "1.000000"
"ModelShadow_Proj_BackFaceCull" "0"
"modelshadow_proj_blurenable" "1"
"ModelShadow_proj_enable" "1"
"ModelShadow_proj_MaxProjDist" "200.000000"
"ModelShadow_Proj_MaxShadowsPerFrame" "2"
"ModelShadow_proj_perspective" "1"
"ModelShadow_proj_textureres" "256"
"ModelWarble" "0"
"MouseInvertY" "0"
"MouseLook" "1"
"MouseSensitivity" "2.000000"
"multiplayer" "0"
"MusicActive" "1"
"musicenable" "1"
"MusicQuality" "1"
"musictype" "ima"
"musicvolume" "1250"
"MuzzleLight" "1"
"NormalTurnRate" "1.500000"
"numconsolelines" "0"
"NumRuns" "1557.000000"
"ObjectiveMessages" "1"
"OldUpdate" "0"
"optimizesurfaces" "1"
"PerformanceConfig" ".CustomConfig"
"performancelevel" "3"
"PickupMessageDuration" "5.000000"
"PolyGrids" "1.000000"
"PreCacheAssets" "1"
"prediction" "0"
"ProfileName" "Player_0"
"pvmodelaspect" "1.2"
"pvmodelfov" "65"
"PVWeapons" "0.000000"
"Render60Hz" "1"
"RenderDll" "d3d.ren"
"RunLock" "1"
"Saturate" "1"
"ScatterEnable" "1"
"screendepth" "32"
"ScreenFlash" "1.000000"
"screenheight" "480"
"screenwidth" "640"
"SendBandwidth" "10000000"
"ShadowDetail" "2"
"shadowlodoffset" "100.000000"
"ShadowZRange" "17.000000"
"ShellCasings" "1"
"SnowDensityScale" "1.000000"
"SnowEnable" "1"
"Sound16Bit" "1"
"soundenable" "1"
"SoundFilters" "0"
"SoundVolume" "75"
"SpecialFX" "2.000000"
"Subtitles" "1"
"TextureDetail" "2.000000"
"Tracers" "1"
"Trilinear" "1"
"TripleBuffer" "1"
"Updaterate" "10"
"UpdateRateInitted" "1"
"UseJoystick" "0"
"VehicleContour" "1"
"VehicleTurnRateScale" "1.000000"
"VSyncOnFlip" "1"
"VS_CANVASES" "32"
"VS_CANVASES_TRANSLUCENT" "128"
"VS_LIGHTS" "64"
"VS_LINESYSTEMS" "128"
"VS_MODELS" "512"
"VS_MODELS_TRANSLUCENT" "256"
"VS_PARTICLESYSTEMS" "512"
"VS_POLYGRIDS" "64"
"VS_POLYGRIDS_TRANSLUCENT" "64"
"VS_SPRITES" "512"
"VS_SPRITES_NOZ" "128"
"VS_WORLDMODELS" "512"
"VS_WORLDMODELS_TRANSLUCENT" "512"
"WarbleScale" ".95"
"WarbleSpeed" "15"
"weaponssoundmultiplier" "1.000000"
"WeaponSway" "1.000000"
"windowed" "0"

AddAction Forward 0
AddAction Backward 1
AddAction Activate 2
AddAction Reload 3
AddAction TurnAround 4
AddAction Duck 5
AddAction Jump 6
//AddAction Speed 7
AddAction Fire 8
//AddAction Strafe 9
//AddAction Left 10
//AddAction Right 11
//AddAction RunLock 12
//AddAction StrafeLeft 13
//AddAction StrafeRight 14
//AddAction LookUp 16
//AddAction LookDown 17
AddAction LeanLeft 18
AddAction LeanRight 19
//AddAction Weapon_1 20
//AddAction Weapon_2 21
//AddAction Weapon_3 22
//AddAction Weapon_4 23
//AddAction Weapon_5 24
//AddAction Weapon_6 25
//AddAction Weapon_7 26
//AddAction Weapon_8 27
//AddAction Weapon_9 28
//AddAction Weapon_10 29
//AddAction Weapon_11 30
//AddAction Weapon_12 31
//AddAction Weapon_13 32
//AddAction Weapon_14 33
//AddAction Weapon_15 34
//AddAction Weapon_16 35
//AddAction Weapon_17 36
//AddAction Weapon_18 37
//AddAction Weapon_19 38
//AddAction Weapon_20 39
//AddAction Weapon_21 40
//AddAction Weapon_22 41
//AddAction Weapon_23 42
//AddAction Weapon_24 43
//AddAction Weapon_25 44
//AddAction Weapon_26 45
//AddAction Weapon_27 46
//AddAction Weapon_28 47
//AddAction Weapon_29 48
//AddAction Weapon_30 49
//AddAction Weapon_31 50
//AddAction Weapon_32 51
//AddAction Weapon_33 52
//AddAction Weapon_34 53
//AddAction Weapon_35 54
//AddAction Weapon_36 55
//AddAction Weapon_37 56
//AddAction Weapon_38 57
//AddAction Weapon_39 58
//AddAction Weapon_40 59
//AddAction NextAmmo 60
AddAction ZoomIn 61
//AddAction ZoomOut 62
//AddAction QuickSave 64
//AddAction QuickLoad 65
AddAction PrevWeapon 66
AddAction NextWeapon 67
//AddAction Score 68
AddAction Mission 69
//AddAction MouseAim 70
//AddAction CursorTog 71
//AddAction CenterView 72
AddAction HolsterWeapon 73
//AddAction SendMessage 74
//AddAction IncLayout 75
//AddAction DecLayout 76
//AddAction Inventory 77
AddAction NextWeapon_1 78
AddAction NextWeapon_2 79
AddAction NextWeapon_3 80
AddAction NextWeapon_4 81
AddAction NextWeapon_5 82
AddAction NextWeapon_6 83
AddAction NextWeapon_7 84
AddAction NextWeapon_8 85
AddAction NextWeapon_9 86
AddAction NextWeapon_10 87
//AddAction Choose_1 95
//AddAction Choose_2 96
//AddAction Choose_3 97
//AddAction Choose_4 98
//AddAction Choose_5 99
//AddAction Choose_6 100
AddAction DuckLock 92
//AddAction LastWeapon 93
//AddAction TeamMessage 94
//AddAction CompassToggle 101
//AddAction ViewKeys 102
//AddAction ViewIntel 103
//AddAction MoveBody 104
//AddAction Flashlight 105
//AddAction Radio 106

AddAction Pause 110

// Cheats
AddAction SpectatorMode 120
AddAction GhostMode 121
AddAction MemStats 122
AddAction MemSpread 123

// Thumb sticks
AddAction XAxisMove 130
AddAction YAxisMove 131
AddAction XAxisLook 132
AddAction YAxisLook 133

// User interface commands
AddAction UI_A 140
AddAction UI_B 141
AddAction UI_X 142
AddAction UI_Y 143
AddAction UI_White 144
AddAction UI_Black 145
AddAction UI_Start 146
AddAction UI_Back 147
AddAction UI_DpadLeft 148
AddAction UI_DpadRight 149
AddAction UI_DpadUp 150
AddAction UI_DpadDown 151
AddAction UI_LThumbX 152
AddAction UI_LThumbY 153
AddAction UI_RThumbX 154
AddAction UI_RThumbY 155

//AddAction LeaveUnassigned 201

//
// KEYBOARD
//

enabledevice "##keyboard" 1
bind "##keyboard" "##key 0" "NextWeapon_10"
bind "##keyboard" "##key 1" "NextWeapon_1"
bind "##keyboard" "##key 2" "NextWeapon_2"
bind "##keyboard" "##key 3" "NextWeapon_3"
bind "##keyboard" "##key 4" "NextWeapon_4"
bind "##keyboard" "##key 5" "NextWeapon_5"
bind "##keyboard" "##key 6" "NextWeapon_6"
bind "##keyboard" "##key 7" "NextWeapon_7"
bind "##keyboard" "##key 8" "NextWeapon_8"
bind "##keyboard" "##key 9" "NextWeapon_9"
bind "##keyboard" "##key f1" "GhostMode"
bind "##keyboard" "##key f2" "SpectatorMode"

//
// GAMEPAD0
//

enabledevice "##gamepad0" 3

// UI Bindings:
bind "##gamepad0" "##gamepad dpad up" "UI_DpadUp"
bind "##gamepad0" "##gamepad dpad left" "UI_DpadLeft"
bind "##gamepad0" "##gamepad dpad down" "UI_DpadDown"
bind "##gamepad0" "##gamepad dpad right" "UI_DpadRight"
bind "##gamepad0" "##gamepad a" "UI_A"
bind "##gamepad0" "##gamepad b" "UI_B"
bind "##gamepad0" "##gamepad x" "UI_X"
bind "##gamepad0" "##gamepad y" "UI_Y"
bind "##gamepad0" "##gamepad white" "UI_White"
bind "##gamepad0" "##gamepad black" "UI_Black"
bind "##gamepad0" "##gamepad start" "UI_Start"
bind "##gamepad0" "##gamepad back" "UI_Back"
rangebind "##gamepad0" "##gamepad x-axis left thumb" 100.0f "UI_LThumbX"
rangebind "##gamepad0" "##gamepad y-axis left thumb" 100.0f "UI_LThumbY"
rangebind "##gamepad0" "##gamepad x-axis right thumb" 100.0f "UI_RThumbX"
rangebind "##gamepad0" "##gamepad y-axis right thumb" 100.0f "UI_RThumbY"

// Game Bindings:
bind "##gamepad0" "##gamepad dpad left" "LeanLeft"
bind "##gamepad0" "##gamepad dpad down" "DuckLock"
bind "##gamepad0" "##gamepad dpad right" "LeanRight"
bind "##gamepad0" "##gamepad left trigger" "Activate"
bind "##gamepad0" "##gamepad right trigger" "Fire"
bind "##gamepad0" "##gamepad left thumb" "Duck"
bind "##gamepad0" "##gamepad right thumb" "ZoomIn"
bind "##gamepad0" "##gamepad a" "Jump"
bind "##gamepad0" "##gamepad b" "NextWeapon"
bind "##gamepad0" "##gamepad x" "PrevWeapon"
bind "##gamepad0" "##gamepad y" "Reload"
bind "##gamepad0" "##gamepad white" "Mission"
bind "##gamepad0" "##gamepad black" "HolsterWeapon"
rangebind "##gamepad0" "##gamepad x-axis left thumb" 100.0f "XAxisMove"
rangebind "##gamepad0" "##gamepad y-axis left thumb" 100.0f "YAxisMove"
rangebind "##gamepad0" "##gamepad x-axis right thumb" 100.0f "XAxisLook"
rangebind "##gamepad0" "##gamepad y-axis right thumb" 100.0f "YAxisLook"

// Debug Bindings:
//bind "##gamepad0" "##gamepad black" "MemStats"
//bind "##gamepad0" "##gamepad white" "MemSpread"

//
// GAMEPAD1
//

enabledevice "##gamepad1" 4

// UI Bindings:
bind "##gamepad1" "##gamepad dpad up" "UI_DpadUp"
bind "##gamepad1" "##gamepad dpad left" "UI_DpadLeft"
bind "##gamepad1" "##gamepad dpad down" "UI_DpadDown"
bind "##gamepad1" "##gamepad dpad right" "UI_DpadRight"
bind "##gamepad1" "##gamepad a" "UI_A"
bind "##gamepad1" "##gamepad b" "UI_B"
bind "##gamepad1" "##gamepad x" "UI_X"
bind "##gamepad1" "##gamepad y" "UI_Y"
bind "##gamepad1" "##gamepad white" "UI_White"
bind "##gamepad1" "##gamepad black" "UI_Black"
bind "##gamepad1" "##gamepad start" "UI_Start"
bind "##gamepad1" "##gamepad back" "UI_Back"
rangebind "##gamepad1" "##gamepad x-axis left thumb" 100.0f "UI_LThumbX"
rangebind "##gamepad1" "##gamepad y-axis left thumb" 100.0f "UI_LThumbY"
rangebind "##gamepad1" "##gamepad x-axis right thumb" 100.0f "UI_RThumbX"
rangebind "##gamepad1" "##gamepad y-axis right thumb" 100.0f "UI_RThumbY"

// Game Bindings:
bind "##gamepad1" "##gamepad dpad left" "LeanLeft"
bind "##gamepad1" "##gamepad dpad down" "DuckLock"
bind "##gamepad1" "##gamepad dpad right" "LeanRight"
bind "##gamepad1" "##gamepad left trigger" "Activate"
bind "##gamepad1" "##gamepad right trigger" "Fire"
bind "##gamepad1" "##gamepad left thumb" "Duck"
bind "##gamepad1" "##gamepad right thumb" "ZoomIn"
bind "##gamepad1" "##gamepad a" "Jump"
bind "##gamepad1" "##gamepad b" "NextWeapon"
bind "##gamepad1" "##gamepad x" "PrevWeapon"
bind "##gamepad1" "##gamepad y" "Reload"
bind "##gamepad1" "##gamepad white" "Mission"
bind "##gamepad1" "##gamepad black" "HolsterWeapon"
rangebind "##gamepad1" "##gamepad x-axis left thumb" 100.0f "XAxisMove"
rangebind "##gamepad1" "##gamepad y-axis left thumb" 100.0f "YAxisMove"
rangebind "##gamepad1" "##gamepad x-axis right thumb" 100.0f "XAxisLook"
rangebind "##gamepad1" "##gamepad y-axis right thumb" 100.0f "YAxisLook"

//
// GAMEPAD2
//

enabledevice "##gamepad2" 5

// UI Bindings:
bind "##gamepad2" "##gamepad dpad up" "UI_DpadUp"
bind "##gamepad2" "##gamepad dpad left" "UI_DpadLeft"
bind "##gamepad2" "##gamepad dpad down" "UI_DpadDown"
bind "##gamepad2" "##gamepad dpad right" "UI_DpadRight"
bind "##gamepad2" "##gamepad a" "UI_A"
bind "##gamepad2" "##gamepad b" "UI_B"
bind "##gamepad2" "##gamepad x" "UI_X"
bind "##gamepad2" "##gamepad y" "UI_Y"
bind "##gamepad2" "##gamepad white" "UI_White"
bind "##gamepad2" "##gamepad black" "UI_Black"
bind "##gamepad2" "##gamepad start" "UI_Start"
bind "##gamepad2" "##gamepad back" "UI_Back"
rangebind "##gamepad2" "##gamepad x-axis left thumb" 100.0f "UI_LThumbX"
rangebind "##gamepad2" "##gamepad y-axis left thumb" 100.0f "UI_LThumbY"
rangebind "##gamepad2" "##gamepad x-axis right thumb" 100.0f "UI_RThumbX"
rangebind "##gamepad2" "##gamepad y-axis right thumb" 100.0f "UI_RThumbY"

// Game Bindings:
bind "##gamepad2" "##gamepad dpad left" "LeanLeft"
bind "##gamepad2" "##gamepad dpad down" "DuckLock"
bind "##gamepad2" "##gamepad dpad right" "LeanRight"
bind "##gamepad2" "##gamepad left trigger" "Activate"
bind "##gamepad2" "##gamepad right trigger" "Fire"
bind "##gamepad2" "##gamepad left thumb" "Duck"
bind "##gamepad2" "##gamepad right thumb" "ZoomIn"
bind "##gamepad2" "##gamepad a" "Jump"
bind "##gamepad2" "##gamepad b" "NextWeapon"
bind "##gamepad2" "##gamepad x" "PrevWeapon"
bind "##gamepad2" "##gamepad y" "Reload"
bind "##gamepad2" "##gamepad white" "Mission"
bind "##gamepad2" "##gamepad black" "HolsterWeapon"
rangebind "##gamepad2" "##gamepad x-axis left thumb" 100.0f "XAxisMove"
rangebind "##gamepad2" "##gamepad y-axis left thumb" 100.0f "YAxisMove"
rangebind "##gamepad2" "##gamepad x-axis right thumb" 100.0f "XAxisLook"
rangebind "##gamepad2" "##gamepad y-axis right thumb" 100.0f "YAxisLook"

//
// GAMEPAD3
//

enabledevice "##gamepad3" 6

// UI Bindings:
bind "##gamepad3" "##gamepad dpad up" "UI_DpadUp"
bind "##gamepad3" "##gamepad dpad left" "UI_DpadLeft"
bind "##gamepad3" "##gamepad dpad down" "UI_DpadDown"
bind "##gamepad3" "##gamepad dpad right" "UI_DpadRight"
bind "##gamepad3" "##gamepad a" "UI_A"
bind "##gamepad3" "##gamepad b" "UI_B"
bind "##gamepad3" "##gamepad x" "UI_X"
bind "##gamepad3" "##gamepad y" "UI_Y"
bind "##gamepad3" "##gamepad white" "UI_White"
bind "##gamepad3" "##gamepad black" "UI_Black"
bind "##gamepad3" "##gamepad start" "UI_Start"
bind "##gamepad3" "##gamepad back" "UI_Back"
rangebind "##gamepad3" "##gamepad x-axis left thumb" 100.0f "UI_LThumbX"
rangebind "##gamepad3" "##gamepad y-axis left thumb" 100.0f "UI_LThumbY"
rangebind "##gamepad3" "##gamepad x-axis right thumb" 100.0f "UI_RThumbX"
rangebind "##gamepad3" "##gamepad y-axis right thumb" 100.0f "UI_RThumbY"

// Game Bindings:
bind "##gamepad3" "##gamepad dpad left" "LeanLeft"
bind "##gamepad3" "##gamepad dpad down" "DuckLock"
bind "##gamepad3" "##gamepad dpad right" "LeanRight"
bind "##gamepad3" "##gamepad left trigger" "Activate"
bind "##gamepad3" "##gamepad right trigger" "Fire"
bind "##gamepad3" "##gamepad left thumb" "Duck"
bind "##gamepad3" "##gamepad right thumb" "ZoomIn"
bind "##gamepad3" "##gamepad a" "Jump"
bind "##gamepad3" "##gamepad b" "NextWeapon"
bind "##gamepad3" "##gamepad x" "PrevWeapon"
bind "##gamepad3" "##gamepad y" "Reload"
bind "##gamepad3" "##gamepad white" "Mission"
bind "##gamepad3" "##gamepad black" "HolsterWeapon"
rangebind "##gamepad3" "##gamepad x-axis left thumb" 100.0f "XAxisMove"
rangebind "##gamepad3" "##gamepad y-axis left thumb" 100.0f "YAxisMove"
rangebind "##gamepad3" "##gamepad x-axis right thumb" 100.0f "XAxisLook"
rangebind "##gamepad3" "##gamepad y-axis right thumb" 100.0f "YAxisLook"
