]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/resources.qh
Merge branch 'master' into Lyberta/TeamplayOverhaul
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / resources.qh
1 #pragma once
2
3 /// \file
4 /// \brief Header file that describes resource types.
5 /// \author Lyberta
6 /// \copyright GNU GPLv2 or any later version.
7
8 /// \brief Unconditional maximum amount of resources the entity can have.
9 const int RESOURCE_AMOUNT_HARD_LIMIT = 999;
10
11 /// \brief Describes the available resource types.
12 enum
13 {
14         RESOURCE_NONE, ///< Indicates the lack of resource. Use with caution.
15         RESOURCE_HEALTH, ///< Health.
16         RESOURCE_ARMOR, ///< Armor.
17         RESOURCE_SHELLS, ///< Shells (used by shotgun).
18         RESOURCE_BULLETS, ///< Bullets (used by machinegun, rifle, HMG)
19         RESOURCE_ROCKETS, ///< Rockets (used by mortar, hagar, devastator, etc).
20         RESOURCE_CELLS, ///< Cells (used by electro, crylink, vortex, etc)
21         RESOURCE_PLASMA, ///< Plasma (unused).
22         RESOURCE_FUEL ///< Fuel (used by jetpack).
23 };