Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ---------------------------------------------------------------------------------------------------------------
- // Personal config for automatic setup of modern WASD controls in modern source ports. Also, info & handy scripts!
- // Made for Zandronum, but also works with ZDoom and GZDoom with a few minor tweaks explained below.
- //
- // http://pastebin.com/3G0a4jJC
- // ---------------------------------------------------------------------------------------------------------------
- // How to Use:
- // 1. Hit the Download button above, or copy and paste everything into Notepad. Tweak any settings you like.
- // 2. Rename the file to "autoexec.cfg", and put it in your Zandronum/ZDoom/GZDoom folder.
- // 3. Done! When the game starts up, all commands listed will run ("comment marks" (//) skips the rest of a line).
- // If you did it right, you will see "AUTOEXEC OK" when the game starts or you press the "~" key.
- // ---------------------------------------------------------------------------------------------------------------
- // Quick Tips:
- // 1. Z& and ZDoom use different commands for chatting. Adjust accordingly below.
- // 2. Tweak your mouse sensitivity settings in-game through the console (~) or below. This offers finer
- // adjustment than the menu sliders.
- // ---------------------------------------------------------------------------------------------------------------
- // ---------------------------------------------------------------------------------------------------------------
- // Keybinds
- // ---------------------------------------------------------------------------------------------------------------
- // Modify your controls here if desired. This layout should work for the majority of people and mods.
- // If you really want to keyboard-only, you can turn with the arrow keys and bind downarrow to turn180. It works.
- // Comment these lines if used with Zandronum.
- //bind enter messagemode
- //bind r +reload
- //bind mouse4 +zoom
- // Comment these lines if used with GZDoom.
- bind enter say
- bind \ say_team
- bind pgup vote_yes
- bind pgdn vote_no
- bind mouse1 +attack
- bind mouse2 +altattack
- // bind mouse2 +use // Players not interested in mods may opt for mouse2 to use or jump.
- // bind mouse2 +jump2
- bind mwheelup weapnext
- bind mwheeldown weapprev
- bind e +use
- bind w +forward
- bind a +moveleft
- bind s +back
- bind d +moveright
- bind shift +speed
- bind space +jump2 // Now doubles as a fly-up key. Commented by default for laptop keyboarders by request.
- bind ctrl +crouch2 // Now doubles as a fly-down key.
- bind capslock alwaysrunoff // Does its job silently.
- bind z invprev
- bind c invnext
- bind x invuse
- bind tab +showscores
- bind q togglemap
- bind 1 "slot 1"
- bind 2 "slot 2"
- bind 3 "slot 3"
- bind 4 "slot 4"
- bind 5 "slot 5"
- bind 6 "slot 6"
- bind 7 "slot 7"
- bind 8 "slot 8"
- bind 9 "slot 9"
- bind 0 "slot 0"
- bind ` toggleconsole
- bind f1 menu_help
- bind f2 menu_save
- bind f3 menu_load
- bind f4 in_restartraw
- bind f5 menu_player
- bind f6 quicksave
- bind f7 capfpson // Toggles the 35fps framerate cap.
- bind f8 freelookoff // Toggles freelook and autoaim between classic and newschool.
- bind f9 quickload
- bind f10 screenshot
- bind f11 hudscaleon // Toggles HUD scaling. Useful if you play mods with custom HUDs.
- bind f11 hudscaleon // Toggles HUD scaling. Useful if you play mods with custom HUDs.
- bind f12 spynext
- bind - sizedown
- bind = sizeup
- bind kp+ statusreport // Says health, ammo and armour in chat. Useful for ZDoom multiplay.
- bind kp* in_restartdin // Press this when the mouse messes up, as it often does in fullscreen.
- bind kp- in_restartraw // Ditto, but for raw mouse input.
- bind del confirmdel
- doublebind del kill // Press the key twice to join spectators in Zandronum.
- mapbind uparrow +am_panup
- mapbind downarrow +am_pandown
- mapbind leftarrow +am_panleft
- mapbind rightarrow +am_panright
- mapbind g am_togglegrid
- mapbind - +am_zoomout
- mapbind = +am_zoomin
- mapbind f am_togglefollow
- mapbind m am_setmark
- mapbind backspace am_clearmarks
- // ---------------------------------------------------------------------------------------------------------------
- // Mouse settings
- // ---------------------------------------------------------------------------------------------------------------
- //mouse_sensitivity 1 // Uncomment for Zandronum.
- //m_yaw 0.325120 // Uncomment for Zandronum.
- //m_yaw 0.325120 // Uncomment for Zandronum.
- //m_sensitivity_x 0.6502 // Uncomment for GZDoom.
- //m_sensitivity_y 0.6502 // Uncomment for GZDoom.
- // Use this site: https://www.mouse-sensitivity.com/
- cl_oldfreelooklimit 0 // If 1, clamps vertical aim in Software, limiting the warping effect.
- cl_respawnonfire 0 // Disable respawning with fire, which alerts monsters. Press "use".
- in_mouse 0 // Mouse input method. 0 = Auto, 1=WinAPI, 2=DirectInput, 3=Raw.
- m_use_mouse 1 // Automatically enables "touchscreen-like" menu control.
- lookstrafe 0 // Keep off.
- m_filter 0 // Keep off, always.
- m_forward 0 // Disables forward/back movement from the mouse when freelook is off.
- m_noprescale 0 // def. 0. If 1, mouse input does not scale to Doom's aspect ratio.
- m_side 1 // Mouse strafing when holding +strafe.
- smooth_mouse 0 // def. 0. If 1, filters mouse input like keyboard aim.
- sv_smartaim 2 // 2 = Autoaim targets monsters before shootables and friendlies.
- use_mouse 1 // Duh
- // ---------------------------------------------------------------------------------------------------------------
- // Graphics/Sound settings
- // ---------------------------------------------------------------------------------------------------------------
- addrocketexplosion 0 // If 1, uses brighter, additive blending for rocket explosions.
- cl_maxdecals 128 // def. 1024.
- r_clearbuffer 0 // Changes how the game deals with Hall of Mirror errors. See wiki.
- r_drawplayersprites 1 // Just to be sure if game is quit while using zoom script.
- r_drawvoxels 0 // Particularly because GZDoom handles voxels abysmally.
- r_maxparticles 2000 // def. 4000.
- r_mirror_recursions 1 // Enables mirrors, but no recursive reflections. 0 = no mirrors.
- r_skyboxes 1 // If 0, disables 3D skyboxes, which can provide serious FPS boosts.
- telezoom 1 // If 1, uses zoom effect when teleporting. (G/ZDoom only)
- transsouls 1.0 // Lost Soul transparency. Values are clamped to 0.5 through 1.0.
- vid_attachedsurfaces 0 // If you see patches of pure white/black, set this to 1.
- vid_cursor "none" // General cursor. (G/ZDoom only)
- vid_hwaalines 0 // If 1, hardware AA of automap lines. Preferential, some like it off.
- vid_maxfps 144 // ZDoom only. Reduce excessive hardware usage without vsync.
- vid_noblitter 1 // Only turn this to 0 if you encounter video problems in windowed.
- vid_palettehack 0 // If 1, can help with buggy video drivers. Otherwise, keep off.
- vid_refreshrate 0 // If not 0, overrides Windows auto RR selection in fullscreen mode.
- vid_vsync 0 // 1 introduces a variable amount of input lag. Try vid_maxfps:
- // to your refresh rate + 2 (60Hz monitor + 2 = 62fps),
- // or your refresh rate * 1.25 (60hz monitor * 1.25 = 75fps)
- // to minimize tearing if it bothers you.
- // snd_output "PulseAudio"
- // ---------------------------------------------------------------------------------------------------------------
- // Multiplayer and Network Settings
- // ---------------------------------------------------------------------------------------------------------------
- handicap 0 // Health subtraction on spawn.
- cl_connectsound 1 // If 1, makes a sound when someone connects. Might be annoying.
- cl_ticsperupdate 2 // Z& def. 3, ZDaemon def. 2. Packet send/recieve interval in tics.
- cl_noprediction 0 // If 1, disables lag compensation ("Unlagged").
- cl_hidecountry 1 // Hides your country on connect. (Z& only, no effect on servers that
- // disable hiding of countries)
- disableautosave 0 // 0 = Saves entering a new level and whenever the level scripts it.
- // 1 = Autosave only when the level scripts it.
- // For pistol start playthroughs, this is probably best since
- // starting the map is as simple as pressing del, then use/fire.
- // 2 = Never ever autosave.
- cl_allycolor "40 cf 00" // If cl_overrideplayercolors = 1, allies will be green.
- cl_enemycolor "bf 8f 4f" // If cl_overrideplayercolors = 1, enemies will be tan.
- cl_overrideplayercolors 0 // If 1, makes all players take colours specified above.
- // Automap options
- // ------------------------------------
- am_overlay 0 // 0 = Normal map, 1 = overlay + normal, 2 = only overlay.
- am_drawmapback 0 // If 1, draws image behind the automap on wads that support them.
- am_map_secrets 1 // If 1, uses a special colour for "secret" sectors.
- am_rotate 0 // If 1, rotates the automap around you. Set to 0 for a fixed automap.
- am_showitems 1 // If 1, shows number of "special" pickups on the map.
- am_showkeys 1 // If 1, marks keys on the map when using the IDDT cheat.
- am_showmonsters 1 // If 1, shows number of monsters in the map.
- am_showsecrets 1 // If 1, shows number of secrets found and total in the map.
- am_showtime 1 // If 1, shows time spent on map.
- am_showtotaltime 1 // If 1, shows time spent playing.
- am_textured 0 // If 1, enables texturing of sectors on the automap. (Zdoom only)
- // Sectors
- am_backcolor "00 00 00"
- am_cdwallcolor "09 14 06" // Two-sided lines that have a different ceiling height on each side.
- am_efwallcolor "43 d3 5e" // 3D floor boundaries.
- am_fdwallcolor "1f 43 17" // Two-sided lines that have a different floor height on each side.
- am_interlevelcolor "ff 6a 00" // Level exit.
- am_intralevelcolor "ff ff ff" // Teleport.
- am_lockedcolor "56 56 56" // Unknown key locked door/switch.
- am_notseencolor "16 16 16"
- am_secretsectorcolor "cc 28 cc"
- am_secretwallcolor "cc 28 cc"
- am_specialwallcolor "66 00 00" // Action-special (non-door) trigger lines.
- am_tswallcolor "20 20 20" // Cheat-only, lines that don't have different ceiling/floor heights.
- am_wallcolor "4b 9f 3f" // One-sided walls.
- // Things
- am_thingcolor "30 30 30"
- am_thingcolor_friend "5f cf 57"
- am_thingcolor_item "53 53 ff"
- am_thingcolor_monster "ff 6a 00"
- // Misc.
- am_gridcolor "10 10 10"
- am_xhaircolor "d0 d4 e0"
- am_yourcolor "ff ff ff"
- // Overlay Map
- am_ovotherwallscolor "00 88 44"
- am_ovtelecolor "ff ff ff"
- am_ovthingcolor "e8 88 00"
- am_ovthingcolor_friend "e8 88 00"
- am_ovthingcolor_item "e8 88 00"
- am_ovthingcolor_monster "e8 88 00"
- am_ovunseencolor "00 22 6e"
- am_ovwallcolor "00 ff 00"
- am_ovyourcolor "fc e8 d8"
- // ---------------------------------------------------------------------------------------------------------------
- // Message settings
- // ---------------------------------------------------------------------------------------------------------------
- // List of TEXTCOLO colour numbers:
- // 0 brick red | 1 tan | 2 gray | 3 green | 4 brown | 5 gold | 6 red |
- // 7 blue | 8 orange | 9 white | 10 yellow | 11 default | 12 black | 13 light blue |
- // 14 cream | 15 olive | 16 dark green | 17 dark red | 18 dark brown | 19 purple | 20 dark gray |
- // 21 cyan |
- chat_substitution 1 // If 1, allows chat shortcuts such as $health, $weapon, and whatnot.
- con_virtualwidth 640 // Adjust width and height for your aspect ratio and tastes.
- con_virtualheight 400
- con_scaletext_usescreenratio 1 // Uses the whole screen for text, instead of a 4:3 box.
- msg 0 // Minimum message priority level. Basically, 1 = No item pick msgs.
- msg0color 11 // Item pickup colour
- msg1color 5 // Obituary colour
- msg2color 2 // Critical messages (like server messages)
- msg3color 3 // Chat
- msg4color 16 // Teamchat
- msgmidcolor 2 // Center HUD messages
- msgmidcolor2 2 // Global center HUD messages
- secretmessage "Found a secret area!" // Because Doom64/Quake
- show_messages 1 // Dur
- show_obituaries 1 // Death messages.
- // ---------------------------------------------------------------------------------------------------------------
- // EXTERNAL FILE SETTINGS
- // ---------------------------------------------------------------------------------------------------------------
- demo_compress 1 // Compresses recorded demos.
- png_gamma 1 // Uses a gamma of 1 for screenshots.
- png_level 7 // PNG compression: from fastest (0) to smallest filesize (9).
- screenshot_quiet 0 // Displays screenshot message.
- screenshot_type png // Duh
- // screenshot_dir ".\screenshots"
- // Location to place taken screenshots. def. "".
- // ---------------------------------------------------------------------------------------------------------------
- // Optional Scripts
- // ---------------------------------------------------------------------------------------------------------------
- // Speedflying/swimming
- // ------------------------------------
- alias +jump2 "+jump; +moveup"
- alias -jump2 "-jump; -moveup"
- alias +crouch2 "+crouch; +movedown" // Doubles vertical movement speed in airborne and water environments.
- alias -crouch2 "-crouch; -movedown"
- // Setting Toggle Hotkeys
- // ------------------------------------
- alias capfpson "cl_capfps 1; echo Framerate Capped (35fps).; rebind capfpsoff"
- alias capfpsoff "cl_capfps 0; echo Framerate Uncapped.; rebind capfpson"
- alias freelookon "freelook 1; autoaim 0; echo Freelook Enabled.; rebind freelookoff"
- alias freelookoff "freelook 0; autoaim 5000; centerview; echo Freelook Disabled.; rebind freelookon"
- alias hudscaleon "hud_scale -1; st_scale -1; echo HUD scaled to screen.; rebind hudscaleoff"
- alias hudscaleoff "hud_scale 0; st_scale 0; echo HUD scaling off.; rebind hudscaleon"
- alias alwaysrunon "cl_run 1; rebind alwaysrunoff"
- alias alwaysrunoff "cl_run 0; rebind alwaysrunon"
- // Demo skip shortcuts
- // ------------------------------------
- alias demo_skip_30s "demo_skiptics 2100; echo \\cjDemo: Skipped thirty (30) seconds."
- alias demo_skip_1m "demo_skiptics 2100; echo \\cjDemo: Skipped one (1) minute."
- alias demo_skip_5m "demo_skiptics 10500; echo \\cjDemo: Skipped five (5) minutes."
- alias demo_skip_10m "demo_skiptics 105000; echo \\cjDemo: Skipped ten (10) minutes."
- alias demo_skip_20m "demo_skiptics 210000; echo \\cjDemo: Skipped twenty (20) minutes."
- // Clean screenshot [1]
- // ------------------------------------
- alias autocleanscreenshot "hidescreen; wait 18; playsound misc/chat2; screenshot; wait 18; resetscreen"
- alias hidescreen "r_drawplayersprites 0; screenblocks 12; cl_drawcoopinfo 0; show_messages 0"
- alias resetscreen "r_drawplayersprites 1; screenblocks 11; cl_drawcoopinfo 1; show_messages 1"
- // Testing Alias
- // ------------------------------------
- alias quickcheat "god; notarget; noclip; give weapons; give ammo; give health; give allmap"
- // Status Report Bind (Mostly for ZDoom netplay which doesn't have coopinfo)
- // ------------------------------------
- alias statusreport "say \"HP:$health AP:$armor $weapon:$ammocount\""
- // Del message
- // ------------------------------------
- alias confirmdel "echo Double-tap to kill."
- // Shortcuts for Zandronum 2.0 in_mouse bug
- // ------------------------------------
- alias in_restartraw "echo Reinitializing mouse... (RawInput); in_mouse 2; wait 5; use_mouse 0; wait 5; use_mouse 1; in_mouse 3; echo Done."
- alias in_restartdin "echo Reinitializing mouse... (DirectInput); in_mouse 3; wait 5; use_mouse 0; wait 5; use_mouse 1; in_mouse 2; echo Done."
- // Shortcut for hideous destructor footsteps.pk3
- // ------------------------------------
- alias fs_hd "fs_delay_mul 0.5; fs_volume_mul 2.5; movebob 0.025; rebind fs_normal; echo HD FS on"
- alias fs_normal "fs_delay_mul 0.7; fs_volume_mul 1.5; movebob 0.25; rebind fs_hd; echo HD FS off"
- // Just some extra predefined colours
- // ------------------------------------
- alias colordefault "color 40cf00"
- alias colorred "color ef0000"
- alias colordarkred "color bf0000"
- alias colordarkerred "color 800000"
- alias colorgold "color c08000"
- alias colorwhite "color f0f0f0"
- alias colortan "color bf8f4f"
- alias colorlighttan "color cf9f5f"
- alias colordarkbrown "color 8f5f2f"
- alias colorblack "color 606060"
- // ---------------------------------------------------------------------------------------------------------------
- // Script binds to ingame Controls menu (Zandronum only)
- // ---------------------------------------------------------------------------------------------------------------
- addkeysection "Autoexec.cfg: CVAR Toggles" autoexectoggles
- addmenukey "Freelook Toggle" freelookoff
- addmenukey "FPS Cap Toggle" capfpson
- addmenukey "HUD Scaling Toggle" hudscaleon
- addmenukey "Toggle Run (Silent)" alwaysrunoff
- addkeysection "Autoexec.cfg: Other" autoexecother
- addmenukey "Clean Screenshot" autocleanscreenshot
- addmenukey "Reconnect" reconnect
- addmenukey "Suicide" kill
- addmenukey "Tell Status" statusreport
- // ---------------------------------------------------------------------------------------------------------------
- // Display successful load and print hotkey help in console.
- // ---------------------------------------------------------------------------------------------------------------
- echo "\cd======= AUTOEXEC 23.10.12 OK. ======="
- echo "\cf== Custom Hotkeys: =="
- echo "\cfF1 = Help Screen"
- echo "\cfF2 = Save"
- echo "\cfF3 = Load"
- echo "\cfF4 = Options"
- echo "\cfF5 = Player Setup"
- echo "\cfF6 = Quicksave"
- echo "\cfF7 = Toggle FPS lock"
- echo "\cfF8 = Toggle Freelook"
- echo "\cfF9 = Quickload"
- echo "\cfF10 = Screenshot"
- echo "\cfF11 = Toggle HUD scaling"
- echo "\cfF12 = Spectate player"
- echo "\cfKeypad * = Restart mouse, when fullscreen breaks in Windows"
- echo "\cfDelete = Doubletap to kill"
- echo "\cf== Happy fragging! =="
- // Credits:
- // [1] Zdoom Wiki for the basic clean-screenshot scripts.
- // http://zdoom.org/wiki/Screenshot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement