Sound for a hero
1 Attachment(s)
I have the next code:
Code:
#include <superheromod> Work fine, but I have a problem with the sound.I don't know why don't work.Maybe you can help me. I want when I press a bind button all player's to hear "Shinra tensei" and after push him away and play the rest of the sound.So I want player to hear "Shinra Tensei" before push him away. I don't know why this sound not work with this hero...maybe you can check. Thanks ! |
Re: Sound for a hero
Use CHAN_VOICE instead.
Also make sure the sound quality is not too good. The HL engine won't play sounds unless they have a certain quality (very poor quality) I usually convert to 8 bit mono to make sure it will play. Also it doesn't support .mp3 with emit_sound. You need to convert it to .wav. |
Re: Sound for a hero
I don't know what I need to change...i really can't udnerstand :))
I will try with the sound, but I can't do anything with the code. L.E:Can you make it to blind all player's in rage while the sound? |
Re: Sound for a hero
Change:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Sound for a hero
Code:
emit_sound(id, CHAN_VOICE, gSoundPush, VOL_NORM, ATTN_NORM, 0, PITCH_NORM) Code:
sh_screen_fade(id, 1.0, 1.0, 255, 255, 255, 255, SH_FFADE_IN) I'd like the player in my range to become deaf and blind.And if you can make something with the sound it woul be great. :D |
Re: Sound for a hero
If you want to do it on the one you are attacking with the hero change "id" from sh_screen_fade to "victim" and it shows up at the one who you attacked.
The sound is not playing because it is an mp3 file. You need to convert it into a wav file and make it 8 bit mono audio. |
Re: Sound for a hero
Quote:
|
Re: Sound for a hero
The change will change the channel from CHAN_ITEM to CHAN_VOICE.
|
Re: Sound for a hero
friend it is same problem occur with me please give me reply if u find answer about it
|
All times are GMT -4. The time now is 04:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.