Ejemplo n.º 1
0
void CView::SetActive(bool const bActive)
{
	if (bActive)
	{
		// Make sure we have a valid audio listener entity on an active view!
		CreateAudioListener();
	}
}
Ejemplo n.º 2
0
void CView::SetActive(bool const bActive)
{
	if (bActive)
	{
		// Make sure we have a valid audio listener entity on an active view!
		CreateAudioListener();
	}
	else if (m_pAudioListener != nullptr && (m_pAudioListener->GetFlags() & ENTITY_FLAG_TRIGGER_AREAS) != 0)
	{
		gEnv->pEntitySystem->GetAreaManager()->ExitAllAreas(m_pAudioListener);
		m_pAudioListener->SetFlagsExtended(m_pAudioListener->GetFlagsExtended() & ~ENTITY_FLAG_EXTENDED_AUDIO_LISTENER);
	}
}
Ejemplo n.º 3
0
//------------------------------------------------------------------------
CView::CView(ISystem *pSystem)
:	m_pSystem(pSystem)
,	m_linkedTo(0)
,	m_frameAdditiveAngles(0.0f, 0.0f, 0.0f)
,	m_scale(1.0f)
,	m_zoomedScale(1.0f)
, m_pAudioListener(NULL)
{
	if (!pCamShakeMult)
	{
		pCamShakeMult = gEnv->pConsole->GetCVar("c_shakeMult");
	}

	CreateAudioListener();
}
Ejemplo n.º 4
0
//------------------------------------------------------------------------
CView::CView(ISystem* const pSystem)
	: m_pSystem(pSystem)
	, m_linkedTo(0)
	, m_frameAdditiveAngles(0.0f, 0.0f, 0.0f)
	, m_scale(1.0f)
	, m_zoomedScale(1.0f)
	, m_pAudioListener(nullptr)
{
	if (!pCamShakeMult)
	{
		pCamShakeMult = gEnv->pConsole->GetCVar("c_shakeMult");
	}
	if (!pHmdReferencePoint)
	{
		pHmdReferencePoint = gEnv->pConsole->GetCVar("hmd_reference_point");
	}

	CreateAudioListener();
}
Ejemplo n.º 5
0
void CView::PostSerialize()
{
	CreateAudioListener();
}