Swimming Toggle

For quick switching to easy swimming controls

//Swim toggle
alias +swim1 "+moveup"
alias +swim2 "+movedown"
alias -swim1 "-moveup"
alias -swim2 "-movedown"
//Change the keys here if your controls are different
alias swimmode "bind space +swim1; bind shift +swim2; echo "Swimming mode enabled""
alias "smToggle" "sm1"
alias "sm1" "swimmode; alias smToggle sm2"
alias "sm2" "bind space +jump; bind shift +duck; alias smToggle sm1; echo "Swimming mode disabled""
//Change this key if you want to press a different key for swimming
bind b smToggle

//Optional code to reset controls upon class switch
bind space "+jump"
bind shift "+duck"
alias smToggle sm1

This script allows you to swap from land controls (crouch and duck) to water controls (swim up & swim down) at the push of a button. Pressing B (by default) activates the code. It's a bit sloppy, perhaps, but it gets the job done.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • clovervidia's Levels
    • P1: Beggar
      Points: 393
    • C1: Member
    • A3: Apprentice
      Account Age: 2 years
    Posted 7 months ago

    I'm pretty sure the "land" controls are the same as the "swimming" controls unless Source rolled back to Half-Life controls.

    User Title
    Being a Boss

Credits

Submitter
leafbarrett's Levels
  • P1: Beggar
    Points: 88
  • C1: Member
  • A3: Apprentice
    Account Age: 1 year
leafbarrett (Creator/Co-creator)
Key Authors
leafbarrett
creator

Rating

?/10
Not yet rated.

Stats

Post Count
1
ViewCount
1,425
Date Added
1 year ago
Date Modified
1 year ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share