jump.tf Forums
Welcome B)

Show Keys Script

Jamien · 8 · 10725

Jamien

  • Newbie
  • *
    • Posts: 4
    • Frags: +0/-0
    • View Profile
I made it, then I made it better. Either download the cfg or copy paste your own then once you start an offline map type "exec skeys" in the console.

Code: [Select]
//Show keys for personal offline use. Also works in demos. Does not work with STV enabled.

//IMPORTANT! If you don't use a custom autoexec and want your controls to be fixed automatically when you quit delete the "//" from the next line
//fix;wait 3;host_writeconfig autoexec

sv_cheats 1

//Customize binds here
wait 5;bind W "+W"
wait 5;bind A "+A"
wait 5;bind S "+S"
wait 5;bind D "+D"
wait 5;bind ctrl "+C"
wait 5;bind space "+J"

//Type fix in console to change controls back to normal
alias fix "bind w +forward;bind S +back;bind A +moveleft;bind D +moveright;bind space +jump;bind ctrl +duck"


alias +W "+forward;ent_fire keycount add 2"
alias -W "-forward;ent_fire keycount subtract 2"

alias +A "+moveleft;ent_fire keycount2 add 1"
alias -A "-moveleft;ent_fire keycount2 subtract 1"

alias +S "+back;ent_fire keycount2 add 2"
alias -S "-back;ent_fire keycount2 subtract 2"

alias +D "+moveright;ent_fire keycount2 add 4"
alias -D "-moveright;ent_fire keycount2 subtract 4"

alias +C "+duck;ent_fire keycount add 1"
alias -C "-duck;ent_fire keycount subtract 1"

alias +J "+jump;ent_fire keycount add 4"
alias -J "-jump;ent_fire keycount subtract 4"

ent_fire game_text kill
ent_fire logic_timer addoutput "classname timer_old"
ent_fire math_counter addoutput "classname counter_old"
ent_fire logic_case addoutput "classname case_old"

wait 10;give game_text
wait 15;ent_fire game_text addoutput "classname keytext"
wait 20;ent_fire keytext addoutput "channel 1"
wait 20;ent_fire keytext addoutput "x .48"
wait 20;ent_fire keytext addoutput "y .465"
wait 20;ent_fire keytext addoutput "holdtime .5"
wait 20;ent_fire keytext addoutput "color 0 255 0"
wait 20;ent_fire keytext addoutput "spawnflags 1"

wait 25;give game_text
wait 30;ent_fire game_text addoutput "classname keytext2"
wait 35;ent_fire keytext2 addoutput "channel 2"
wait 35;ent_fire keytext2 addoutput "x .477"
wait 35;ent_fire keytext2 addoutput "y .486"
wait 35;ent_fire keytext2 addoutput "holdtime .5"
wait 35;ent_fire keytext2 addoutput "color 0 255 0"
wait 35;ent_fire keytext2 addoutput "spawnflags 1"

wait 40;give logic_case
wait 45;ent_fire logic_case addoutput "classname keycase1"
wait 50;ent_fire keycase1 addoutput "case01 0"
wait 50;ent_fire keycase1 addoutput "case02 1"
wait 50;ent_fire keycase1 addoutput "case03 2"
wait 50;ent_fire keycase1 addoutput "case04 3"
wait 50;ent_fire keycase1 addoutput "case05 4"
wait 50;ent_fire keycase1 addoutput "case06 5"
wait 50;ent_fire keycase1 addoutput "case07 6"
wait 50;ent_fire keycase1 addoutput "case08 7"

wait 55;ent_fire keycase1 addoutput "oncase01 keytext,addoutput,message  "
wait 55;ent_fire keycase1 addoutput "oncase02 keytext,addoutput,message C"
wait 55;ent_fire keycase1 addoutput "oncase03 keytext,addoutput,message   W"
wait 55;ent_fire keycase1 addoutput "oncase04 keytext,addoutput,message CW"
wait 55;ent_fire keycase1 addoutput "oncase05 keytext,addoutput,message     J"
wait 55;ent_fire keycase1 addoutput "oncase06 keytext,addoutput,message C  J"
wait 55;ent_fire keycase1 addoutput "oncase07 keytext,addoutput,message   WJ"
wait 55;ent_fire keycase1 addoutput "oncase08 keytext,addoutput,message CWJ"

wait 57;ent_fire keycase1 addoutput "oncase01 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase02 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase03 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase04 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase05 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase06 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase07 keytext,display,1,.03,-1"
wait 57;ent_fire keycase1 addoutput "oncase08 keytext,display,1,.03,-1"

wait 60;give logic_case
wait 65;ent_fire logic_case addoutput "classname keycase2"
wait 70;ent_fire keycase2 addoutput "case01 0"
wait 70;ent_fire keycase2 addoutput "case02 1"
wait 70;ent_fire keycase2 addoutput "case03 2"
wait 70;ent_fire keycase2 addoutput "case04 3"
wait 70;ent_fire keycase2 addoutput "case05 4"
wait 70;ent_fire keycase2 addoutput "case06 5"
wait 70;ent_fire keycase2 addoutput "case07 6"
wait 70;ent_fire keycase2 addoutput "case08 7"

wait 75;ent_fire keycase2 addoutput "oncase01 keytext2,addoutput,message  "
wait 75;ent_fire keycase2 addoutput "oncase02 keytext2,addoutput,message A"
wait 75;ent_fire keycase2 addoutput "oncase03 keytext2,addoutput,message    S"
wait 75;ent_fire keycase2 addoutput "oncase04 keytext2,addoutput,message A S"
wait 75;ent_fire keycase2 addoutput "oncase05 keytext2,addoutput,message       D"
wait 75;ent_fire keycase2 addoutput "oncase06 keytext2,addoutput,message A    D"
wait 75;ent_fire keycase2 addoutput "oncase07 keytext2,addoutput,message    S D"
wait 75;ent_fire keycase2 addoutput "oncase08 keytext2,addoutput,message A S D"

wait 77;ent_fire keycase2 addoutput "oncase01 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase02 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase03 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase04 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase05 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase06 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase07 keytext2,display,1,.03,-1"
wait 77;ent_fire keycase2 addoutput "oncase08 keytext2,display,1,.03,-1"

wait 75;give math_counter
wait 80;ent_fire math_counter addoutput "classname keycount"
wait 85;ent_fire keycount setvalue 0
wait 85;ent_fire keycount addoutput "outvalue keycase1,invalue"
wait 85;ent_fire keycount addoutput "ongetvalue keycase1,invalue"

wait 85;give math_counter
wait 90;ent_fire math_counter addoutput "classname keycount2"
wait 95;ent_fire keycount2 setvalue 0
wait 95;ent_fire keycount2 addoutput "outvalue keycase2,invalue"
wait 95;ent_fire keycount2 addoutput "ongetvalue keycase2,invalue"

wait 100;give logic_timer
wait 105;ent_fire logic_timer addoutput "classname keytimer"
wait 110;ent_fire keytimer refiretime .1
wait 110;ent_fire keytimer addoutput "ontimer keytex*,display"

wait 115;echo "You're a beautiful person and I love you!"


Dr. Heinz

  • needs to stop posting
  • *
    • Posts: 1036
    • Frags: +0/-0
  • Relax.
    • View Profile

duppy

  • Newbie
  • *
    • Posts: 18
    • Frags: +0/-0
    • View Profile
Awesome script Jamien...you rock!  Really clever use for math too.  Would it be possible to add mouse1 and mouse2...could be useful for teaching demo jumping to someone.

Also, if you got time, could you maybe re-post some of your other scripts like regen, timer, and save/teleport?
« Last Edit: January 29, 2014, 12:38:39 PM by duppy »


Jamien

  • Newbie
  • *
    • Posts: 4
    • Frags: +0/-0
    • View Profile
aint my forums you can move it wherever you want.

Here's a version that shows mouse clicks
Code: [Select]
//Show keys for personal offline use. Also works in demos. Does not work with STV enabled.

//IMPORTANT! If you don't use a custom autoexec and want your controls to be fixed automatically when you quit delete the "//" from the next line
//fix;wait 3;host_writeconfig autoexec

sv_cheats 1

//Customize binds here
wait 5;bind W "+W"
wait 5;bind A "+A"
wait 5;bind S "+S"
wait 5;bind D "+D"
wait 5;bind ctrl "+C"
wait 5;bind space "+J"
wait 5;bind mouse1 "+M1"
wait 5;bind mouse2 "+M2"


//Type fix in console to change controls back to normal
alias fix "bind w +forward;bind S +back;bind A +moveleft;bind D +moveright;bind space +jump;bind ctrl +duck;bind mouse1 +attack;bind mouse2 +attack2"


alias +M1 "+attack;ent_fire keycount add 8"
alias -M1 "-attack;ent_Fire keycount subtract 8"

alias +M2 "+attack2;ent_fire keycount2 add 8"
alias -M2 "-attack2;ent_Fire keycount2 subtract 8"

alias +W "+forward;ent_fire keycount add 2"
alias -W "-forward;ent_fire keycount subtract 2"

alias +A "+moveleft;ent_fire keycount2 add 1"
alias -A "-moveleft;ent_fire keycount2 subtract 1"

alias +S "+back;ent_fire keycount2 add 2"
alias -S "-back;ent_fire keycount2 subtract 2"

alias +D "+moveright;ent_fire keycount2 add 4"
alias -D "-moveright;ent_fire keycount2 subtract 4"

alias +C "+duck;ent_fire keycount add 1"
alias -C "-duck;ent_fire keycount subtract 1"

alias +J "+jump;ent_fire keycount add 4"
alias -J "-jump;ent_fire keycount subtract 4"

ent_fire game_text kill
ent_fire logic_timer addoutput "classname timer_old"
ent_fire math_counter addoutput "classname counter_old"
ent_fire logic_case addoutput "classname case_old"

wait 20;give game_text
wait 25;ent_fire game_text addoutput "classname keytext"
wait 30;ent_fire keytext addoutput "channel 1"
wait 30;ent_fire keytext addoutput "x .48"
wait 30;ent_fire keytext addoutput "y .465"
wait 30;ent_fire keytext addoutput "holdtime .5"
wait 30;ent_fire keytext addoutput "color 0 255 0"
wait 30;ent_fire keytext addoutput "spawnflags 1"

wait 45;give game_text
wait 50;ent_fire game_text addoutput "classname keytext2"
wait 55;ent_fire keytext2 addoutput "channel 2"
wait 55;ent_fire keytext2 addoutput "x .477"
wait 55;ent_fire keytext2 addoutput "y .486"
wait 55;ent_fire keytext2 addoutput "holdtime .5"
wait 55;ent_fire keytext2 addoutput "color 0 255 0"
wait 55;ent_fire keytext2 addoutput "spawnflags 1"

wait 70;give logic_case
wait 75;ent_fire logic_case addoutput "classname keycase1"
wait 80;ent_fire keycase1 addoutput "case01 0"
wait 80;ent_fire keycase1 addoutput "case02 1"
wait 80;ent_fire keycase1 addoutput "case03 2"
wait 80;ent_fire keycase1 addoutput "case04 3"
wait 80;ent_fire keycase1 addoutput "case05 4"
wait 80;ent_fire keycase1 addoutput "case06 5"
wait 80;ent_fire keycase1 addoutput "case07 6"
wait 80;ent_fire keycase1 addoutput "case08 7"
wait 80;ent_fire keycase1 addoutput "case09 8"
wait 80;ent_fire keycase1 addoutput "case10 9"
wait 80;ent_fire keycase1 addoutput "case11 10"
wait 80;ent_fire keycase1 addoutput "case12 11"
wait 80;ent_fire keycase1 addoutput "case13 12"
wait 80;ent_fire keycase1 addoutput "case14 13"
wait 80;ent_fire keycase1 addoutput "case15 14"
wait 80;ent_fire keycase1 addoutput "case16 15"

wait 95;ent_fire keycase1 addoutput "oncase01 keytext,addoutput,message  "
wait 95;ent_fire keycase1 addoutput "oncase02 keytext,addoutput,message C"
wait 95;ent_fire keycase1 addoutput "oncase03 keytext,addoutput,message   W"
wait 95;ent_fire keycase1 addoutput "oncase04 keytext,addoutput,message CW"
wait 95;ent_fire keycase1 addoutput "oncase05 keytext,addoutput,message     J"
wait 95;ent_fire keycase1 addoutput "oncase06 keytext,addoutput,message C   J"
wait 95;ent_fire keycase1 addoutput "oncase07 keytext,addoutput,message   WJ"
wait 95;ent_fire keycase1 addoutput "oncase08 keytext,addoutput,message CWJ"
wait 95;ent_fire keycase1 addoutput "oncase09 keytext,addoutput,message        M1"
wait 95;ent_fire keycase1 addoutput "oncase10 keytext,addoutput,message C      M1"
wait 95;ent_fire keycase1 addoutput "oncase11 keytext,addoutput,message   W   M1"
wait 95;ent_fire keycase1 addoutput "oncase12 keytext,addoutput,message CW   M1"
wait 95;ent_fire keycase1 addoutput "oncase13 keytext,addoutput,message     J M1"
wait 95;ent_fire keycase1 addoutput "oncase14 keytext,addoutput,message C   J M1"
wait 95;ent_fire keycase1 addoutput "oncase15 keytext,addoutput,message   WJ M1"
wait 95;ent_fire keycase1 addoutput "oncase16 keytext,addoutput,message CWJ M1"

wait 107;ent_fire keycase1 addoutput "oncase01 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase02 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase03 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase04 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase05 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase06 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase07 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase08 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase09 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase10 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase11 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase12 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase13 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase14 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase15 keytext,display,1,.03,-1"
wait 107;ent_fire keycase1 addoutput "oncase16 keytext,display,1,.03,-1"

