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

Go to the source code of this file.

Macros

#define REGISTER_ITEM(id, inst)

Functions

void Dump_Items ()
 GENERIC_COMMAND (dumpitems, "Dump all items to the console", false)
string Item_Model (string item_mdl)
 STATIC_INIT (default_order_items)
 STATIC_INIT (Items)

Variables

IntrusiveList default_order_items

Macro Definition Documentation

◆ REGISTER_ITEM

#define REGISTER_ITEM ( id,
inst )

Function Documentation

◆ Dump_Items()

void Dump_Items ( )

Definition at line 3 of file all.qc.

4{
5 FOREACH(Items, true, ITEM_HANDLE(Show, it));
6}
#define ITEM_HANDLE(signal,...)
Definition item.qh:125
#define FOREACH(list, cond, body)
Definition iter.qh:19

References FOREACH, and ITEM_HANDLE.

Referenced by GENERIC_COMMAND().

◆ GENERIC_COMMAND()

GENERIC_COMMAND ( dumpitems ,
"Dump all items to the console" ,
false  )

Definition at line 36 of file all.qh.

36 {
37 switch (request) {
39 Dump_Items();
40 return;
41 }
42 default:
43 case CMD_REQUEST_USAGE: {
44 LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " dumpitems");
45 return;
46 }
47 }
48}
const int CMD_REQUEST_COMMAND
Definition command.qh:3
const int CMD_REQUEST_USAGE
Definition command.qh:4
#define GetProgramCommandPrefix()
Definition generic.qh:25
void Dump_Items()
Definition all.qc:3
#define LOG_HELP(...)
Definition log.qh:85

References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, Dump_Items(), GetProgramCommandPrefix, and LOG_HELP.

◆ Item_Model()

string Item_Model ( string item_mdl)

Definition at line 8 of file all.qc.

9{
10 string output = strcat("models/items/", item_mdl);
11#ifdef SVQC
12 MUTATOR_CALLHOOK(ItemModel, item_mdl, output);
13 output = M_ARGV(1, string);
14#endif
15 return output;
16}
#define MUTATOR_CALLHOOK(id,...)
Definition base.qh:143
#define M_ARGV(x, type)
Definition events.qh:17
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))

References M_ARGV, MUTATOR_CALLHOOK, and strcat().

◆ STATIC_INIT() [1/2]

STATIC_INIT ( default_order_items )

Definition at line 19 of file all.qh.

20{
22 FOREACH(Items, true, {
24 });
25}
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define IL_NEW()
IntrusiveList default_order_items
Definition all.qh:18

References default_order_items, FOREACH, IL_NEW, and IL_PUSH().

◆ STATIC_INIT() [2/2]

STATIC_INIT ( Items )

Definition at line 32 of file all.qh.

32{ FOREACH(Items, true, it.m_id = i); }

References FOREACH, and STATIC_INIT.

Variable Documentation

◆ default_order_items

IntrusiveList default_order_items

Definition at line 18 of file all.qh.

Referenced by Scoreboard_ItemStats_Draw(), Scoreboard_ItemStats_WouldDraw(), and STATIC_INIT().