summaryrefslogtreecommitdiff
path: root/game/shared/tf2/tf_obj_manned_plasmagun_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/tf2/tf_obj_manned_plasmagun_shared.h')
-rw-r--r--game/shared/tf2/tf_obj_manned_plasmagun_shared.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/game/shared/tf2/tf_obj_manned_plasmagun_shared.h b/game/shared/tf2/tf_obj_manned_plasmagun_shared.h
new file mode 100644
index 0000000..396c0a4
--- /dev/null
+++ b/game/shared/tf2/tf_obj_manned_plasmagun_shared.h
@@ -0,0 +1,50 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: A stationary gun that players can man
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_OBJ_MANNED_PLASMAGUN_SHARED_H
+#define TF_OBJ_MANNED_PLASMAGUN_SHARED_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "basetfvehicle.h"
+
+class CMoveData;
+
+enum MovementStyle_t
+{
+ MOVEMENT_STYLE_STANDARD = 0,
+ MOVEMENT_STYLE_BARREL_PIVOT = 1,
+ MOVEMENT_STYLE_SIMPLE = 2,
+};
+
+struct MannedPlasmagunData_t : public VehicleBaseMoveData_t
+{
+ float m_flGunYaw;
+ float m_flGunPitch;
+ float m_flBarrelPitch;
+ float m_flBarrelHeight;
+ int m_nBarrelPivotAttachment;
+ int m_nBarrelAttachment;
+ int m_nStandAttachment;
+ MovementStyle_t m_nMoveStyle;
+};
+
+
+class CObjectMannedPlasmagunMovement
+{
+public:
+ void ProcessMovement( CBasePlayer *pPlayer, CMoveData *pMove );
+ float GetMaxYaw() const;
+ float GetMinYaw() const;
+ float GetMaxPitch() const;
+};
+
+
+
+#endif // TF_OBJ_MANNED_PLASMAGUN_SHARED_H