mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-31 22:49:19 +00:00
upload "kind" alien swarm
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
@@ -14,6 +14,13 @@
|
||||
class CBasePlayer;
|
||||
class CUserCmd;
|
||||
|
||||
enum LagCompensationType
|
||||
{
|
||||
LAG_COMPENSATE_BOUNDS,
|
||||
LAG_COMPENSATE_HITBOXES,
|
||||
LAG_COMPENSATE_HITBOXES_ALONG_RAY,
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: This is also an IServerSystem
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -21,8 +28,17 @@ abstract_class ILagCompensationManager
|
||||
{
|
||||
public:
|
||||
// Called during player movement to set up/restore after lag compensation
|
||||
virtual void StartLagCompensation( CBasePlayer *player, CUserCmd *cmd ) = 0;
|
||||
virtual void StartLagCompensation(
|
||||
CBasePlayer *player,
|
||||
LagCompensationType lagCompensationType,
|
||||
const Vector& weaponPos = vec3_origin,
|
||||
const QAngle &weaponAngles = vec3_angle,
|
||||
float weaponRange = 0.0f ) = 0;
|
||||
virtual void FinishLagCompensation( CBasePlayer *player ) = 0;
|
||||
|
||||
// Mappers can flag certain additional entities to lag compensate, this handles them
|
||||
virtual void AddAdditionalEntity( CBaseEntity *pEntity ) = 0;
|
||||
virtual void RemoveAdditionalEntity( CBaseEntity *pEntity ) = 0;
|
||||
};
|
||||
|
||||
extern ILagCompensationManager *lagcompensation;
|
||||
|
||||
Reference in New Issue
Block a user