Kamay Xutax
14717d8092
Prediction is fixed by me by adding two more functions in prediction class, there had before some issues because starttouch/endtouch weren't predicted. The result is that with lag, it restores touched entities, including the triggers touched entity list.
32 lines
693 B
C++
32 lines
693 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
#include "cbase.h"
|
|
#include "c_basedoor.h"
|
|
|
|
// memdbgon must be the last include file in a .cpp file!!!
|
|
#include "tier0/memdbgon.h"
|
|
|
|
#ifdef CBaseDoor
|
|
#undef CBaseDoor
|
|
#endif
|
|
|
|
IMPLEMENT_CLIENTCLASS_DT(C_BaseDoor, DT_BaseDoor, CBaseDoor)
|
|
RecvPropFloat(RECVINFO(m_flWaveHeight)),
|
|
END_RECV_TABLE()
|
|
|
|
BEGIN_PREDICTION_DATA( C_BaseDoor )
|
|
DEFINE_FIELD( m_flWaveHeight, FIELD_FLOAT ),
|
|
END_PREDICTION_DATA()
|
|
|
|
C_BaseDoor::C_BaseDoor( void )
|
|
{
|
|
m_flWaveHeight = 0.0f;
|
|
}
|
|
|
|
C_BaseDoor::~C_BaseDoor( void )
|
|
{
|
|
}
|