23 Jun 16, 11:30PM
(23 Jun 16, 11:13PM)Mash Wrote: and how would one write a script like that without modifying something like weapon::attacksound aka the source? Which I would not consider a legit modification.
[SELECT ALL] Code:
alias "silentshoot" [
if (= (curweapon) 6) [mutesound 18 0;onrelease [mutesound 18 1] ]
if (= (curweapon) 4) [mutesound 14 0;onrelease [mutesound 14 1] ]
if (= (curweapon) 1) [mutesound 8 0;onrelease [mutesound 8 1 ] ]
if (= (curweapon) 2) [mutesound 10 0;onrelease [mutesound 10 1] ]
if (= (curweapon) 5) [mutesound 16 0;onrelease [mutesound 16 1] ]
]
bind "MOUSE1" [attack; silentshoot]