02 Jul 11, 07:29AM
(02 Jul 11, 12:59AM)|BC|Wolf Wrote: But is it possible to do it so I can here others shoot but not my own AR and SMG?
Only when you are not shooting...
[SELECT ALL] Code:
// some constants
ASSAULT_RIFLE = 6
SUBMACHINE_GUN = 4
AR_SOUND = 18
SMG_SOUND = 14
// some aliases
check_for_mute = [
if $muteshoot [
if (= (curweapon) $ASSAULT_RIFLE) [
mutesound $AR_SOUND 0
onrelease [ mutesound $AR_SOUND 1 ] ] [
if (= (curweapon) $SUBMACHINE_GUN) [
mutesound $SMG_SOUND 0
onrelease [ mutesound $SMG_SOUND 1 ] ] ] ] ]
muteshoot = 0
muteweapons = [
if $muteshoot [
echo (c 0) "unmuting weapons..."; muteshoot = 0 ] [
echo (c 3) "muting weapons..."; muteshoot = 1 ] ]
// add the check_for_mute alias; modify if necessary
bind MOUSE1 [ attack; check_for_mute ]
Or maybe not...? I do not know.