Create a gist now

Instantly share code, notes, and snippets.

@Avaray /jump.cfg
Last active Sep 11, 2017

What would you like to do?
TF2 (Team Fortress 2) Jump Script with Ammo and Health Regeneration
// ----- INSTALLATION GUIDE
// 1. Copy jump.cfg file into directory:
// STEAM/steamapps/common/Team Fortress 2/tf/cfg
// or
// STEAM/steamapps/common/Team Fortress 2/tf/custom/YOUR_NICE_DIRECTORY_NAME/cfg
// 2. Launch your home (Local) server
// 3. Join to team, pick your class (Soldier? Demo? Pyro?)
// 4. Open console and type "exec jump"
// 5. Play
//
// If you dont know how to open console in game check my Guides @steamcommunity
// EN: http://steamcommunity.com/sharedfiles/filedetails/?id=217543736
// PL: http://steamcommunity.com/sharedfiles/filedetails/?id=153692265
// ----- SERVER SETTINGS (IMPORTANT SETTINGS)
sv_cheats "1"
sv_allow_wait_command "1"
tf_weapon_criticals "0"
tf_damage_disablespread "1"
tf_use_fixed_weaponspreads "1"
mp_disable_respawn_times "1"
mp_waitingforplayers_cancel "1"
// ----- AMMO AND HEALTH REGENERATION (EVERY 3 FRAMES PER SECOND)
alias "regen" "impulse 101; wait 3; regen"
regen
// ---- PREVENT FROM DYING
buddha
// ----- TELEPORTS (SAVE AND LOAD POSITIONS, UP TO FIVE SAVES)
// Example: ALT + F1 will save first position under F1 button.
// F1 button will load first saved position.
con_timestamp "0"
con_logfile console.log
bind "F1" "gotoPosition1"
bind "F2" "gotoPosition2"
bind "F3" "gotoPosition3"
bind "F4" "gotoPosition4"
bind "F5" "gotoPosition5"
bind "ALT" "+savePosition"
alias "+savePosition" "bind F1 savePosition1; bind F2 savePosition2; bind F3 savePosition3; bind F4 savePosition4; bind F5 savePosition5"
alias "-savePosition" "bind F1 gotoPosition1; bind F2 gotoPosition2; bind F3 gotoPosition3; bind F4 gotoPosition4; bind F5 gotoPosition5"
alias "resetLogfile" "con_logfile console.log"
alias "savePosition1" "con_logfile cfg/position1; getpos; resetLogfile;"
alias "savePosition2" "con_logfile cfg/position2; getpos; resetLogfile;"
alias "savePosition3" "con_logfile cfg/position3; getpos; resetLogfile;"
alias "savePosition4" "con_logfile cfg/position4; getpos; resetLogfile;"
alias "savePosition5" "con_logfile cfg/position5; getpos; resetLogfile;"
alias "gotoPosition1" "exec position1.log"
alias "gotoPosition2" "exec position2.log"
alias "gotoPosition3" "exec position3.log"
alias "gotoPosition4" "exec position4.log"
alias "gotoPosition5" "exec position5.log"
// ----- MESSAGE TO CONSOLE
echo "JUMP SCRIPT LOADED!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment