GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Null-Cancelling Movement

A Config Script for Team Fortress 2

20 630 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Null-Cancelling Movement script
// Prevents you from pressing two opposing directions, which causes you to stop moving

bind w +mfwd
bind a +mleft
bind s +mback
bind d +mright

alias +mfwd "-back;+forward;alias cfwd +forward"
alias +mback "-forward;+back;alias cback +back"
alias +mleft "-moveright;+moveleft;alias cleft +moveleft"
alias +mright "-moveleft;+moveright;alias cright +moveright"
alias -mfwd "-forward;cback;alias cfwd"
alias -mback "-back;cfwd;alias cback"
alias -mleft "-moveleft;cright;alias cleft"
alias -mright "-moveright;cleft;alias cright"
alias cfwd
alias cback
alias cleft
alias cright

Updates

Reduced script size 15d
  • Adjustment Characters and credit
Now the script is correctly credited to povohat. Also, the aliases have been renamed to use less characters.
Reduced script characters 4mo Adjustment
This scripts prevents you from pressing two opposing directions, which causes you to stop moving.
Sign up to access this!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Author
povohat
Creator

Submitter

Perkzitos avatar
Perkzitos Joined 3y ago
Error 404
174 points Ranked 59987th
Perkzitos
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 7
  • 36.2k
  • 3
  • 3y
  • 15d
  • 15d

More Action Scripts Scripts