mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Mute the linking sound on client kicks
This commit is really quite awesome in that you can now propagate any plLinkToAgeMsg that will mute the link out, link in sounds, or both. Some garbage fields were repurposed for this functionality. The messages were passed correctly on Cyan's MOULa server. Conflicts: Sources/Plasma/PubUtilLib/plMessage/plLinkToAgeMsg.h Sources/Plasma/PubUtilLib/plNetClient/plLinkEffectsMgr.cpp Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp
This commit is contained in:
@ -437,55 +437,6 @@ void plNetClientMgr::IUnloadNPCs()
|
||||
hsAssert(fNPCKeys.empty(), "Still npcs left when linking out");
|
||||
}
|
||||
|
||||
//
|
||||
// begin linking out sounds and gfx
|
||||
//
|
||||
void plNetClientMgr::StartLinkOutFX()
|
||||
{
|
||||
// send msg to trigger link out effect
|
||||
if (fLocalPlayerKey)
|
||||
{
|
||||
plNetLinkingMgr * lm = plNetLinkingMgr::GetInstance();
|
||||
|
||||
plLinkEffectsTriggerMsg* lem = new plLinkEffectsTriggerMsg();
|
||||
lem->SetLeavingAge(true);
|
||||
lem->SetLinkKey(fLocalPlayerKey);
|
||||
lem->SetBCastFlag(plMessage::kNetPropagate);
|
||||
lem->SetBCastFlag(plMessage::kNetForce); // Necessary?
|
||||
lem->AddReceiver(hsgResMgr::ResMgr()->FindKey(plUoid(kLinkEffectsMgr_KEY)));
|
||||
lem->Send();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// beging linking in sounds snd gfx
|
||||
//
|
||||
void plNetClientMgr::StartLinkInFX()
|
||||
{
|
||||
if (fLocalPlayerKey)
|
||||
{
|
||||
const plArmatureMod *avMod = plAvatarMgr::GetInstance()->GetLocalAvatar();
|
||||
|
||||
plLinkEffectsTriggerMsg* lem = new plLinkEffectsTriggerMsg();
|
||||
lem->SetLeavingAge(false); // linking in
|
||||
lem->SetLinkKey(fLocalPlayerKey);
|
||||
plKey animKey = avMod->GetLinkInAnimKey();
|
||||
lem->SetLinkInAnimKey(animKey);
|
||||
|
||||
// indicate if we are invisible
|
||||
if (avMod && avMod->IsInStealthMode() && avMod->GetTarget(0))
|
||||
{
|
||||
lem->SetInvisLevel(avMod->GetStealthLevel());
|
||||
}
|
||||
|
||||
lem->SetBCastFlag(plMessage::kNetPropagate);
|
||||
|
||||
lem->AddReceiver(hsgResMgr::ResMgr()->FindKey(plUoid(kLinkEffectsMgr_KEY)));
|
||||
lem->AddReceiver(hsgResMgr::ResMgr()->FindKey(plUoid(kClient_KEY)));
|
||||
plgDispatch::MsgSend(lem);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// compute the difference between our clock and the server's in unified time
|
||||
//
|
||||
@ -1056,20 +1007,6 @@ bool plNetClientMgr::MsgReceive( plMessage* msg )
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
plInitialAgeStateLoadedMsg *stateMsg = plInitialAgeStateLoadedMsg::ConvertNoRef( msg );
|
||||
if( stateMsg != nil )
|
||||
{
|
||||
// done receiving the initial state of the age from the server
|
||||
plNetObjectDebugger::GetInstance()->LogMsg("OnServerInitComplete");
|
||||
|
||||
// delete fProgressBar;
|
||||
// fProgressBar=nil;
|
||||
|
||||
SetFlagsBit(kLoadingInitialAgeState, false);
|
||||
StartLinkInFX();
|
||||
}
|
||||
|
||||
plNetVoiceListMsg* voxList = plNetVoiceListMsg::ConvertNoRef(msg);
|
||||
if (voxList)
|
||||
{
|
||||
|
Reference in New Issue
Block a user