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.

33 lines
738 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. // NVNT haptics for Team Fortress 2
  3. #ifndef C_TF_HAPTICS_H
  4. #define C_TF_HAPTICS_H
  5. class C_TFPlayer;
  6. #include "haptics/haptic_utils.h"
  7. class C_TFHaptics {
  8. protected:
  9. C_TFHaptics();
  10. public:
  11. bool wasCloaked : 1;
  12. bool wasFullyCloaked : 1;
  13. bool wasUber : 1;
  14. bool wasBurning :1;
  15. bool wasHealing : 1;
  16. bool isBeingHealed : 1;
  17. bool wasBeingHealed : 1;
  18. bool wasBeingHealedMedic : 1;
  19. bool wasBeingTeleported :1;
  20. bool skippedFirstCloak:1;
  21. bool readyForCloak:1;
  22. unsigned int healingDispenserCount:16;//short
  23. void Revert();
  24. // should only be local player!
  25. void HapticsThink(C_TFPlayer *player);
  26. };
  27. extern C_TFHaptics &tfHaptics;
  28. #endif // C_TF_HAPTICS_H