void CTriggerCamera::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
if ( !ShouldToggle( useType, m_state ) )
return;
// Toggle state
m_state = !m_state;
if (m_state == 0)
{
m_flReturnTime = gpGlobals->time;
return;
}
if ( !pActivator || !pActivator->IsPlayer() )
{
pActivator = CBaseEntity::Instance(g_engfuncs.pfnPEntityOfEntIndex( 1 ));
}
I guess this says that it's the activator of the camera that gets affected. What does the g_engfuncs.pfnPEntityOfEntIndex really do? Some change in this code to make all players see through camera? Still learning