Raised This Month: $ Target: $400
 0% 

Solved Emit Sound Problem. Fire sound is overlapping my sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
esenrik
Senior Member
Join Date: Jul 2010
Old 07-01-2018 , 09:51   Emit Sound Problem. Fire sound is overlapping my sounds
Reply With Quote #1

Hello!

I created a reloading sound for players, the character says with emit sound: "I'm reloading!!".

The sound works perfectly when no one is shooting, but the problem is that the engine shoot sounds overlaps my sound.

Any way to fix it?

My code (there are 4 possible reload sound random choosed):

PHP Code:
new random random_num(14)
        if (
random == 1) {
        
emit_sound(idCHAN_VOICEreload11.0ATTN_NORM0PITCH_NORM)
        } else if (
random == 2) {
        
emit_sound(idCHAN_VOICEreload21.0ATTN_NORM0PITCH_NORM)
        } else if (
random == 3) {
        
emit_sound(idCHAN_VOICEreload31.0ATTN_NORM0PITCH_NORM)
        } else if (
random == 4) {
        
emit_sound(idCHAN_VOICEreload41.0ATTN_NORM0PITCH_NORM)
        } 
I don't understand for example why Zombie Madness item of zombie plague always plays sound correctly and why my sounds are being overlapped

PD: I tested all channels. Including CHAN_AUTO.

Last edited by esenrik; 07-02-2018 at 06:04.
esenrik is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:28.


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