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.

39 lines
1.9 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef TRIGGERS_SHARED_H
  7. #define TRIGGERS_SHARED_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //
  12. // Spawnflags
  13. //
  14. enum
  15. {
  16. SF_TRIGGER_ALLOW_CLIENTS = 0x01, // Players can fire this trigger
  17. SF_TRIGGER_ALLOW_NPCS = 0x02, // NPCS can fire this trigger
  18. SF_TRIGGER_ALLOW_PUSHABLES = 0x04, // Pushables can fire this trigger
  19. SF_TRIGGER_ALLOW_PHYSICS = 0x08, // Physics objects can fire this trigger
  20. SF_TRIGGER_ONLY_PLAYER_ALLY_NPCS = 0x10, // *if* NPCs can fire this trigger, this flag means only player allies do so
  21. SF_TRIGGER_ONLY_CLIENTS_IN_VEHICLES = 0x20, // *if* Players can fire this trigger, this flag means only players inside vehicles can
  22. SF_TRIGGER_ALLOW_ALL = 0x40, // Everything can fire this trigger EXCEPT DEBRIS!
  23. SF_TRIGGER_ONLY_CLIENTS_OUT_OF_VEHICLES = 0x200, // *if* Players can fire this trigger, this flag means only players outside vehicles can
  24. SF_TRIG_PUSH_ONCE = 0x80, // trigger_push removes itself after firing once
  25. SF_TRIG_PUSH_AFFECT_PLAYER_ON_LADDER = 0x100, // if pushed object is player on a ladder, then this disengages them from the ladder (HL2only)
  26. SF_TRIG_TOUCH_DEBRIS = 0x400, // Will touch physics debris objects
  27. SF_TRIGGER_ONLY_NPCS_IN_VEHICLES = 0X800, // *if* NPCs can fire this trigger, only NPCs in vehicles do so (respects player ally flag too)
  28. SF_TRIGGER_PUSH_USE_MASS = 0x1000, // Correctly account for an entity's mass (CTriggerPush::Touch used to assume 100Kg)
  29. // and multiple component physobjs (car, blob...)
  30. };
  31. // Spawnflags for CTriggerPlayerMovement
  32. const int SF_TRIGGER_MOVE_AUTODISABLE = 0x0080; // Disable auto movement
  33. const int SF_TRIGGER_AUTO_DUCK = 0x0800; // Duck automatically
  34. const int SF_TRIGGER_AUTO_WALK = 0x1000; // Walk automatically
  35. #endif // TRIGGERS_SHARED_H