summaryrefslogtreecommitdiff
path: root/public/haptics/haptic_msgs.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 /public/haptics/haptic_msgs.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/haptics/haptic_msgs.h')
-rw-r--r--public/haptics/haptic_msgs.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/public/haptics/haptic_msgs.h b/public/haptics/haptic_msgs.h
new file mode 100644
index 0000000..a7e4df1
--- /dev/null
+++ b/public/haptics/haptic_msgs.h
@@ -0,0 +1,34 @@
+#ifndef HAPTIC_MSGS_H
+#define HAPTIC_MSGS_H
+
+void RegisterHapticMessages(void);
+
+//-----------------------------------------------------------------------------
+// Server
+//-----------------------------------------------------------------------------
+#ifndef CLIENT_DLL
+ void HapticMsg_SendWeaponAnim( CBasePlayer *pPlayer, int iActivity );
+ void HapticMsg_SetDrag(CBasePlayer* pPlayer, float drag);
+ void HapticMsg_SetConstantForce(CBasePlayer* pPlayer, Vector force);
+ void HapticMsg_HapDmg(CBasePlayer* pPlayer, float pitch, float yaw, float dmg, float dmgType );
+ void HapticMsg_Punch(CBasePlayer* pPlayer, float x, float y, float z);
+ void HapticMsg_MeleeContact(CBasePlayer* pPlayer);
+#endif // !CLIENT_DLL
+
+//-----------------------------------------------------------------------------
+// Client
+//-----------------------------------------------------------------------------
+#ifdef CLIENT_DLL
+ void HookHapticMessages(void);
+
+ void __MsgFunc_SPHapWeapEvent( bf_read &HapticMsg );
+ void __MsgFunc_HapDmg( bf_read &HapticMsg );
+ void __MsgFunc_HapSetConst( bf_read &HapticMsg );
+ void __MsgFunc_HapPunch( bf_read &HapticMsg );
+ void __MsgFunc_HapGeneric( bf_read &HapticMsg );
+ void __MsgFunc_HapSetDrag( bf_read &HapticMsg );
+ void __MsgFunc_HapSetDrag( bf_read &HapticMsg );
+ void __MsgFunc_HapMeleeContact( bf_read &HapticMsg );
+#endif // CLIENT_DLL
+
+#endif // HAPTIC_MSGS_H