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.

47 lines
2.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SCENEENTITY_H
  8. #define SCENEENTITY_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // List of the last 5 lines of speech from NPCs for bug reports
  13. #define SPEECH_LIST_MAX_SOUNDS 5
  14. struct recentNPCSpeech_t
  15. {
  16. float time;
  17. char name[ 512 ];
  18. char sceneName[ 128 ];
  19. };
  20. int GetRecentNPCSpeech( recentNPCSpeech_t speech[ SPEECH_LIST_MAX_SOUNDS ] );
  21. float InstancedScriptedScene( CBaseFlex *pActor, const char *pszScene, EHANDLE *phSceneEnt = NULL, float flPostDelay = 0.0f, bool bIsBackground = false, AI_Response *response = NULL, bool bMultiplayer = false, IRecipientFilter *filter = NULL );
  22. float InstancedAutoGeneratedSoundScene( CBaseFlex *pActor, char const *soundname, EHANDLE *phSceneEnt = NULL );
  23. void StopScriptedScene( CBaseFlex *pActor, EHANDLE hSceneEnt );
  24. void RemoveActorFromScriptedScenes( CBaseFlex *pActor, bool instancedscenesonly, bool nonidlescenesonly = false, const char *pszThisSceneOnly = NULL );
  25. void PauseActorsScriptedScenes( CBaseFlex *pActor, bool instancedscenesonly );
  26. void ResumeActorsScriptedScenes( CBaseFlex *pActor, bool instancedscenesonly );
  27. void QueueActorsScriptedScenesToResume( CBaseFlex *pActor, bool instancedscenesonly );
  28. bool IsRunningScriptedScene( CBaseFlex *pActor, bool bIgnoreInstancedScenes = true );
  29. bool IsRunningScriptedSceneAndNotPaused( CBaseFlex *pActor, bool bIgnoreInstancedScenes = true );
  30. bool IsRunningScriptedSceneWithSpeech( CBaseFlex *pActor, bool bIgnoreInstancedScenes = false );
  31. bool IsRunningScriptedSceneWithSpeechAndNotPaused( CBaseFlex *pActor, bool bIgnoreInstancedScenes = false );
  32. float GetSceneDuration( char const *pszScene );
  33. int GetSceneSpeechCount( char const *pszScene );
  34. bool IsInInterruptableScenes( CBaseFlex *pActor );
  35. void PrecacheInstancedScene( char const *pszScene );
  36. HSCRIPT ScriptCreateSceneEntity( char const *pszScene );
  37. char const *GetSceneFilename( CBaseEntity *ent );
  38. void ReloadSceneFromDisk( CBaseEntity *ent );
  39. #endif // SCENEENTITY_H