summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_walker_strider.h
blob: 924e4a90110b7d0e5fbd785c95f70ff210bbb657 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

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


#include "c_walker_base.h"
#include "c_rope.h"


#define STRIDER_BEAM_LIFETIME	1.0
#define STRIDER_BEAM_MATERIAL	"sprites/physbeam"
#define STRIDER_BEAM_WIDTH		25
#define STRIDER_NUM_ROPES		6


class CStriderBeamEffect
{
public:
	Vector m_vHitPos;
	float m_flStartTime;
};


class C_WalkerStrider : public C_WalkerBase
{
public:
	DECLARE_CLIENTCLASS();
	DECLARE_CLASS( C_WalkerStrider, C_WalkerBase );

	C_WalkerStrider();
	virtual ~C_WalkerStrider();


// IClientThinkable.
public:
	virtual void ClientThink();


// C_BaseEntity.
public:
	virtual void ReceiveMessage( int classID, bf_read &msg );
	virtual void OnDataChanged( DataUpdateType_t type );
	virtual bool ShouldPredict() { return false; }


// C_BaseAnimating.
public:
	virtual bool GetAttachment( int iAttachment, matrix3x4_t &attachmentToWorld );
	virtual int DrawModel( int flags );


private:
	C_WalkerStrider( const C_WalkerStrider &other ) {}

	bool m_bCrouched;

	CUtlLinkedList<CStriderBeamEffect,int> m_BeamEffects;

	CHandle<C_RopeKeyframe> m_hRopes[STRIDER_NUM_ROPES];
};


#endif // C_WALKER_STRIDER_H