Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo > Read Team Flag Binds ...
- //--------------------------------------------------------------------------------------------------
- echo " _______ ______ _ ____ _ _"
- echo " |__ __| | ____| | | _ \(_) | |"
- echo " | | ___ __ _ _ __ ___ | |__ | | __ _ __ _ | |_) |_ _ __ __| |___"
- echo " | |/ _ \/ _` | '_ ` _ \ | __| | |/ _` |/ _` | | _ <| | '_ \ / _` / __|"
- echo " | | __/ (_| | | | | | | | | | | (_| | (_| | | |_) | | | | | (_| \__ \"
- echo " |_|\___|\__,_|_| |_| |_| |_| |_|\__,_|\__, | |____/|_|_| |_|\__,_|___/"
- echo " __/ |"
- echo " Author: /u/NanashiSC |___/"
- echo " Version: 2019-02-05"
- echo " for updates, go visit https://pastebin.com/Z63LRPdT"
- //--------------------------------------------------------------------------------------------------
- // Reddit-Thread: https://www.reddit.com/r/CounterStrikeBinds/comments/adhzfh/buy_bind/
- //--------------------------------------------------------------------------------------------------
- // General Description: This Script allows you to create Team specific bindings. The easiest way to
- // achieve this goal would have been to create a Teamgflag Toggle KEY and to alter wished binds
- // accordingly. But I wanted to keep the team flagging process as unintrusive as possible, and
- // therefore decided to use team unique items (C4, Defuser) as indicators.
- //
- // The script you will see further below, has been designed to meet one specific task, which has been
- // to: buy M4 and Aug as CT but just an AK47 as T - with the very same Key!
- // But of course the potential is there. So feel free to extend or alter this script to your needs.
- //
- // TL;DR: Here are the essential Keybinds for this script:
- //
- // 5 (C4) = set flag T
- // alt + e (buy defuser) = set flag CT
- // KEY = buy M4 and Aug as CT / AK47 as T //make sure to change KEY under "Binds"
- //
- // Note: You can also create additional binds, like print_team_flag, and toggle_team_flag but
- // they are all optional.
- //--------------------------------------------------------------------------------------------------
- // Set Team Flags (for Team specific binds) by /u/Nanashi --->
- //--------------------------------------------------------------------------------------------------
- // Press 5 to set flag to t (C4 unique to team T)
- // Press alt+e to set flag to ct (defuser unique to team CT)
- //--------------------------------------------------------------------------------------------------
- // Set FLag AND Toggle Flaggability --->
- //--------------------------------------------------------------------------------------------------
- // flag ON (mute key - wont set any flags)
- //--------------------------------------------------------------------------------------------------
- alias flag_5_on "bind 5 slot5" //default bind when flag set to T
- alias flag_alt_e_on "alias secE "buy defuser";" //default bind when flag set to CT
- //--------------------------------------------------------------------------------------------------
- // flag OFF (mute key - set team flags)
- //--------------------------------------------------------------------------------------------------
- // Note: some binds are too complex for one line of code in such cases you have to create one alias
- // with the commands you want the key to execute and another one in which you will bind
- // said commands to said key again
- //--------------------------------------------------------------------------------------------------
- alias 5_off "slot5; team_t"
- alias alt_e_off "buy defuser; team_ct"
- alias flag_5_off "bind 5 5_off"
- alias flag_alt_e_off "alias secE alt_e_off"
- //--------------------------------------------------------------------------------------------------
- // Set Flag
- //--------------------------------------------------------------------------------------------------
- // Note: My intention with the lines below is to reduce accidental switching of team flags while ...
- // playing the game by muting (bind to default) active keys and vice versa.
- //--------------------------------------------------------------------------------------------------
- alias flag_t "flag_5_on; flag_alt_e_off" //or flag_t //e gets overwritten, next time you press e, flag will be set to T
- alias flag_ct "flag_alt_e_on; flag_5_off" //or flag_ct //5 gets overwritten, next time you press 5, flag will be set to CT
- //--------------------------------------------------------------------------------------------------
- // <--- Set FLag AND Toggle Flaggability
- //--------------------------------------------------------------------------------------------------
- // Aug Buy Status
- //--------------------------------------------------------------------------------------------------
- alias aug_flag //switching teams will switch you aug flags as well
- alias buy_aug_on "buy aug" //when on team CT
- alias buy_aug_off "" //when on team T
- //--------------------------------------------------------------------------------------------------
- // Feedback (text to chat)
- //--------------------------------------------------------------------------------------------------
- alias flag_text_ct "say_team "Team Flag set to CT (press "KEY" to buy M4, Aug)";" //change text as you like
- alias flag_text_t "say_team "Team Flag set to T (press "KEY" to buy AK47)";" //change text as you like
- //--------------------------------------------------------------------------------------------------
- // Call Flag Status (print current flag status to chat)
- //--------------------------------------------------------------------------------------------------
- alias print_team_flag "say_team "Team Flag not set";"
- //--------------------------------------------------------------------------------------------------
- // Swap Team
- //--------------------------------------------------------------------------------------------------
- alias toggle_team_flag //points towards unflagged team
- alias team_ct "alias aug_flag buy_aug_on; flag_ct; alias print_team_flag flag_text_ct; print_team_flag; alias toggle_team_flag team_t"
- alias team_t "alias aug_flag buy_aug_off; flag_t; alias print_team_flag flag_text_t; print_team_flag; alias toggle_team_flag team_ct"
- //--------------------------------------------------------------------------------------------------
- // <--- Set Team FLags (for Team specific binds)
- //--------------------------------------------------------------------------------------------------
- // Binds --->
- //--------------------------------------------------------------------------------------------------
- bind 5 "slot5; team_t"
- bind KEY print_team_flag //prints current FLag to teamchat
- bind KEY "buy m4a1; buy ak47; aug_flag" //CHANGE ME SENPAI!
- bind KEY toggle_team_flag //allows you to toggly between team-flags by pressing a key of your choice
- //--------------------------------------------------------------------------------------------------
- // <--- Binds
- //--------------------------------------------------------------------------------------------------
- // Altbinds --->
- //--------------------------------------------------------------------------------------------------
- // Set ALT/Default Keybinds
- //--------------------------------------------------------------------------------------------------
- // pri = primary
- // mod = modifier
- // sec = secondary
- //--------------------------------------------------------------------------------------------------
- // Key-E
- //--------------------------------------------------------------------------------------------------
- alias priE "bind e +use"
- alias modE "bind e secE"
- alias secE "buy defuser; team_ct"
- //--------------------------------------------------------------------------------------------------
- // Set +ALT/-ALT
- //--------------------------------------------------------------------------------------------------
- alias +altbinds "modE" //Alt+Key assignments
- alias -altbinds "priE" //Default-Key assignments
- //--------------------------------------------------------------------------------------------------
- // Bind ALT
- //--------------------------------------------------------------------------------------------------
- bind ALT +altbinds
- //--------------------------------------------------------------------------------------------------
- // <--- Altbinds
- //--------------------------------------------------------------------------------------------------
- // <--- Set Team Flags (for Team specific binds) by /u/Nanashi
- //--------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment