25 Jun 16, 04:35PM
(23 Jun 16, 11:30PM)Vanquish Wrote:Well so it doesn't only mute you but also everyone else who's firing the same gun as you do while you shoot.(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]
I guess that's legit but it seems like a terrible idea to me.
Thanks though :)