Advertisement
Bukz

Domodifier replacement concept...

Mar 18th, 2011
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. alias megabind [
  2.   if (= $numargs 6) [
  3.     bind $arg1 (format "if (watchingdemo) [%1] [if (|| $editing (= $gamemode 1)) [%2] [if $connected [%3] [if (curmodeattr bot) [%4] [%5]]]]" $arg2 $arg3 $arg4 $arg5 $arg6)
  4.   ] []
  5. ]
  6. docsection [Mega Binds]
  7. docident [megabind] [Binds a key to many different actions depending on the current game state.];
  8. docargument [K] [The key to bind.];
  9. docargument [D] [Body of code to execute if watching a demo.];
  10. docargument [E] [Body of code to execute if editing or in coop-edit.];
  11. docargument [C] [Body of code to execute if connected to a server.];
  12. docargument [B] [Body of code to execute if playing against bots.];
  13. docargument [O] [Body of code to execute if none of the other arguments have been met.];
  14.  
  15. // 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