Change to FL_EDICT_ALWAYS

This commit is contained in:
Kamay Xutax 2024-08-24 04:52:57 +02:00
parent 1856a9ee30
commit 7a92c3afde
5 changed files with 57 additions and 56 deletions

View file

@ -3194,7 +3194,7 @@ void _Host_RunFrame (float time)
float flEstimatedAmountToAdd = host_frametime / host_state.interval_per_tick; float flEstimatedAmountToAdd = host_frametime / host_state.interval_per_tick;
g_ClientGlobalVariables.interpolation_amount += flEstimatedAmountToAdd; g_ClientGlobalVariables.interpolation_amount += flEstimatedAmountToAdd;
// Accumulate also the one we diddn't account for. // Accumulate also the one we didn't account for.
g_ClientGlobalVariables.interpolation_amount += flLastInterpolationAmountOnTick * flEstimatedAmountToAdd; g_ClientGlobalVariables.interpolation_amount += flLastInterpolationAmountOnTick * flEstimatedAmountToAdd;
ErrorIfNot(g_ClientGlobalVariables.interpolation_amount >= 0.0f, ErrorIfNot(g_ClientGlobalVariables.interpolation_amount >= 0.0f,

View file

@ -3493,7 +3493,7 @@ void CMortarShell::Precache()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
int CMortarShell::UpdateTransmitState( void ) int CMortarShell::UpdateTransmitState( void )
{ {
return SetTransmitState( FL_EDICT_PVSCHECK ); return SetTransmitState( FL_EDICT_ALWAYS );
} }
//--------------------------------------------------------- //---------------------------------------------------------

View file

@ -438,6 +438,6 @@ void CGrenadeBeam::Precache( void )
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
int CGrenadeBeam::UpdateTransmitState(void) int CGrenadeBeam::UpdateTransmitState(void)
{ {
return SetTransmitState( FL_EDICT_PVSCHECK ); return SetTransmitState( FL_EDICT_ALWAYS );
} }

View file

@ -8,6 +8,7 @@
//=============================================================================// //=============================================================================//
#include "cbase.h" #include "cbase.h"
#include "edict.h"
#include "physics_prop_ragdoll.h" #include "physics_prop_ragdoll.h"
#include "npc_barnacle.h" #include "npc_barnacle.h"
#include "npcevent.h" #include "npcevent.h"
@ -2587,7 +2588,7 @@ void CBarnacleTongueTip::Spawn( void )
int CBarnacleTongueTip::UpdateTransmitState( void ) int CBarnacleTongueTip::UpdateTransmitState( void )
{ {
return SetTransmitState( FL_EDICT_PVSCHECK ); return SetTransmitState( FL_EDICT_ALWAYS );
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View file

@ -275,7 +275,7 @@ bool CBoneFollower::Init( CBaseEntity *pOwner, const char *pModelName, solid_t &
int CBoneFollower::UpdateTransmitState() int CBoneFollower::UpdateTransmitState()
{ {
// Send to the client for client-side collisions and visualization // Send to the client for client-side collisions and visualization
return SetTransmitState( FL_EDICT_PVSCHECK ); return SetTransmitState( FL_EDICT_ALWAYS );
} }
void CBoneFollower::VPhysicsUpdate( IPhysicsObject *pPhysics ) void CBoneFollower::VPhysicsUpdate( IPhysicsObject *pPhysics )