Search
Username:
Password:

Register or Reset Password

SUBMISSIONS
Counter Strike
   New Maps
   New Tutorials
   New Skins
   New GUI's
   New Sounds
   New Threads
Other
   Media
   Gamers
   Clans
   Studios
 
 
Search Scripts:           Advanced
 
 
 
2 control sets
Added by...
Brought to you by...
Author(s): J2K
Category: CS:S > Action Scripts
Notes/Usage Instructions:

//==============================
//Dual control sets by J2K!
//==============================


This is a script i wrote at a friend's house when we only had one computer with Counter-Strike Source. We were taking turns online and got tired of resetting our controls every time we switched over.

Eventually i wrote a script that in one press of a button, we could toggle between two complete control sets, making life a lot easier.

//Controls
Below are two sets of controls.
Controls in green are for player 1.
Controls in cyan are for player 2.
Script Code:
alias Set1Jumps "bind mwheelup +jump; bind mwheeldown +jump; bind space +jump;"
alias Set2Jumps "bind mouse3 +jump;"
alias Set1Crouch "bind ctrl +duck;"
alias Set2Crouch "bind shift +duck;"
alias Set1Use "bind e +use;"
alias Set2Use "bind q +use;"
alias Set1QuickChange "bind q lastinv;"
alias Set2QuickChange "bind e lastinv;"
alias Set1Scores "bind tab +showscores;"
alias Set2Scores "bind capslock +showscores;"
alias Set1BuyMenu "bind b buymenu;"
alias Set2BuyMenu "bind tab buymenu;"
alias Set1Sensitivity "sensitivity 2.4;"
alias Set2Sensitivity "sensitivity 3.5;"

//Indifferences
We found sometimes we had controls left over such as his mouse3 being bound to +jump but i did not wish to have mouse3 bound at all.

I set up an indifferences section for the script to make sure these extra settings were fixed when we changed control set.

alias Set1Indifferences "unbind mouse3; unbind capslock;"
alias Set2Indifferences "bind mwheelup invprev; bind mwheeldown invnext;"

//Combine controls into player names for toggling
alias Player1Name "Set1Jumps; Set1Crouch; Set1Use; Set1QuickChange; Set1Scores; Set1BuyMenu; Set1Sensitivity; Set1Indifferences;"
alias Player2Name "Set2Jumps; Set2Crouch; Set2Use; Set2QuickChange; Set2Scores; Set2BuyMenu; Set2Sensitivity; Set2Indifferences;"

//The toggler
alias controlset Player1Controls
alias Player1Controls "Player1Name; alias controlset Player2Controls;"
alias Player2Controls "Player2Name; alias controlset Player1Controls;"

//The bind
bind * controlset

Now you can instantly switch between control sets by hitting the * key on the numpad!

Hope this helps (:
Added: 1 year ago
Studio Profile
 
This script was brought to you by Studio Sabotage Studios. Join a Studio.
Sabotage Studios
Originality, Creativity, Simplicity
Membership: On Request
Primary Skills: ?
Welcome to Sabotage Studios!!


We will do anything you ask for, the points don't matter.

A list of things we make:

  • Avatars
  • Signatures
  • Thread Signatures
  • UserPics
  • Skins
  • Maps
  • Sprays
  • UberStyles
  • Studio Banners
  • Sounds
  • Scripts
  • Title Bars
  • Guis


  • If you want to e-mail us, send your message to: evilvvarrior@hotmail.com

    If there is something you'd like to request, but it's missing from the list,
    please let us know, we might have forgotten something, but everyone makesmistakes - that way we are known to be human. ;)

    -Evilvvarrior
    Inception: 2 years ago
    Script Stats
    Statistics on script releases by Sabotage Studios
    Submissions: 11
    Total Views: 112,687 (1st)
    Total Feedback: 149 posts
    Average Rating: 8.8/10 (23rd)
    Unrated Scripts: 6
    Total Favs: 18 (1st)
    First Submission: 1 year ago
    Latest Submission: 1 year ago
    Favorite Category: CS:S > Weapon Scripts (4 releases)
    The members of Sabotage Studios.
    Assessment
    The community's verdict.
    10/10
    Usefulness
    10
    Elegance
    10
    Performance
    10
    Stamps
    This script in a nutshell...
    Detailed & Handy
    Assess Script
    Scripts are community moderated.
    You cannot assess yet!
    Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

    To vote on this submission register or login.
    Stamp Script
    How would you describe this script in a few words?
    You cannot stamp yet!
    Stamps let you apply characteristics to submissions to help others understand them.

    To stamp this submission register or login.
    Statistics
    This script's scores and traffic.
    Rating: 10.0/10
    Skill Band: Expert (9.0 to 10)
    Assessments: 2
    Views: 8,753
    Favorites: 0
    Feedback: 8
    New Scripts: Action Scripts
    Share It!
    Get HTML Code
    Get BBCode
    Tell a Friend
    Feedback
    Provide constructive feedback. What is "constructive"?
    - Inferno - .
    The helper guy | Y2M
    Posted 3 months ago
    Awesome. Aboslutely awesome.

    Hey man, great Idea and it solves your problem at the same time ^^

    Way to use some scripting :D
    Assessment: [+] Approved - 10
    Black Jelly .
    jelllly | Y2M
    Posted 3 months ago
    I would like to ask you if you could add a section to the script that would change the directinal keys aswell. ie you can use wasd for set1 and the arrow keys for set2. thanks if possible
    Assessment: [+] Approved - 10
    - jelllly
    ancients .
    ancients skill !! ;) | Y2M
    Posted 7 months ago
    Nice...
    - ancients skill !! ;)
    .
    Scripting & Tutorial Master | Y2M
    Posted 1 year ago
    JvC_JoHn

    You are retarded. Making 2 configs = double the amount of files. Having to execute them in console every time you swap over = 20 times more typing.

    This uses one config file, and you press one button to toggle between control sets.

    It is superior in EVERY way. Not useless at all. There is absolutely no argument to that.

    1 config file vs 2 config files = I win
    1 button vs typing exec control1.cfg = I win
    JvC_JoHn .
    Bananite | Y2M
    Posted 1 year ago
    Useless, make 2 .cfg and execute them with the console
    tested in LANs ;)

    sorry for my poor english
    - Bananite
    Majin_DiggZ .
    To see light - learn the extents of dark | Y2M
    Posted 1 year ago
    Nice, liking it :) definitley usefull for 2 man Playing mode.

    Alternatively you could have 2 seperate configs
    Add Message
    You must login or register to access this!