diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/locksounds.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/locksounds.h')
| -rw-r--r-- | sp/src/game/server/locksounds.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sp/src/game/server/locksounds.h b/sp/src/game/server/locksounds.h new file mode 100644 index 00000000..33a6cf63 --- /dev/null +++ b/sp/src/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
|