summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_basefourwheelvehicle.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/c_basefourwheelvehicle.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf2/c_basefourwheelvehicle.h')
-rw-r--r--game/client/tf2/c_basefourwheelvehicle.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/game/client/tf2/c_basefourwheelvehicle.h b/game/client/tf2/c_basefourwheelvehicle.h
new file mode 100644
index 0000000..5ccbcaf
--- /dev/null
+++ b/game/client/tf2/c_basefourwheelvehicle.h
@@ -0,0 +1,51 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef C_BASE_FOUR_WHEEL_VEHICLE_H
+#define C_BASE_FOUR_WHEEL_VEHICLE_H
+
+#include "basetfvehicle.h"
+
+class C_BasePlayer;
+
+class C_BaseTFFourWheelVehicle : public C_BaseTFVehicle
+{
+ DECLARE_CLASS( C_BaseTFFourWheelVehicle, C_BaseTFVehicle );
+ DECLARE_CLIENTCLASS();
+
+public:
+
+ C_BaseTFFourWheelVehicle();
+
+ float GetDeployFinishTime() const;
+ VehicleModeDeploy_e GetVehicleModeDeploy() const;
+
+ // TF2 vehicles are animated by the server
+ virtual bool IsSelfAnimating() { return false; };
+
+ virtual void OnDataChanged( DataUpdateType_t updateType );
+
+// IClientVehicle overrides.
+public:
+ virtual void UpdateViewAngles( C_BasePlayer *pLocalPlayer, CUserCmd *pCmd );
+
+protected:
+ // Restricts the view within a range of the center...
+ void RestrictView( int nRole, float flMinYaw, float flMaxYaw, QAngle &vecViewAngles );
+
+private:
+
+ C_BaseTFFourWheelVehicle( const C_BaseTFFourWheelVehicle & ); // not defined, not accessible
+
+private:
+
+ // Used to draw deploy timer on vgui screens.
+ float m_flDeployFinishTime;
+ VehicleModeDeploy_e m_eDeployMode;
+};
+
+#endif // C_BASE_FOUR_WHEEL_VEHICLE_H \ No newline at end of file