summaryrefslogtreecommitdiff
path: root/game/shared/tf2/plasmaprojectile_shared.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/shared/tf2/plasmaprojectile_shared.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tf2/plasmaprojectile_shared.h')
-rw-r--r--game/shared/tf2/plasmaprojectile_shared.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/game/shared/tf2/plasmaprojectile_shared.h b/game/shared/tf2/plasmaprojectile_shared.h
new file mode 100644
index 0000000..2b112b8
--- /dev/null
+++ b/game/shared/tf2/plasmaprojectile_shared.h
@@ -0,0 +1,48 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef PLASMAPROJECTILE_SHARED_H
+#define PLASMAPROJECTILE_SHARED_H
+
+#ifndef _WIN32
+#pragma once
+#endif
+
+#include "predictable_entity.h"
+#include "server_class.h"
+#include "client_class.h"
+#include "mathlib/vector.h"
+
+class CPlasmaProjectileShared
+{
+public:
+ DECLARE_PREDICTABLE();
+ DECLARE_NETWORKCLASS_NOBASE();
+ DECLARE_CLASS_NOBASE( CPlasmaProjectileShared );
+ DECLARE_EMBEDDED_NETWORKVAR();
+
+public:
+ void Init( const Vector &vecStart, const Vector &vecDir, float flSpawnSpeed );
+ float GetSpawnTime() const { return m_flSpawnTime; }
+ void SetSpawnTime( float flSpawnTime );
+ void SetDeathTime( float flDeathTime );
+ float GetDeathTime() const { return m_flDeathTime; }
+
+ void ComputePosition( float flTime, Vector *pNewPosition, Vector *pNewVelocity, QAngle *pNewAngles, QAngle *pNewAngVelocity );
+
+ const Vector &TracerDir() { return m_vTracerDir.Get(); }
+
+private:
+ CNetworkVector( m_vTracerDir );
+ CNetworkVector( m_vecSpawnPosition );
+ CNetworkVar( float, m_flSpawnTime );
+ CNetworkVar( float, m_flSpawnSpeed );
+ CNetworkVar( float, m_flDeathTime );
+};
+
+
+#endif // PLASMAPROJECTILE_SHARED_H