Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,796 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_playsound / ent_playloop sound volume #263562
04/30/09 13:17
04/30/09 13:17
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

ent_playsound and ent_playloop calculate the sound volume and direction by using the distance between the entity and the camera.

It would be great if it would be possible to do the same for the distance between the entity that is playing the sound and another entity in the level (for example the current player).

Something like this:

ent_playsound (ENTITY*, SOUND*, var volume, ENTITY*);

Regards,
Pegamode.

Re: ent_playsound / ent_playloop sound volume [Re: pegamode] #263563
04/30/09 13:20
04/30/09 13:20
Joined: Jul 2000
Posts: 28,075
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,075
Frankfurt
This would not be possible per-sound, but only per-level. The sound listener has the same position for all sounds.

For using a player as a listener, put a not visible view with AUDIBLE flag at the player position. Reset the AUDIBLE flag of the camera view.

Re: ent_playsound / ent_playloop sound volume [Re: jcl] #263565
04/30/09 13:25
04/30/09 13:25
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Ok ... I'll give that a try.

Thanks for the fast reply.


Moderated by  aztec, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1