Raised This Month: $51 Target: $400
 12% 

sound doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 09-01-2022 , 16:53   sound doesn't work
Reply With Quote #1

I've used emit_sound and spk as well and i dont know why the sound won't work on server
ps: it works on lan..
PHP Code:
new const freezer_sound[] = "basebuilder/freezer.wav" 
PHP Code:
public plugin_precache()
{
    
precache_sound(freezer_sound)

PHP Code:
emit_sound(idCHAN_WEAPONfreezer_soundVOL_NORMATTN_NORM0PITCH_NORM
it only works if I'm shooting to a wall, and i have to be close to that wall.. and i also use at hook plugin
PHP Code:
client_cmd (0"spk ^"%s^""sound); 
and it won't work at all
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
wilian159
Member
Join Date: Dec 2013
Old 09-01-2022 , 20:59   Re: sound doesn't work
Reply With Quote #2

change CHAN_WEAPON to CHAN_STATIC and test
__________________
wilian159 is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 09-02-2022 , 22:25   Re: sound doesn't work
Reply With Quote #3

Quote:
Originally Posted by Nutu_ View Post
I've used emit_sound and spk as well and i dont know why the sound won't work on server
ps: it works on lan..
PHP Code:
new const freezer_sound[] = "basebuilder/freezer.wav" 
PHP Code:
public plugin_precache()
{
    
precache_sound(freezer_sound)

PHP Code:
emit_sound(idCHAN_WEAPONfreezer_soundVOL_NORMATTN_NORM0PITCH_NORM
it only works if I'm shooting to a wall, and i have to be close to that wall.. and i also use at hook plugin
PHP Code:
client_cmd (0"spk ^"%s^""sound); 
and it won't work at all
for client_cmd, is "sound/basebuilder/freezer.wav", all the weapons shoot sounds( in default ) works on CHAN_WEAPON, so, if u are changing it in pre, the sound will be emitted before the default

in pre:

freezersound > weaponsound

in post:

weaponsound > freezersound

idk how are u changing it or modify

u can try changing it with the forward of emit sound, or using other channel(to play both, weapon default sound and frieza sound)

Last edited by MrPickles; 09-02-2022 at 22:28.
MrPickles is offline
Reply



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 02:29.


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