summaryrefslogtreecommitdiff
path: root/game/shared/tf/baseobject_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/tf/baseobject_shared.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tf/baseobject_shared.h')
-rw-r--r--game/shared/tf/baseobject_shared.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/game/shared/tf/baseobject_shared.h b/game/shared/tf/baseobject_shared.h
new file mode 100644
index 0000000..9d3f632
--- /dev/null
+++ b/game/shared/tf/baseobject_shared.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef BASEOBJECT_SHARED_H
+#define BASEOBJECT_SHARED_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "tf_shareddefs.h"
+
+#if defined( CLIENT_DLL )
+#define CBaseObject C_BaseObject
+#endif
+
+class CBaseObject;
+typedef CHandle<CBaseObject> ObjectHandle;
+struct BuildPoint_t
+{
+ // If this is true, then objects are parented to the attachment point instead of
+ // parented to the entity's abs origin + angles. That way, they'll move if the
+ // attachment point animates.
+ bool m_bPutInAttachmentSpace;
+
+ int m_iAttachmentNum;
+ ObjectHandle m_hObject;
+ bool m_bValidObjects[ OBJ_LAST ];
+};
+
+#define TF_OBJ_GROUND_CLEARANCE 32
+
+// Shared header file for players
+#if defined( CLIENT_DLL )
+#include "c_baseobject.h"
+#else
+#include "tf_obj.h"
+#endif
+
+#endif // BASEOBJECT_SHARED_H