Counter Strike : Global Offensive Source Code
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.

73 lines
1.9 KiB

  1. //======= Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: Shared code for XBox Rumble Effects
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #pragma once
  9. #ifndef RUMBLE_SHARED_H
  10. #define RUMBLE_SHARED_H
  11. #define RUMBLE_FLAGS_NONE 0x0000
  12. #define RUMBLE_FLAG_STOP 0x0001 // Stop any instance of this type of effect that's already playing.
  13. #define RUMBLE_FLAG_LOOP 0x0002 // Make this effect loop.
  14. #define RUMBLE_FLAG_RESTART 0x0004 // If this effect is already playing, restart it.
  15. #define RUMBLE_FLAG_UPDATE_SCALE 0x0008 // Apply DATA to this effect if already playing, but don't restart.
  16. #define RUMBLE_FLAG_ONLYONE 0x0010 // Don't play this effect if it is already playing.
  17. #define RUMBLE_FLAG_RANDOM_AMPLITUDE 0x0020 // Amplitude scale will be randomly chosen. Between 10% and 100%
  18. #define RUMBLE_FLAG_INITIAL_SCALE 0x0040 // Data is the initial scale to start this effect ( * 100 )
  19. enum
  20. {
  21. // DO NOT CHANGE THE ORDER OF ANY OF THESE ENUMS
  22. // DO NOT INSERT ANY ITEMS
  23. RUMBLE_INVALID = -1,
  24. RUMBLE_STOP_ALL = 0, // Cease all current rumbling effects.
  25. // Weapons
  26. RUMBLE_PISTOL,
  27. RUMBLE_357,
  28. RUMBLE_SMG1,
  29. RUMBLE_AR2,
  30. RUMBLE_SHOTGUN_SINGLE,
  31. RUMBLE_SHOTGUN_DOUBLE,
  32. RUMBLE_AR2_ALT_FIRE,
  33. // YOU MAY INSERT/REARRANGE ITEMS FROM HERE DOWN, AS YOU SEE FIT
  34. RUMBLE_RPG_MISSILE,
  35. RUMBLE_CROWBAR_SWING,
  36. // Vehicles
  37. RUMBLE_AIRBOAT_GUN,
  38. RUMBLE_JEEP_ENGINE_LOOP,
  39. RUMBLE_FLAT_LEFT,
  40. RUMBLE_FLAT_RIGHT,
  41. RUMBLE_FLAT_BOTH,
  42. // Damage
  43. RUMBLE_DMG_LOW,
  44. RUMBLE_DMG_MED,
  45. RUMBLE_DMG_HIGH,
  46. // Fall damage
  47. RUMBLE_FALL_LONG,
  48. RUMBLE_FALL_SHORT,
  49. RUMBLE_PHYSCANNON_OPEN,
  50. RUMBLE_PHYSCANNON_PUNT,
  51. RUMBLE_PHYSCANNON_LOW,
  52. RUMBLE_PHYSCANNON_MEDIUM,
  53. RUMBLE_PHYSCANNON_HIGH,
  54. RUMBLE_PORTALGUN_LEFT,
  55. RUMBLE_PORTALGUN_RIGHT,
  56. RUMBLE_PORTAL_PLACEMENT_FAILURE,
  57. NUM_RUMBLE_EFFECTS, // THIS MUST BE LAST!!!
  58. };
  59. #endif//RUMBLE_SHARED_H