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.

65 lines
2.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "usermessages.h"
  8. #include "shake.h"
  9. #include "voice_gamemgr.h"
  10. // NVNT include to register in haptic user messages
  11. #include "haptics/haptic_msgs.h"
  12. void RegisterUserMessages()
  13. {
  14. usermessages->Register( "Geiger", 1 ); // geiger info data
  15. usermessages->Register( "Train", 1 ); // train control data
  16. usermessages->Register( "HudText", -1 );
  17. usermessages->Register( "SayText", -1 );
  18. usermessages->Register( "TextMsg", -1 );
  19. usermessages->Register( "ResetHUD", 1 ); // called every respawn
  20. usermessages->Register( "GameTitle", 0 ); // show game title
  21. usermessages->Register( "ItemPickup", -1 ); // for item history on screen
  22. usermessages->Register( "ShowMenu", -1 ); // show hud menu
  23. usermessages->Register( "Shake", 13 ); // shake view
  24. usermessages->Register( "Fade", 10 ); // fade HUD in/out
  25. usermessages->Register( "VGUIMenu", -1 ); // Show VGUI menu
  26. usermessages->Register( "Rumble", 3 ); // Send a rumble to a controller
  27. usermessages->Register( "CloseCaption", -1 ); // Show a caption (by string id number)(duration in 10th of a second)
  28. usermessages->Register( "VoiceMask", VOICE_MAX_PLAYERS_DW*4 * 2 + 1 );
  29. usermessages->Register( "RequestState", 0 );
  30. usermessages->Register( "BarTime", -1 ); // For the C4 progress bar.
  31. usermessages->Register( "Damage", -1 ); // for HUD damage indicators
  32. usermessages->Register( "RadioText", -1 ); // for HUD damage indicators
  33. usermessages->Register( "HintText", -1 ); // Displays hint text display
  34. usermessages->Register( "KeyHintText", -1 ); // Displays hint text display
  35. usermessages->Register( "ReloadEffect", 2 ); // a player reloading..
  36. usermessages->Register( "PlayerAnimEvent", -1 ); // jumping, firing, reload, etc.
  37. usermessages->Register( "HudMsg", -1 );
  38. usermessages->Register( "VoiceSubtitle", 3 );
  39. usermessages->Register( "HandSignalSubtitle", 2 );
  40. usermessages->Register( "UpdateRadar", -1 );
  41. usermessages->Register( "KillCam", -1 );
  42. usermessages->Register( "DeathStats", 9 );
  43. usermessages->Register( "AchievementEvent", -1 );
  44. usermessages->Register( "DODPlayerStatsUpdate", -1 );
  45. // Voting
  46. usermessages->Register( "CallVoteFailed", -1 );
  47. usermessages->Register( "VoteStart", -1 );
  48. usermessages->Register( "VotePass", -1 );
  49. usermessages->Register( "VoteFailed", 2 );
  50. usermessages->Register( "VoteSetup", -1 ); // Initiates client-side voting UI
  51. // NVNT register haptic user messages
  52. RegisterHapticMessages();
  53. }