mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
40 lines
1.5 KiB
C
40 lines
1.5 KiB
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose: Helper methods + classes for choreo
|
||
|
//
|
||
|
//===========================================================================//
|
||
|
|
||
|
#ifndef CHOREOUTILS_H
|
||
|
#define CHOREOUTILS_H
|
||
|
|
||
|
#if defined( _WIN32 )
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Forward declarations
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CChoreoScene;
|
||
|
class CChoreoEvent;
|
||
|
class CStudioHdr;
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Finds sound files associated with events
|
||
|
//-----------------------------------------------------------------------------
|
||
|
const char *GetSoundForEvent( CChoreoEvent *pEvent, CStudioHdr *pStudioHdr );
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Fixes up the duration of a choreo scene based on wav files + animations
|
||
|
// Returns true if a change needed to be made
|
||
|
//-----------------------------------------------------------------------------
|
||
|
bool AutoAddGestureKeys( CChoreoEvent *e, CStudioHdr *pStudioHdr, float *pPoseParameters, bool bCheckOnly );
|
||
|
bool UpdateGestureLength( CChoreoEvent *e, CStudioHdr *pStudioHdr, float *pPoseParameters, bool bCheckOnly );
|
||
|
bool UpdateSequenceLength( CChoreoEvent *e, CStudioHdr *pStudioHdr, float *pPoseParameters, bool bCheckOnly, bool bVerbose );
|
||
|
|
||
|
|
||
|
#endif // CHOREOUTILS_H
|
||
|
|