summaryrefslogtreecommitdiff
path: root/game/client/iclientvehicle.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/iclientvehicle.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/iclientvehicle.h')
-rw-r--r--game/client/iclientvehicle.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/game/client/iclientvehicle.h b/game/client/iclientvehicle.h
new file mode 100644
index 0000000..d5d526d
--- /dev/null
+++ b/game/client/iclientvehicle.h
@@ -0,0 +1,59 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef ICLIENTVEHICLE_H
+#define ICLIENTVEHICLE_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "IVehicle.h"
+
+class C_BasePlayer;
+class Vector;
+class QAngle;
+class C_BaseEntity;
+
+
+//-----------------------------------------------------------------------------
+// Purpose: All client vehicles must implement this interface.
+//-----------------------------------------------------------------------------
+abstract_class IClientVehicle : public IVehicle
+{
+public:
+ // When a player is in a vehicle, here's where the camera will be
+ virtual void GetVehicleFOV( float &flFOV ) = 0;
+
+ // Allows the vehicle to restrict view angles, blend, etc.
+ virtual void UpdateViewAngles( C_BasePlayer *pLocalPlayer, CUserCmd *pCmd ) = 0;
+
+ // Hud redraw...
+ virtual void DrawHudElements() = 0;
+
+ // Is this predicted?
+ virtual bool IsPredicted() const = 0;
+
+ // Get the entity associated with the vehicle.
+ virtual C_BaseEntity *GetVehicleEnt() = 0;
+
+ // Allows the vehicle to change the near clip plane
+ virtual void GetVehicleClipPlanes( float &flZNear, float &flZFar ) const = 0;
+
+ // Allows vehicles to choose their own curves for players using joysticks
+ virtual int GetJoystickResponseCurve() const = 0;
+
+#ifdef HL2_CLIENT_DLL
+ // Ammo in the vehicles
+ virtual int GetPrimaryAmmoType() const = 0;
+ virtual int GetPrimaryAmmoClip() const = 0;
+ virtual bool PrimaryAmmoUsesClips() const = 0;
+ virtual int GetPrimaryAmmoCount() const = 0;
+#endif
+};
+
+
+#endif // ICLIENTVEHICLE_H