Skip to content

Instantly share code, notes, and snippets.

@atharv0goel
Last active February 12, 2023 12:29
Show Gist options
  • Select an option

  • Save atharv0goel/a00720cd6d9a13d553a57de18867a487 to your computer and use it in GitHub Desktop.

Select an option

Save atharv0goel/a00720cd6d9a13d553a57de18867a487 to your computer and use it in GitHub Desktop.
My main config files for Titanfall 2. Values inside brackets indicate the default value of the respective command. For commands that don't have comments, I'm either not sure what they exactly do or don't know how to explain.
sv_cheats 1 // Enable cheats
demo_enabledemos 1 // Enable recording demos (must be set true before loading a map).
demo_autoRecord 1 // Automatically record multiplayer matches as demos.
demo_autoRecordName "test" // Set the name of the automatically recorded MP demos. (i mean its supposed to, but it doesnt seem to do anything for me so idk)
demo_writeLocalFile 1 // Demos write to a local file when recording a demo.
demo_interplimit 999999999 // Don't know if this works just putting here anyway.
demo_interpolateview 1 // Do view interpolation during dem playback.
demo_writeSeparateServerStream 1 // Record server packets in a separate file, to help make playback smoother when playing back at a higher framerate, by interleaving user cmds with server packets.
demo_recordcommands 0 // Prevents commands entered in the console from being recorded in the demo.
cl_interpolate 1 // Fixes skipping for timescales x0.6 - x1.0
demo_interpolateview 1 // Do view interpolation during demo playback
base_tickinterval_sp 0.01 // Singleplayer - 0.01 for 100 TPS, 0.016666667 for 60 TPS, 0.05 for 20 TPS (TPS = Ticks Per Second)
base_tickinterval_mp 0.01 // Multiplayer - 0.01 for 100 TPS, 0.016666667 for 60 TPS, 0.05 for 20 TPS (TPS = Ticks Per Second)
cl_showfps "1" // Stats like FPS, Server Tickrate, Map Name, Time since demo started etc. (change to 0 when you want to record)
cl_showtime "1" // Draw current demo time if recording a demo.
//bind "9" "_record demo" // Record Demo Increment
//bind "0" "stop" // Stop Recording
bind "F2" "playdemo demo_name" // Plays the demo. Replace with your demo name.
bind "F3" "stopdemo" // Stop demo playback
bind "F4" "toggle cam_command 1 0" // Thirdperson locked view
//bind "F4" "firstperson" // First Person
bind "F5" "demo_gototick 256 1 0" // 10 seconds FF
bind "F7" "toggle demo_playbackexactframes 0 1" // Plays back the exact frames as recorded
bind "F8" "demo_togglepause" // Pause/Resume
bind "F9" "toggle host_timescale 1 1.5 2 .7" // Toggle the demo playback speed
bind "F10" "host_timescale 1" // Normal Speed
//bind "F11" "cl_interpolate 1" // Fixes skipping for timescales x0.6 - x1.0
//bind "F12" "demo_interpolateview 1" // Do view interpolation during dem playback
// --SETTINGS--
cl_particle_fallback_base "0" // (4) Base for falling back to cheaper effects under load.
cl_particle_fallback_multiplier "0" // (2) Multiplier for falling back to cheaper effects under load.
cl_particle_max_count "0" // (0)
cl_ragdoll_maxcount "0" // (8)
cl_showfps "4" // (0) Show FPS and frame-times using Titanfall's counter
cl_showpos "1" // (0) Show player position, velocity, and view angle.
csm_enabled "0" // (1) Disables Cascaded Shadows. Gives a significant FPS boost.
csm_quality_level "0" // (1) Set the cascading shadow maps cascade layout mode.
dlight_enable "0" // (1)
dof_enable "0" // (0) Disables depth of field effect on the weapon. Might slightly boost FPS.
fog_enable "0" // (1) Enable/Disable Fog.
fog_enable_water_fog "0" // (1) Enable/Disable Water Fog.
func_break_max_pieces "0" // (15)
lightmap_realtimelight "0" // (1) Disables certain lighting around the map.
mat_bloomscale "0" // (1)
mat_sun_scale "1" // (1)
mat_sky_scale "1" // (1)
mat_disable_bloom "1" // (0) Disables various bloom effects.
mat_envmap_scale "0" // (1) Removes the "wavy" reflection on water and sniper scope
mat_envmaptgasize "0" // (1) Works in conjunction with the above command
mat_hdr_level "0" // (2) Set to 0 for LDR, 1 for LDR and bloom on HDR maps, 2 for full HDR and bloom on HDR maps, and 3 for float backbuffer. Personally I don't notice any difference with this on and off.
mat_picmip "4" // (0) Gives an FPS boost with very little visual impact. Setting this to more than 4 resets it to High.
particle_cpu_level "0" // (2) Lowest possible CPU-generated particles.
r_decals "0" // (256)
r_dynamic "0" // (1)
r_particle_timescale "1" // (1) Reduces Muzzle flash. Setting it to 7+ hides the hitscan projectile animation completely, but messes with Stim bloom.
shadow_enable "0" // (1)
shadow_noLOD "0" // (1)
shadow_maxspotshadows "0" // (80) Maximum global count of low res (shadow_depthres) spot shadows
// --BINDS--
bind "." "toggle fog_enableskybox 0 1" // Toggle Skybox Fog
bind "1" "mat_sky_color 0 0 0 0; mat_sun_color 0 0 0 0" // Default colours
bind "2" "mat_sky_color 1.5 1.5 1.5; mat_sun_color 1.5 1.5 1.5" // Eppixx colours
bind "3" "mat_sky_color 0.8 0.8 0.8; mat_sun_color 0 0 0" // Ztoishere colours
bind "4" "toggle lightmap_realtimelight 0 1" // Toggles some lighting on and off.
bind "b" "sv_cheats 1; give mp_weapon_car extended_ammo pas_fast_reload pas_fast_ads pas_fast_swap tactical_cdr_on_kill pas_run_and_gun" // Spawn Car (with attachments)
bind "n" "sv_cheats 1; give mp_weapon_sniper extended_ammo pas_fast_reload pas_fast_ads pas_fast_swap tactical_cdr_on_kill ricochet" // Spawn Kraber (with attachments)
bind "m" "sv_cheats 1; give mp_ability_heal" // Equip Stim
exec demo_config.cfg
exec main.cfg
//mouse_sensitivity "1.65"
//mouse_sensitivity_zoomed "1.65"
// M&KB
bind "a" "+moveleft"
bind "c" "+ability 6"
bind "d" "+moveright"
bind "e" "+use"
bind "f" "+speed"
bind "g" "+melee"
bind "r" "weaponSelectPrimary2"
bind "s" "+back"
bind "t" "say"
bind "v" "+ability 1"
// bind "w" "+forward; dof_enable 0"
bind "x" "+scriptCommand1"
bind "y" "say_team"
bind "z" "+pushtotalk"
bind "`" "toggleconsole"
bind "SPACE" "+ability 3"
// bind "TAB" "+showscores"
bind "ESCAPE" "ingamemenu_activate"
bind "ENTER" "say";"spawn_as_titan"
bind "DEL" "scoreboard_mute"
bind "HOME" "scoreboard_toggle_focus"
bind "END" "scoreboard_profile"
bind "PGUP" "scoreboard_up"
bind "PGDN" "scoreboard_down"
bind "PAUSE" "pause"
bind "LSHIFT" "+duck"
bind "LALT" "+toggle_duck"
// bind "F10" "jpeg"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+zoom"
bind "MOUSE3" "+offhand2"
bind "MOUSE4" "+offhand1"
bind "MOUSE5" "+offhand0"
bind "MWHEELUP" "+reload"
bind "MWHEELDOWN" "+weaponCycle"
// bind "0" "toggle hudchat_visibility 0 1"
// bind "1" "toggle cl_showpos 1 0" // Shows player position, velocity, and view angle.
// bind "2" "toggle cl_showfps 4 0" // Shows FPS using Titanfall's counter.
bind "5" "exec personal_settings.cfg"
bind "6" "exec main.cfg"
bind "7" "exec demo_config.cfg"
bind "8" "exec potato.cfg"
bind "9" "exec dev.cfg"
//-------------------------------------------------------------------------------------//
// Miscellaneous //
// Hold to view Scoreboard
bind "TAB" "+scores"
alias +scores "+showscores"
alias -scores "+showscores"
//A one liner for the same: bind "TAB" "alias +scores \"+showscores\"; alias -scores \"+showscores\"; +scores"
// Double tap X to eject
bind "x" "+quickeject"
alias +quickeject "+scriptCommand1; TitanEject1; TitanEject2; TitanEject3; +use; -use; +use"
alias -quickeject "-scriptCommand1; -use"
//A one liner for the same: bind "x" "alias +quickeject "+scriptCommand1; TitanEject1; TitanEject2; TitanEject3; +use; -use; +use"; alias -quickeject "-scriptCommand1; -use"; +quickeject"
// Hold Left ALT to Walk. Credits to Aoloach#6928.
alias "sprinttype0" "autosprint_type 0"
alias "normalholdwalk" "-forward2; autosprint_type 0; +forward2"
alias "disableautowalk" "alias "+holdwalk sprinttype0"
alias "enableautowalk" "alias +holdwalk normalholdwalk"
alias "+holdwalk" "normalholdwalk"
alias "-holdwalk" "autosprint_type 1"
// bind "LCTRL" "+holdwalk"
alias "+forward2" "+forward; enableautowalk"
alias "-forward2" "-forward; disableautowalk"
bind "w" "+forward2; dof_enable 0"
bind "LCTRL" "+holdwalk"
// A quick one liner for that achieves the same task:
//bind "LCTRL" "alias "sprinttype0" "autosprint_type 0"; alias "normalholdwalk" "-forward2; autosprint_type 0; +forward2"; alias "disableautowalk" "alias "+holdwalk sprinttype0"; alias "enableautowalk" "alias +holdwalk normalholdwalk"; alias "+holdwalk" "normalholdwalk"; alias "-holdwalk" "autosprint_type 1"; alias "+forward2" "+forward; enableautowalk"; alias "-forward2" "-forward; disableautowalk"; bind "w" "+forward2; dof_enable 0; +holdwalk""
//bind "LCTRL" "alias "sprinttype0" "autosprint_type 0"; alias "normalholdwalk" "-forward2; autosprint_type 0; +forward2"; alias "disableautowalk" "alias "+holdwalk sprinttype0"; alias "enableautowalk" "alias +holdwalk normalholdwalk"; alias "+holdwalk" "normalholdwalk"; alias "-holdwalk" "autosprint_type 1"; alias "+forward2" "+forward; enableautowalk"; alias "-forward2" "-forward; disableautowalk"; bind "w" "+forward2; dof_enable 0"; +holdwalk"
// Decreases FOV when zoomed in. Press Q to toggle on and off.
// EDIT: This is illegal and against pug rules. Do not use.
// bind "mouse2" "+sens"
// alias +sens "cl_fovScale 1.1375; +zoom" // 80 fov when zoomed in
// alias -sens "cl_fovScale 1.275; -zoom" // 90 fov when zoomed out
// bind "q" "exec defaultm2.cfg"
//-------------------------------------------------------------------------------------//
// Xbox Controller //
bind "A_BUTTON" "+ability 5"
bind "B_BUTTON" "+ability 9"
bind "X_BUTTON" "+useandreload"
bind "Y_BUTTON" "+ability 7"
bind "L_SHOULDER" "+ability 4"
bind "R_SHOULDER" "+ability 8"
bind "BACK" "+showscores"
bind "START" "ingamemenu_activate"
bind "STICK1" "+speed"
bind "STICK2" "+melee"
bind "UP" "+scriptcommand1"
bind "RIGHT" "scoreboard_focus"
bind "DOWN" "+ability 1"
bind "LEFT" "+ability 6"
bind "L_TRIGGER" "+zoom"
bind "R_TRIGGER" "+attack"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment