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 /mp/src/game/server/hl2/env_speaker.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/hl2/env_speaker.h')
| -rw-r--r-- | mp/src/game/server/hl2/env_speaker.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mp/src/game/server/hl2/env_speaker.h b/mp/src/game/server/hl2/env_speaker.h new file mode 100644 index 00000000..683e8405 --- /dev/null +++ b/mp/src/game/server/hl2/env_speaker.h @@ -0,0 +1,54 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef ENV_SPEAKER_H
+#define ENV_SPEAKER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+// ===================================================================================
+//
+// Speaker class. Used for announcements per level, for door lock/unlock spoken voice.
+//
+
+class CSpeaker : public CPointEntity
+{
+public:
+ DECLARE_CLASS( CSpeaker, CPointEntity );
+
+ void Spawn( void );
+ void Precache( void );
+
+ DECLARE_DATADESC();
+
+ virtual int ObjectCaps( void ) { return (BaseClass::ObjectCaps() & ~FCAP_ACROSS_TRANSITION); }
+
+ virtual IResponseSystem *GetResponseSystem() { return m_pInstancedResponseSystem; }
+
+ virtual int Save( ISave &save );
+ virtual int Restore( IRestore &restore );
+
+protected:
+
+ void SpeakerThink( void );
+
+ void InputToggle( inputdata_t &inputdata );
+
+ float m_delayMin;
+ float m_delayMax;
+
+ string_t m_iszRuleScriptFile;
+ string_t m_iszConcept;
+ IResponseSystem *m_pInstancedResponseSystem;
+
+public:
+
+ void InputTurnOff( inputdata_t &inputdata );
+ void InputTurnOn( inputdata_t &inputdata );
+};
+
+#endif // ENV_SPEAKER_H
|