AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   overlapp weapon sounds (https://forums.alliedmods.net/showthread.php?t=302910)

undead52 11-15-2017 13:23

overlapp weapon sounds
 
how can i overlapp weapon sounds ? i wanna block some sounds

HamletEagle 11-15-2017 13:44

Re: overlapp weapon sounds
 
You can't do this properly. You can change weapon sounds with some hacky ways, but for clients with bigger ping accuracy will be very off.
You can simply emit another sound on the same channel, but again this doesn't always work.

undead52 11-15-2017 13:58

Re: overlapp weapon sounds
 
Then how can i redo awp ?

HamletEagle 11-15-2017 14:41

Re: overlapp weapon sounds
 
You have to hook UpdateClientData and set CD_ID to 0, then play all animations, sounds, make bulletholes, wall smoke and so on.
I think there is a post about changing weapon sounds in tutorials section, it's a good start.

undead52 11-15-2017 14:44

Re: overlapp weapon sounds
 
i searched a lot of times about these,couldnt find, where is it ?

HamletEagle 11-15-2017 14:51

Re: overlapp weapon sounds
 
Quote:

Originally Posted by undead52 (Post 2560683)
i searched a lot of times about these,couldnt find, where is it ?

In the code snippets/tutorials section :shock:

undead52 11-15-2017 15:32

Re: overlapp weapon sounds
 
omg, somehow i changed the awp sound ty hamlet <3

Fr33m@n 11-15-2017 21:27

Re: overlapp weapon sounds
 
Another way is using custom weapons models over original :

You need to decompile a model, edit the corresponding sounds in the qc file. recompile.
Then upload the model and the sounds on the server.
Then set your custom model on item deploy.

undead52 11-16-2017 08:53

Re: overlapp weapon sounds
 
actually this is more better for reload, draw sounds for too.

in default awp sound in weapons/awp1.wav and will i change it weapons/custom/awp1.wav like that ?

CrazY. 11-16-2017 20:53

Re: overlapp weapon sounds
 
Search, I've one post with an example.


All times are GMT -4. The time now is 19:45.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.