aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/hl2/hl_movedata.h
blob: 5b7d4f8ccb7fc31e32b652cc2fc218c2b5fcd8bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef HL_MOVEDATA_H
#define HL_MOVEDATA_H
#ifdef _WIN32
#pragma once
#endif


#include "igamemovement.h"


// This class contains HL2-specific prediction data.
class CHLMoveData : public CMoveData
{
public:
	bool		m_bIsSprinting;
};

class CFuncLadder;
class CReservePlayerSpot;

//-----------------------------------------------------------------------------
// Purpose: Data related to automatic mounting/dismounting from ladders
//-----------------------------------------------------------------------------
struct LadderMove_t
{
	DECLARE_SIMPLE_DATADESC();

	//	Are we forcing player movement during mount/dismount
	bool		m_bForceLadderMove;
	// Is the forced move getting on or off the ladder
	bool		m_bForceMount;
	
	// Simulation info for forcing the player move
	float		m_flStartTime;
	float		m_flArrivalTime;
	Vector		m_vecGoalPosition;
	Vector		m_vecStartPosition;

	// The ladder entity owning the forced move (for marking us "on" the ladder after automounting it)
	CHandle< CFuncLadder > m_hForceLadder;
	CHandle< CReservePlayerSpot > m_hReservedSpot;
};

#endif // HL_MOVEDATA_H