Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ammo.qc File Reference
#include "ammo.qh"
#include <lib/counting.qh>
#include <common/weapons/all.qh>
Include dependency graph for ammo.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string count_ammo (int num, entity res)

Function Documentation

◆ count_ammo()

string count_ammo ( int num,
entity res )

Definition at line 5 of file ammo.qc.

6{
7 switch(res)
8 {
9 case RES_SHELLS: return count_shells(num);
10 case RES_BULLETS: return count_bullets(num);
11 case RES_ROCKETS: return count_rockets(num);
12 case RES_CELLS: return count_cells(num);
13 case RES_FUEL: return sprintf(_("%d fuel"), num);
14 }
15 return "";
16}
#define count_bullets(num)
Definition counting.qh:17
#define count_rockets(num)
Definition counting.qh:25
#define count_shells(num)
Definition counting.qh:9
#define count_cells(num)
Definition counting.qh:33

References count_bullets, count_cells, count_rockets, count_shells, and entity().

Referenced by notif_arg_item_wepammo().