Nuclide
Software Development Kit for id Tech
ammo.h File Reference

Ammo Handling Helper Functions. More...

Go to the source code of this file.

Functions

string ammoNameForNum (int)
 Returns the name of the specified ammo type. More...
 
int ammoNumForName (string)
 Returns the ammo id of a given name of ammo. More...
 

Detailed Description

Ammo Handling Helper Functions.

Helper functions for various ammo operations. This header can be included in other libraries and projects to help deal with these sorts of issues. It is usually included by default in a library project. If you want to include this file into your own progs, you can include math.h from src/shared/.

Function Documentation

◆ ammoNameForNum()

string ammoNameForNum ( int  )

Returns the name of the specified ammo type.

Returns NULL when invalid.

◆ ammoNumForName()

int ammoNumForName ( string  )

Returns the ammo id of a given name of ammo.

Return -1 when invalid.