diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/hl2/item_dynamic_resupply.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/hl2/item_dynamic_resupply.h')
| -rw-r--r-- | sp/src/game/server/hl2/item_dynamic_resupply.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sp/src/game/server/hl2/item_dynamic_resupply.h b/sp/src/game/server/hl2/item_dynamic_resupply.h new file mode 100644 index 00000000..f5d4d65d --- /dev/null +++ b/sp/src/game/server/hl2/item_dynamic_resupply.h @@ -0,0 +1,25 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef ITEM_DYNAMIC_RESUPPLY_H
+#define ITEM_DYNAMIC_RESUPPLY_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+// Spawnflags
+#define SF_DYNAMICRESUPPLY_USE_MASTER 1
+#define SF_DYNAMICRESUPPLY_IS_MASTER 2
+#define SF_DYNAMICRESUPPLY_ALWAYS_SPAWN 4 // even if the player has met his target
+#define SF_DYNAMICRESUPPLY_FALLBACK_TO_VIAL 8 // If we fail to spawn anything, spawn a health vial
+#define SF_DYNAMICRESUPPLY_ALTERNATE_MASTER 16 // Don't assume role as master on activate, but don't think either
+
+float DynamicResupply_GetDesiredHealthPercentage( void );
+void DynamicResupply_InitFromAlternateMaster( CBaseEntity *pResupply, string_t iszMaster );
+
+#endif // ITEM_DYNAMIC_RESUPPLY_H
|