summaryrefslogtreecommitdiff
path: root/game/shared/hl1/hl1_gamemovement.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/shared/hl1/hl1_gamemovement.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/hl1/hl1_gamemovement.h')
-rw-r--r--game/shared/hl1/hl1_gamemovement.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/game/shared/hl1/hl1_gamemovement.h b/game/shared/hl1/hl1_gamemovement.h
new file mode 100644
index 0000000..d685c54
--- /dev/null
+++ b/game/shared/hl1/hl1_gamemovement.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef C_HL1_GAMEMOVEMENT_H
+#define C_HL1_GAMEMOVEMENT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#ifdef CLIENT_DLL
+ #include "hl1/hl1_c_player.h"
+#else
+ #include "hl1_player.h"
+#endif
+
+#if defined( CLIENT_DLL )
+ class CHL1_Player;
+ #define CHL1_Player C_HL1_Player
+#endif
+
+#define PLAYER_LONGJUMP_SPEED 350 // how fast we longjump
+
+class CHL1GameMovement : public CGameMovement
+{
+public:
+ DECLARE_CLASS( CHL1GameMovement, CGameMovement );
+
+ virtual bool CheckJumpButton( void );
+
+ // Duck
+ virtual void Duck( void );
+ virtual void HandleDuckingSpeedCrop();
+ virtual void CheckParameters( void );
+
+protected:
+ CHL1_Player *m_pHL1Player;
+};
+
+#endif //C_HL1_GAMEMOVEMENT_H \ No newline at end of file