diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/client/iclientvehicle.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/client/iclientvehicle.h')
| -rw-r--r-- | mp/src/game/client/iclientvehicle.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/mp/src/game/client/iclientvehicle.h b/mp/src/game/client/iclientvehicle.h new file mode 100644 index 00000000..87ce252b --- /dev/null +++ b/mp/src/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
|