Raised This Month: $ Target: $400
 0% 

[REQ] Make a sound in a specific place


Post New Thread Reply   
 
Thread Tools Display Modes
Joce93
Senior Member
Join Date: Feb 2016
Old 08-16-2016 , 16:33   Re: [REQ] Make a sound in a specific place
Reply With Quote #11

Quote:
Originally Posted by Shattered Heart Lynx View Post
Is the game Sven Co-op? If so you can't do it with AMXX.
Why ?
Joce93 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 08-16-2016 , 16:45   Re: [REQ] Make a sound in a specific place
Reply With Quote #12

Quote:
Originally Posted by Joce93 View Post
Why ?
Since Sven Co-op uses a new sound engine, all sounds in the map need to be in the 'soundcache' file. This is done by just precaching them, but AMXX's plugin_precache() gets called after the soundcache file is generated.

The sounds will be distributed to players, but they won't play because they are not cached in the sound system.

Sadly I do not know any method to make this work, unless precaching the sounds using Angelscript and then developing the AMXX plugin, but you're better off just using Angelscript.

mp3 play and spk do not need this, that's why plugins like Sank Sounds work.
__________________

Last edited by gabuch2; 08-17-2016 at 06:31.
gabuch2 is offline
arnalll
Member
Join Date: Nov 2015
Location: France
Old 08-20-2016 , 02:50   Re: [REQ] Make a sound in a specific place
Reply With Quote #13

hi,
after some talk with joce93 i've tried to do something and it works exactly as he wanted to.

to avoid precache issues, use this method to precache your sounds using fakemeta:

engfunc(EngFunc_PrecacheSound,"your_sound_pat h_here")

then use in function:

emit_sound(id,CHAN_VOICE,"your_sound_path_her e",VOL_NORM,ATTN_NORM,0,PITCH_NORM).

It is confirmed to work in SVEN CO-OP.

Kind regards!
arnalll 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 00:26.


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