aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/death_pose.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/shared/death_pose.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/shared/death_pose.h')
-rw-r--r--mp/src/game/shared/death_pose.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/mp/src/game/shared/death_pose.h b/mp/src/game/shared/death_pose.h
new file mode 100644
index 00000000..5098eb44
--- /dev/null
+++ b/mp/src/game/shared/death_pose.h
@@ -0,0 +1,35 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef DEATH_POSE_H
+#define DEATH_POSE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+enum
+{
+ DEATH_FRAME_HEAD = 1,
+ DEATH_FRAME_STOMACH,
+ DEATH_FRAME_LEFTARM,
+ DEATH_FRAME_RIGHTARM,
+ DEATH_FRAME_LEFTLEG,
+ DEATH_FRAME_RIGHTLEG,
+ MAX_DEATHPOSE_FRAMES = DEATH_FRAME_RIGHTLEG
+};
+
+#ifdef CLIENT_DLL
+
+void GetRagdollCurSequenceWithDeathPose( C_BaseAnimating *entity, matrix3x4_t *curBones, float flTime, int activity, int frame );
+
+#else // !CLIENT_DLL
+
+/// Calculates death pose activity and frame
+void SelectDeathPoseActivityAndFrame( CBaseAnimating *entity, const CTakeDamageInfo &info, int hitgroup, Activity& activity, int& frame );
+
+#endif // !CLIENT_DLL
+
+#endif // DEATH_POSE_H