wait 120;give logic_case
wait 125;ent_fire logic_case addoutput "classname keycase2"
wait 130;ent_fire keycase2 addoutput "case01 0"
wait 130;ent_fire keycase2 addoutput "case02 1"
wait 130;ent_fire keycase2 addoutput "case03 2"
wait 130;ent_fire keycase2 addoutput "case04 3"
wait 130;ent_fire keycase2 addoutput "case05 4"
wait 130;ent_fire keycase2 addoutput "case06 5"
wait 130;ent_fire keycase2 addoutput "case07 6"
wait 130;ent_fire keycase2 addoutput "case08 7"
wait 140;ent_fire keycase2 addoutput "case09 8"
wait 140;ent_fire keycase2 addoutput "case10 9"
wait 140;ent_fire keycase2 addoutput "case11 10"
wait 140;ent_fire keycase2 addoutput "case12 11"
wait 140;ent_fire keycase2 addoutput "case13 12"
wait 140;ent_fire keycase2 addoutput "case14 13"
wait 140;ent_fire keycase2 addoutput "case15 14"
wait 140;ent_fire keycase2 addoutput "case16 15"

wait 150;ent_fire keycase2 addoutput "oncase01 keytext2,addoutput,message  "
wait 150;ent_fire keycase2 addoutput "oncase02 keytext2,addoutput,message A"
wait 150;ent_fire keycase2 addoutput "oncase03 keytext2,addoutput,message    S"
wait 150;ent_fire keycase2 addoutput "oncase04 keytext2,addoutput,message A S"
wait 150;ent_fire keycase2 addoutput "oncase05 keytext2,addoutput,message       D"
wait 150;ent_fire keycase2 addoutput "oncase06 keytext2,addoutput,message A    D"
wait 150;ent_fire keycase2 addoutput "oncase07 keytext2,addoutput,message    S D"
wait 150;ent_fire keycase2 addoutput "oncase08 keytext2,addoutput,message A S D"
wait 150;ent_fire keycase2 addoutput "oncase09 keytext2,addoutput,message          M2"
wait 150;ent_fire keycase2 addoutput "oncase10 keytext2,addoutput,message A       M2"
wait 150;ent_fire keycase2 addoutput "oncase11 keytext2,addoutput,message    S    M2"
wait 150;ent_fire keycase2 addoutput "oncase12 keytext2,addoutput,message A S    M2"
wait 150;ent_fire keycase2 addoutput "oncase13 keytext2,addoutput,message       D M2"
wait 150;ent_fire keycase2 addoutput "oncase14 keytext2,addoutput,message A    D M2"
wait 150;ent_fire keycase2 addoutput "oncase15 keytext2,addoutput,message    S D M2"
wait 150;ent_fire keycase2 addoutput "oncase16 keytext2,addoutput,message A S D M2"

wait 160;ent_fire keycase2 addoutput "oncase01 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase02 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase03 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase04 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase05 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase06 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase07 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase08 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase09 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase10 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase11 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase12 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase13 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase14 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase15 keytext2,display,1,.03,-1"
wait 160;ent_fire keycase2 addoutput "oncase16 keytext2,display,1,.03,-1"

wait 170;give math_counter
wait 180;ent_fire math_counter addoutput "classname keycount"
wait 185;ent_fire keycount setvalue 0
wait 185;ent_fire keycount addoutput "outvalue keycase1,invalue"
wait 185;ent_fire keycount addoutput "ongetvalue keycase1,invalue"

wait 200;give math_counter
wait 210;ent_fire math_counter addoutput "classname keycount2"
wait 215;ent_fire keycount2 setvalue 0
wait 215;ent_fire keycount2 addoutput "outvalue keycase2,invalue"
wait 215;ent_fire keycount2 addoutput "ongetvalue keycase2,invalue"

wait 220;give logic_timer
wait 230;ent_fire logic_timer addoutput "classname keytimer"
wait 230;ent_fire keytimer refiretime .1
wait 230;ent_fire keytimer addoutput "ontimer keytex*,display"

wait 250;echo "You're a beautiful person and I love you!"


Dr. Heinz

  • needs to stop posting
  • *
    • Posts: 1036
    • Frags: +0/-0
  • Relax.
    • View Profile

uNKnown

  • Novice
  • **
    • Posts: 65
    • Frags: +0/-0
  • Damn son..
    • View Profile
    • Youtube

obsidiian

  • Administrator
  • Proficient
  • *****
    • Posts: 337
    • Frags: +1/-0
    • View Profile
Would it be possible to make a less invasive version of this script?

Edit:  I fixed it myself
« Last Edit: July 19, 2014, 01:21:45 AM by obsidiian »


mawa#need demos for jumpmovie

  • Newbie
  • *
    • Posts: 2
    • Frags: +0/-0
    • View Profile
thx great it works offline but it wont work wigh demos =/ even if the scrip text shows up on console