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.

37 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Defines a structure common to buttons and doors for playing locked
  4. // and unlocked sounds.
  5. //
  6. // $NoKeywords: $
  7. //=============================================================================//
  8. #ifndef LOCKSOUNDS_H
  9. #define LOCKSOUNDS_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "datamap.h"
  14. struct locksound_t // sounds that doors and buttons make when locked/unlocked
  15. {
  16. DECLARE_DATADESC();
  17. string_t sLockedSound; // sound a door makes when it's locked
  18. string_t sLockedSentence; // sentence group played when door is locked
  19. string_t sUnlockedSound; // sound a door makes when it's unlocked
  20. string_t sUnlockedSentence; // sentence group played when door is unlocked
  21. int iLockedSentence; // which sentence in sentence group to play next
  22. int iUnlockedSentence; // which sentence in sentence group to play next
  23. float flwaitSound; // time delay between playing consecutive 'locked/unlocked' sounds
  24. float flwaitSentence; // time delay between playing consecutive sentences
  25. byte bEOFLocked; // true if hit end of list of locked sentences
  26. byte bEOFUnlocked; // true if hit end of list of unlocked sentences
  27. };
  28. #endif // LOCKSOUNDS_H