summaryrefslogtreecommitdiff
path: root/game/server/tf2/tf_walker_strider.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/tf2/tf_walker_strider.h')
-rw-r--r--game/server/tf2/tf_walker_strider.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/game/server/tf2/tf_walker_strider.h b/game/server/tf2/tf_walker_strider.h
new file mode 100644
index 0000000..050e7bd
--- /dev/null
+++ b/game/server/tf2/tf_walker_strider.h
@@ -0,0 +1,85 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef TF_WALKER_STRIDER_H
+#define TF_WALKER_STRIDER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "tf_walker_base.h"
+
+
+class CWalkerStrider : public CWalkerBase
+{
+public:
+ DECLARE_CLASS( CWalkerStrider, CWalkerBase );
+ DECLARE_SERVERCLASS();
+
+ CWalkerStrider();
+
+
+// CWalkerBase.
+protected:
+ virtual void WalkerThink();
+
+
+// CBaseObject.
+public:
+ virtual bool StartBuilding( CBaseEntity *pBuilder );
+
+
+// CBaseEntity.
+public:
+ virtual void Precache();
+ virtual void Spawn();
+ virtual void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
+
+
+// CBaseAnimating.
+public:
+ virtual bool GetAttachment( int iAttachment, matrix3x4_t &attachmentToWorld );
+ virtual void HandleAnimEvent( animevent_t *pEvent );
+
+
+// IServerVehicle.
+public:
+ virtual bool IsPassengerVisible( int nRole );
+
+
+// IVehicle overrides.
+public:
+ virtual void SetupMove( CBasePlayer *pPlayer, CUserCmd *ucmd, IMoveHelper *pHelper, CMoveData *move );
+
+
+private:
+ void Fire();
+
+ void Crouch();
+ void UnCrouch();
+
+ void FootHit( const char *pFootName );
+
+
+
+private:
+ CNetworkVar( bool, m_bCrouched );
+ float m_flNextCrouchTime;
+
+ bool m_bFiring;
+ float m_flFireEndTime;
+ float m_flNextShootTime;
+ QAngle m_vFireAngles;
+
+ float m_flOriginToLowestLegHeight;
+ float m_flWantedZ;
+
+ QAngle m_vDriverAngles;
+};
+
+
+#endif // TF_WALKER_STRIDER_H