switching sniper pistol-shotgun
Enhanced script
[SELECT ALL] Code:
alias "switchpistol" [if (= (curweapon) 1) [if (= $magpistol 1)[
if (= (magcontent 1) 6)[attack;primary][];
if (= (magcontent 1) 4)[attack;primary][];
if (= (magcontent 1) 2)[attack;primary][];
if (= (magcontent 1) 0)[attack;primary][]
][]
] []
]
alias "switchshotgun" [if (= (curweapon) 3) [
if (= (magcontent 3) 6)[secondary;attack][];
if (= (magcontent 3) 5)[secondary;attack][];
if (= (magcontent 3) 4)[secondary;attack][];
if (= (magcontent 3) 3)[secondary;attack][];
if (= (magcontent 3) 2)[secondary;attack][];
if (= (magcontent 3) 1)[secondary;attack][];
if (= (magcontent 3) 0)[secondary;attack][]
] []
]
alias "switch" [if (= (curweapon) 5) [
if (= (magcontent 5) 4)[attack;secondary][];
if (= (magcontent 5) 3)[attack;secondary][];
if (= (magcontent 5) 2)[attack;secondary][];
if (= (magcontent 5) 1)[attack;secondary][];
if (= (magcontent 5) 0)[attack;secondary][]
] []
]
bind "RIGHT" [alias magpistol 0]
bind "LEFT" [alias magpistol 1]
bind "MOUSE1" [attack;switch;switchpistol;switchshotgun]
Enhanced script