source-engine/game/shared/hl1/hl1_gamemovement.h

42 lines
844 B
C
Raw Normal View History

2022-04-16 09:05:19 +00:00
//========= 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