Weapon Deploy/Draw Sound Effect 
9 comments What this script basically does is attempt (as much as possible) to emulate the sound effects that the Counter-Strike games make of you drawing/chambering your weapon whenever you switch into it. Also comes with an additional sound effect of you actually placing the bomb down when you successfully plant it.
No screenshots are provided! This script has nothing for you to experience visually; it's purely auditory.
Installation
Extract archive to CS2D directory, maintaining folder structure
Copy the contents in servertransfer_wpnsnds.lst and append them into your own servertransfer.lst, otherwise other players who do not have the sounds can't hear them
Customization
These are the remaining settings:
sv_soundpos).
P.S. I looked around the file archive earlier and was baffled by the non-existence of a script like this, I will have figured someone published their own version by now
No screenshots are provided! This script has nothing for you to experience visually; it's purely auditory.




These are the remaining settings:
Code:
pikachu.wpnsnds.teamonly = true -- Teammates only?
pikachu.wpnsnds.teamrange = 320 -- Distance check in pixels
pikachu.wpnsnds.teamspec = true -- Extend to dead players spectating?
pikachu.wpnsnds.teamrange = 320 -- Distance check in pixels
pikachu.wpnsnds.teamspec = true -- Extend to dead players spectating?

pikachu.wpnsnds.teamonly
determines who else nearby can hear the weapon drawing sound effects you make. true
for teammates only (default setting), false
for everyone (using 

pikachu.wpnsnds.teamrange
determines how far approximately (in pixels) teammates can be from you to be able to hear you switching your weapon. The default value is 320 and the minimum value is 1 (Just to be safe, there is an error check in place).
pikachu.wpnsnds.teamspec
determines whether dead people or spectators are able to hear the weapon drawing sound effects you make if they focus on you or your nearby teammates. Setting it to true
enables this (default setting).P.S. I looked around the file archive earlier and was baffled by the non-existence of a script like this, I will have figured someone published their own version by now
edited 99×, last 05.09.23 03:58:15 pm

Comments
9 comments



Log in!
You need to log in to be able to write comments!Log in




y
value lol), replaced with something more modern: 
I think you should consider caching player positions (eg. by

Too many calls to CS2D's API in single frame will lead to TPS drops. Also the hook could be disabled if configuration for spec players is disabled.
player(0, 'table')
should definitely be cached, for example by 

3D Counter-Strike analogy it'd be like the SFX of you chambering your AK or M4 whenever you switch to it (the weapon draw animation)
@
Gaios: Is there? I am only aware of the clipin and clipout ones, which are just for reloading





