Xonotic
all.qh File Reference
#include "monster.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 get_monsterinfo(i)   REGISTRY_GET(Monsters, i)
 
#define REGISTER_MONSTER(id, inst)   REGISTER(Monsters, MON, id, monsterid, inst)
 

Functions

string M_Model (string m_mdl)
 
 REGISTER_MONSTER (Null, NEW(Monster))
 

Macro Definition Documentation

◆ get_monsterinfo

#define get_monsterinfo (   i)    REGISTRY_GET(Monsters, i)

Definition at line 6 of file all.qh.

◆ REGISTER_MONSTER

#define REGISTER_MONSTER (   id,
  inst 
)    REGISTER(Monsters, MON, id, monsterid, inst)

Definition at line 9 of file all.qh.

Function Documentation

◆ M_Model()

string M_Model ( string  m_mdl)

Definition at line 3 of file all.qc.

References M_ARGV, MUTATOR_CALLHOOK, and strcat().

4 {
5  string output = strcat("models/monsters/", m_mdl);
6 #ifdef SVQC
7  MUTATOR_CALLHOOK(MonsterModel, m_mdl, output);
8  return M_ARGV(1, string);
9 #else
10  return output;
11 #endif
12 }
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:

◆ REGISTER_MONSTER()

REGISTER_MONSTER ( Null  ,
NEW(Monster  
)