Xonotic
all.qc File Reference
#include "all.qh"
+ Include dependency graph for all.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Dump_Items ()
 
string Item_Model (string item_mdl)
 
string Item_Sound (string it_snd)
 

Function Documentation

◆ Dump_Items()

void Dump_Items ( )

Definition at line 3 of file all.qc.

References FOREACH, and ITEM_HANDLE.

Referenced by GENERIC_COMMAND(), and STATIC_INIT().

4 {
5  FOREACH(Items, true, ITEM_HANDLE(Show, it));
6 }
#define ITEM_HANDLE(signal,...)
Definition: item.qh:103
#define FOREACH(list, cond, body)
Definition: iter.qh:19
+ Here is the caller graph for this function:

◆ Item_Model()

string Item_Model ( string  item_mdl)

Definition at line 8 of file all.qc.

References M_ARGV, MUTATOR_CALLHOOK, and strcat().

Referenced by GENERIC_COMMAND().

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 }
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define M_ARGV(x, type)
Definition: events.qh:17
#define MUTATOR_CALLHOOK(id,...)
Definition: base.qh:140
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Item_Sound()

string Item_Sound ( string  it_snd)

Definition at line 18 of file all.qc.

References M_ARGV, MUTATOR_CALLHOOK, and strcat().

19 {
20  string output = strcat("misc/", it_snd);
21 #ifdef SVQC
22  MUTATOR_CALLHOOK(ItemSound, it_snd, output);
23  return M_ARGV(1, string);
24 #else
25  return output;
26 #endif
27 }
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
#define M_ARGV(x, type)
Definition: events.qh:17
#define MUTATOR_CALLHOOK(id,...)
Definition: base.qh:140
+ Here is the call graph for this function: