Bukz

Single weapon switch/toggle bind...

Mar 20th, 2011
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. alias magtotal [result (+ (magcontent $arg1) (magreserve $arg1))]
  2.  
  3. alias intelli_switch [
  4.   if (= (currentprimary) (curweapon)) [
  5.     if (magtotal 8) [
  6.       grenades
  7.     ] [
  8.       if (|| (magtotal 1) (magtotal 9)) [
  9.         secondary
  10.       ] [
  11.         melee
  12.       ]
  13.     ]
  14.   ] [
  15.     if (magtotal (currentprimary)) [
  16.       primary
  17.     ] [
  18.       if (magtotal 8) [
  19.         grenades
  20.       ] [
  21.         if (|| (magtotal 1) (magtotal 9)) [
  22.           secondary
  23.         ] [
  24.           melee
  25.         ]
  26.       ]
  27.     ]
  28.   ]
  29. ]
Advertisement
Add Comment
Please, Sign In to add comment