[cubescript]alias delta_game_0 [
if (= $arg1 1) [
if (&& (> (magcontent 8) 0) (= (curweapon) (currentprimary))) [
shiftweapon 2
] [
shiftweapon 1
]
] [
if (&& (> (magcontent 8) 0) (= (curweapon) 0)) [
shiftweapon -2
] [
shiftweapon -1
]
]
][/cubescript]
Thanks, Bukz, for tidying this up from my one-line-wonder.
I use this for exactly the same reason you mentioned, Boomhauer.
if (= $arg1 1) [
if (&& (> (magcontent 8) 0) (= (curweapon) (currentprimary))) [
shiftweapon 2
] [
shiftweapon 1
]
] [
if (&& (> (magcontent 8) 0) (= (curweapon) 0)) [
shiftweapon -2
] [
shiftweapon -1
]
]
][/cubescript]
Thanks, Bukz, for tidying this up from my one-line-wonder.
I use this for exactly the same reason you mentioned, Boomhauer.