Emit Sound or Ambient Sound question
How I can emit sound for individual player in ent radius? I use:
Code:
|
Re: Emit Sound question
emit_sound() does what you are asking except you can't choose the radius. I'm not sure how it chooses a radius but not everybody can hear it.
Also, it looks like what you are doing there is an inefficient method of implementing emit_sound(). |
Re: Emit Sound question
I use EmitAmbientSound for playing sample when player has reaches radius where sample can play
but it works for all players in rad, I want do it for each player. |
Re: Emit Sound question
Code:
engfunc(EngFunc_EmitAmbientSound, PLAYER_id, ENTITY_fOrigin, g_szBombSounds[0], 0.5, ATTN_NORM, 0, PITCH_NORM);Code:
engfunc(EngFunc_EmitAmbientSound, ENTYTY_id, ENTITY_fOrigin, g_szBombSounds[0], 0.5, ATTN_NORM, 0, PITCH_NORM); |
Re: Emit Sound question
Why i need this? Because when player goes on from samples' radius and back up sound not played.
|
Re: Emit Sound or Ambient Sound question
Why not check the radius and use client_cmd?
|
Re: Emit Sound or Ambient Sound question
Quote:
|
Re: Emit Sound or Ambient Sound question
here any example [S:]-
PHP Code:
|
Re: Emit Sound or Ambient Sound question
It's possible to restrict who hears player voices but not sounds that are played in the map AFAIK.
|
Re: Emit Sound or Ambient Sound question
and what about SVC_SPAWNSTATICSOUND? It might be what you need.
|
| All times are GMT -4. The time now is 15:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.