summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_info_act.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/c_info_act.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf2/c_info_act.h')
-rw-r--r--game/client/tf2/c_info_act.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/game/client/tf2/c_info_act.h b/game/client/tf2/c_info_act.h
new file mode 100644
index 0000000..ad97248
--- /dev/null
+++ b/game/client/tf2/c_info_act.h
@@ -0,0 +1,56 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef C_INFO_ACT_H
+#define C_INFO_ACT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#define ACT_NONE_SPECIFIED -1
+
+//-----------------------------------------------------------------------------
+// Purpose: Map entity that defines an act
+//-----------------------------------------------------------------------------
+class C_InfoAct : public C_BaseEntity
+{
+ DECLARE_CLASS( C_InfoAct, C_BaseEntity );
+public:
+ C_InfoAct();
+ ~C_InfoAct();
+
+ DECLARE_CLIENTCLASS();
+
+ virtual void OnPreDataChanged( DataUpdateType_t updateType );
+ virtual void OnDataChanged( DataUpdateType_t updateType );
+
+ void StartAct( float flStartTime );
+
+ int GetActNumber( void ) { return m_iActNumber; }
+ bool IsAWaitingAct( void );
+
+ float RespawnTimeRemaining( int nTeam, int nTimer ) const;
+
+private:
+ int m_iActNumber;
+ int m_spawnflags;
+ float m_flActTimeLimit;
+ int m_nRespawn1Team1Time;
+ int m_nRespawn1Team2Time;
+ int m_nRespawn2Team1Time;
+ int m_nRespawn2Team2Time;
+ int m_nRespawnTeam1Delay;
+ int m_nRespawnTeam2Delay;
+ float m_flStartTime;
+ float m_flPreviousTimeLimit;
+};
+
+extern CHandle<C_InfoAct> g_hCurrentAct;
+void StartAct( int iActNumber, float flStartTime );
+int GetCurrentActNumber( void );
+bool CurrentActIsAWaitingAct( void );
+
+#endif // C_INFO_ACT_H