[ HELP ] Change weapon primary attack sound?
How to block the primary attack sound of weapon and add a custom sound?
I searched the forum and found it, just not quite know how to use, for example: PHP Code:
|
Re: [ HELP ] Change weapon primary attack sound?
you can't just replace weapon sounds except knife so easily, the only option is to create weapon from scratch, and this would take ages if you are not an experienced coder
|
Re: [ HELP ] Change weapon primary attack sound?
ahm.. you just have to put up at the FIRE_SOUND the path to your sound...
and at register ham instead of weapon_name you write the weapons name... for example weapon_m4a1 that's all |
Re: [ HELP ] Change weapon primary attack sound?
I know about weapon_name, i dont understand about FIRE_SOUND, give me a example.
|
Re: [ HELP ] Change weapon primary attack sound?
PHP Code:
|
Re: [ HELP ] Change weapon primary attack sound?
Quote:
|
Re: [ HELP ] Change weapon primary attack sound?
Hum, this:
PHP Code:
|
Re: [ HELP ] Change weapon primary attack sound?
Ham_PrimaryAttack is not a good way to do this because if you hold down attack, you hear the sound repeat itself before the sound completes and it even does it when you are not actually shooting. I don't think there's a simple way to do this because the sound is produced on the client side.
Using code written by VEN to detect weapon fire, you can play a sound over the normal fire sound. In this example, I used the M4A1 fire sound for all weapons. This can be modified to use a different fire sound for each weapon. Not thoroughly tested: PHP Code:
|
Re: [ HELP ] Change weapon primary attack sound?
Bugsy, this code not worked :nono:.
|
Re: [ HELP ] Change weapon primary attack sound?
It does, but inconsistently. I noticed this after the fact. I'll take a look when I have time.
|
| All times are GMT -4. The time now is 18:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.