diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/locksounds.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/locksounds.h')
| -rw-r--r-- | game/server/locksounds.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/game/server/locksounds.h b/game/server/locksounds.h new file mode 100644 index 0000000..c70b4c5 --- /dev/null +++ b/game/server/locksounds.h @@ -0,0 +1,37 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Defines a structure common to buttons and doors for playing locked +// and unlocked sounds. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef LOCKSOUNDS_H +#define LOCKSOUNDS_H +#ifdef _WIN32 +#pragma once +#endif + +#include "datamap.h" + + +struct locksound_t // sounds that doors and buttons make when locked/unlocked +{ + DECLARE_DATADESC(); + + string_t sLockedSound; // sound a door makes when it's locked + string_t sLockedSentence; // sentence group played when door is locked + string_t sUnlockedSound; // sound a door makes when it's unlocked + string_t sUnlockedSentence; // sentence group played when door is unlocked + + int iLockedSentence; // which sentence in sentence group to play next + int iUnlockedSentence; // which sentence in sentence group to play next + + float flwaitSound; // time delay between playing consecutive 'locked/unlocked' sounds + float flwaitSentence; // time delay between playing consecutive sentences + byte bEOFLocked; // true if hit end of list of locked sentences + byte bEOFUnlocked; // true if hit end of list of unlocked sentences +}; + + +#endif // LOCKSOUNDS_H |