upload "kind" alien swarm

This commit is contained in:
nillerusr
2023-10-03 17:23:56 +03:00
parent b7bd94c52e
commit 7d3c0d8b5a
4229 changed files with 462900 additions and 495155 deletions
+18 -2
View File
@@ -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;