logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Idea: "invisible" sound

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Valgav



Joined: 28 Aug 2010
Posts: 53

PostPosted: Thu Feb 19, 2015 23:16    Post subject: Idea: "invisible" sound Reply with quote

We have ApplyVFXForPC and OverwriteVisibility but what about sound?

SetVisibility only makes creature or object invisible but you can hide sounds of that creature for example quickchat.

So I'm asking if it's possible to add functions to contro sound? Something like PlaySoundForPC(object oCreature, string sSoundName) or OverwriteAudibility?

Also it would be great if we could create sound objects. Now we can only move already placed objects.

Is it even possibile to use nwnx for such things?
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Thu Feb 19, 2015 23:23    Post subject: Reply with quote

Fairly sure that NWNX on the server end can only control the perception of one object to another.
From that point of view its a case of sound and visuals on or off.
To have sound separate from this mechanic you would need a client side extension.

Using nwnx visibility you could however try
Create a placeable, set it to be visible to who you want,
Then make it play a sound.
IF the sound is anchored to something that is not perceived by a player, then I guess in theory the sound might not be heard by that player but perceived by others.
Back to top
View user's profile Send private message
Valgav



Joined: 28 Aug 2010
Posts: 53

PostPosted: Thu Feb 19, 2015 23:27    Post subject: Reply with quote

I'll try with objects but quickchat commands breaks through the barrier of visibility. Even if PC_1 is invisible for PC_2 his quickchat commands are still send to another players.

EDIT: I'm just wondering if the default invisible effect doesn't mute chat etc. Maybe that's some place to start.
Back to top
View user's profile Send private message
Valgav



Joined: 28 Aug 2010
Posts: 53

PostPosted: Thu Feb 19, 2015 23:50    Post subject: Reply with quote

I did some tests. Even object with nwnx visibility set to invisible plays sound for player. So there's a need of creating another function.
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Fri Feb 20, 2015 17:23    Post subject: Reply with quote

If you have access to the nwserver symbols
I would suggest having a look at the SendServerMessageToPlayer/Client
There might be a message there that sends the 'play audio' message to the client.

Hooking that - or even being able to call it on command,
might allow control over who hears what
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group