|
string | NameForNum (int ammoID) |
| Find out the internal name of an ammo ID. More...
|
|
int | NumForName (string ammoName) |
| Get the internal ID of an ammo type. More...
|
|
int | MaxForName (string ammoName) |
| Find out the maximum ammo of a named ammo type. More...
|
|
int | MaxForNum (int ammoID) |
| Find out the maximum ammo of a ammo type given the ID. More...
|
|
◆ MaxForName()
int ammoAPI_t::MaxForName |
( |
string |
ammoName | ) |
|
Find out the maximum ammo of a named ammo type.
- Parameters
-
ammoName | is the name of the ammo type, such as "ammo_bullets" . |
- Returns
- the max ammo given name of ammo. Returns
0i
when invalid.
◆ MaxForNum()
int ammoAPI_t::MaxForNum |
( |
int |
ammoID | ) |
|
Find out the maximum ammo of a ammo type given the ID.
- Parameters
-
ammoID | is the unique identifier for an ammo type. |
- Returns
- integer value containing the max ammo count. Returns
0i
when invalid.
◆ NameForNum()
string ammoAPI_t::NameForNum |
( |
int |
ammoID | ) |
|
Find out the internal name of an ammo ID.
These match the names provided in the ammo decl.
- Parameters
-
ammoID | is the unique identifier for an ammo type. |
- Returns
- string containing the name of the specified ammo type. Returns
__NULL__
when invalid.
◆ NumForName()
int ammoAPI_t::NumForName |
( |
string |
ammoName | ) |
|
Get the internal ID of an ammo type.
- Parameters
-
ammoName | is the name of the ammo type, such as "ammo_shells" . |
- Returns
- the ammo id of a given name of ammo. Return
-1i
when invalid.
The documentation for this struct was generated from the following file: