Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

  1. #ifndef HAPTIC_MSGS_H
  2. #define HAPTIC_MSGS_H
  3. void RegisterHapticMessages(void);
  4. //-----------------------------------------------------------------------------
  5. // Server
  6. //-----------------------------------------------------------------------------
  7. #ifndef CLIENT_DLL
  8. void HapticMsg_SendWeaponAnim( CBasePlayer *pPlayer, int iActivity );
  9. void HapticMsg_SetDrag(CBasePlayer* pPlayer, float drag);
  10. void HapticMsg_SetConstantForce(CBasePlayer* pPlayer, Vector force);
  11. void HapticMsg_HapDmg(CBasePlayer* pPlayer, float pitch, float yaw, float dmg, float dmgType );
  12. void HapticMsg_Punch(CBasePlayer* pPlayer, float x, float y, float z);
  13. void HapticMsg_MeleeContact(CBasePlayer* pPlayer);
  14. #endif // !CLIENT_DLL
  15. //-----------------------------------------------------------------------------
  16. // Client
  17. //-----------------------------------------------------------------------------
  18. #ifdef CLIENT_DLL
  19. void HookHapticMessages(void);
  20. void __MsgFunc_SPHapWeapEvent( bf_read &HapticMsg );
  21. void __MsgFunc_HapDmg( bf_read &HapticMsg );
  22. void __MsgFunc_HapSetConst( bf_read &HapticMsg );
  23. void __MsgFunc_HapPunch( bf_read &HapticMsg );
  24. void __MsgFunc_HapGeneric( bf_read &HapticMsg );
  25. void __MsgFunc_HapSetDrag( bf_read &HapticMsg );
  26. void __MsgFunc_HapSetDrag( bf_read &HapticMsg );
  27. void __MsgFunc_HapMeleeContact( bf_read &HapticMsg );
  28. #endif // CLIENT_DLL
  29. #endif // HAPTIC_MSGS_H