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.

25 lines
863 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ITEM_DYNAMIC_RESUPPLY_H
  7. #define ITEM_DYNAMIC_RESUPPLY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Spawnflags
  12. #define SF_DYNAMICRESUPPLY_USE_MASTER 1
  13. #define SF_DYNAMICRESUPPLY_IS_MASTER 2
  14. #define SF_DYNAMICRESUPPLY_ALWAYS_SPAWN 4 // even if the player has met his target
  15. #define SF_DYNAMICRESUPPLY_FALLBACK_TO_VIAL 8 // If we fail to spawn anything, spawn a health vial
  16. #define SF_DYNAMICRESUPPLY_ALTERNATE_MASTER 16 // Don't assume role as master on activate, but don't think either
  17. float DynamicResupply_GetDesiredHealthPercentage( void );
  18. void DynamicResupply_InitFromAlternateMaster( CBaseEntity *pResupply, string_t iszMaster );
  19. #endif // ITEM_DYNAMIC_RESUPPLY_H