Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef HL_MOVEDATA_H
  8. #define HL_MOVEDATA_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "igamemovement.h"
  13. // This class contains HL2-specific prediction data.
  14. class CHLMoveData : public CMoveData
  15. {
  16. public:
  17. bool m_bIsSprinting;
  18. };
  19. class CFuncLadder;
  20. class CReservePlayerSpot;
  21. //-----------------------------------------------------------------------------
  22. // Purpose: Data related to automatic mounting/dismounting from ladders
  23. //-----------------------------------------------------------------------------
  24. struct LadderMove_t
  25. {
  26. DECLARE_SIMPLE_DATADESC();
  27. // Are we forcing player movement during mount/dismount
  28. bool m_bForceLadderMove;
  29. // Is the forced move getting on or off the ladder
  30. bool m_bForceMount;
  31. // Simulation info for forcing the player move
  32. float m_flStartTime;
  33. float m_flArrivalTime;
  34. Vector m_vecGoalPosition;
  35. Vector m_vecStartPosition;
  36. // The ladder entity owning the forced move (for marking us "on" the ladder after automounting it)
  37. CHandle< CFuncLadder > m_hForceLadder;
  38. CHandle< CReservePlayerSpot > m_hReservedSpot;
  39. };
  40. #endif // HL_MOVEDATA_H