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.

39 lines
1.5 KiB

  1. //===== Copyright � 2005-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: Helper methods + classes for choreo
  4. //
  5. //===========================================================================//
  6. #ifndef CHOREOUTILS_H
  7. #define CHOREOUTILS_H
  8. #if defined( _WIN32 )
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // Forward declarations
  13. //-----------------------------------------------------------------------------
  14. class CChoreoScene;
  15. class CChoreoEvent;
  16. class CStudioHdr;
  17. //-----------------------------------------------------------------------------
  18. // Finds sound files associated with events
  19. //-----------------------------------------------------------------------------
  20. const char *GetSoundForEvent( CChoreoEvent *pEvent, CStudioHdr *pStudioHdr );
  21. //-----------------------------------------------------------------------------
  22. // Fixes up the duration of a choreo scene based on wav files + animations
  23. // Returns true if a change needed to be made
  24. //-----------------------------------------------------------------------------
  25. bool AutoAddGestureKeys( CChoreoEvent *e, CStudioHdr *pStudioHdr, float *pPoseParameters, bool bCheckOnly );
  26. bool UpdateGestureLength( CChoreoEvent *e, CStudioHdr *pStudioHdr, float *pPoseParameters, bool bCheckOnly );
  27. bool UpdateSequenceLength( CChoreoEvent *e, CStudioHdr *pStudioHdr, float *pPoseParameters, bool bCheckOnly, bool bVerbose );
  28. #endif // CHOREOUTILS_H