Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias megabind [
- if (= $numargs 6) [
- bind $arg1 (format "if (watchingdemo) [%1] [if (|| $editing (= $gamemode 1)) [%2] [if $connected [%3] [if (curmodeattr bot) [%4] [%5]]]]" $arg2 $arg3 $arg4 $arg5 $arg6)
- ] []
- ]
- docsection [Mega Binds]
- docident [megabind] [Binds a key to many different actions depending on the current game state.];
- docargument [K] [The key to bind.];
- docargument [D] [Body of code to execute if watching a demo.];
- docargument [E] [Body of code to execute if editing or in coop-edit.];
- docargument [C] [Body of code to execute if connected to a server.];
- docargument [B] [Body of code to execute if playing against bots.];
- docargument [O] [Body of code to execute if none of the other arguments have been met.];
- // megabind KEY [echo Demo!] [echo Editing or coop-edit!] [echo Connected!] [echo Bots!] [echo Other!]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement