Since there's trigger prediction, we send everything
adjusted also client frame for full updates
This commit is contained in:
parent
bef50ed5ce
commit
96a8e373be
10 changed files with 13 additions and 13 deletions
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
class CFrameSnapshot;
|
class CFrameSnapshot;
|
||||||
|
|
||||||
#define MAX_CLIENT_FRAMES 128
|
#define MAX_CLIENT_FRAMES 2048
|
||||||
|
|
||||||
class CClientFrame
|
class CClientFrame
|
||||||
{
|
{
|
||||||
|
|
|
@ -98,7 +98,7 @@ int CBaseCombatWeapon::UpdateTransmitState( void)
|
||||||
// about whether or not to transmit it.
|
// about whether or not to transmit it.
|
||||||
if ( GetOwner() )
|
if ( GetOwner() )
|
||||||
{
|
{
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
//===========================================================================//
|
//===========================================================================//
|
||||||
|
|
||||||
#include "cbase.h"
|
#include "cbase.h"
|
||||||
|
#include "edict.h"
|
||||||
#include "globalstate.h"
|
#include "globalstate.h"
|
||||||
#include "isaverestore.h"
|
#include "isaverestore.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
|
@ -3479,7 +3480,7 @@ int CBaseEntity::UpdateTransmitState()
|
||||||
|
|
||||||
// TODO_ENHANCED: this needs to be always now since teleports are predicted.
|
// TODO_ENHANCED: this needs to be always now since teleports are predicted.
|
||||||
// by default cull against PVS
|
// by default cull against PVS
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
|
|
||||||
int CBaseEntity::DispatchUpdateTransmitState()
|
int CBaseEntity::DispatchUpdateTransmitState()
|
||||||
|
@ -3548,9 +3549,8 @@ int CBaseEntity::ShouldTransmit( const CCheckTransmitInfo *pInfo )
|
||||||
return TRANSMIT_NO; // TODO doesn't work with HLTV
|
return TRANSMIT_NO; // TODO doesn't work with HLTV
|
||||||
#endif*/
|
#endif*/
|
||||||
|
|
||||||
// by default do a PVS check
|
// by default send full.
|
||||||
|
return FL_EDICT_ALWAYS;
|
||||||
return FL_EDICT_PVSCHECK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,7 @@ int CEnvParticleScript::UpdateTransmitState()
|
||||||
return SetTransmitState( FL_EDICT_ALWAYS );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
|
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ Class_T CNPC_Spotlight::Classify(void)
|
||||||
//-------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------
|
||||||
int CNPC_Spotlight::UpdateTransmitState(void)
|
int CNPC_Spotlight::UpdateTransmitState(void)
|
||||||
{
|
{
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ int CRotorWashEmitter::UpdateTransmitState( void )
|
||||||
return SetTransmitState( FL_EDICT_FULLCHECK );
|
return SetTransmitState( FL_EDICT_FULLCHECK );
|
||||||
}
|
}
|
||||||
|
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
@ -300,7 +300,7 @@ int CPointSpotlight::UpdateTransmitState()
|
||||||
if ( m_bEfficientSpotlight )
|
if ( m_bEfficientSpotlight )
|
||||||
return SetTransmitState( FL_EDICT_DONTSEND );
|
return SetTransmitState( FL_EDICT_DONTSEND );
|
||||||
|
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
@ -312,7 +312,7 @@ int CVGuiScreen::UpdateTransmitState()
|
||||||
{
|
{
|
||||||
// Let the parent object trigger the send. This is more efficient than having it call CBaseEntity::ShouldTransmit
|
// Let the parent object trigger the send. This is more efficient than having it call CBaseEntity::ShouldTransmit
|
||||||
// for all the vgui screens in the map.
|
// for all the vgui screens in the map.
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,7 +60,7 @@ int CBaseParticleEntity::UpdateTransmitState( void )
|
||||||
return SetTransmitState( FL_EDICT_ALWAYS );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
|
|
||||||
// cull against PVS
|
// cull against PVS
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -488,7 +488,7 @@ void CInfoLadderDismount::DrawDebugGeometryOverlays()
|
||||||
int CFuncLadder::UpdateTransmitState()
|
int CFuncLadder::UpdateTransmitState()
|
||||||
{
|
{
|
||||||
// transmit if in PVS for clientside prediction
|
// transmit if in PVS for clientside prediction
|
||||||
return SetTransmitState( FL_EDICT_PVSCHECK );
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue