Xonotic
nades.qh File Reference
#include <common/teams.qh>
#include "nades.inc"
+ Include dependency graph for nades.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Nade
 

Macros

#define REGISTER_NADE(id)   REGISTER(Nades, NADE_TYPE, id, m_id, NEW(Nade))
 

Functions

Nade Nade_FromProjectile (int proj)
 
 REGISTER_NADE (Null)
 

Variables

float orb_lifetime
 
float orb_radius
 
const int PROJECTILE_NADE = 71
 
const int PROJECTILE_NADE_BURN = 72
 
const int PROJECTILE_NADE_ENTRAP = 84
 
const int PROJECTILE_NADE_ENTRAP_BURN = 85
 
const int PROJECTILE_NADE_HEAL = 80
 
const int PROJECTILE_NADE_HEAL_BURN = 81
 
const int PROJECTILE_NADE_ICE = 76
 
const int PROJECTILE_NADE_ICE_BURN = 77
 
const int PROJECTILE_NADE_MONSTER = 82
 
const int PROJECTILE_NADE_MONSTER_BURN = 83
 
const int PROJECTILE_NADE_NAPALM = 73
 
const int PROJECTILE_NADE_NAPALM_BURN = 74
 
const int PROJECTILE_NADE_SPAWN = 79
 
const int PROJECTILE_NADE_TRANSLOCATE = 78
 
const int PROJECTILE_NADE_VEIL = 86
 
const int PROJECTILE_NADE_VEIL_BURN = 87
 
const int PROJECTILE_NAPALM_FOUNTAIN = 75
 

Macro Definition Documentation

◆ REGISTER_NADE

#define REGISTER_NADE (   id)    REGISTER(Nades, NADE_TYPE, id, m_id, NEW(Nade))

Definition at line 94 of file nades.qh.

Referenced by Nade::Nade ::display().

Function Documentation

◆ Nade_FromProjectile()

Nade Nade_FromProjectile ( int  proj)

Definition at line 112 of file nades.qh.

References FOREACH.

113 {
114  FOREACH(Nades, true, {
115  for (int j = 0; j < 2; j++)
116  {
117  if (it.m_projectile[j] == proj) return it;
118  }
119  });
120  return NADE_TYPE_Null;
121 }
#define FOREACH(list, cond, body)
Definition: iter.qh:19

◆ REGISTER_NADE()

REGISTER_NADE ( Null  )

Variable Documentation

◆ orb_lifetime

float orb_lifetime

Definition at line 129 of file nades.qh.

◆ orb_radius

float orb_radius

Definition at line 130 of file nades.qh.

◆ PROJECTILE_NADE

const int PROJECTILE_NADE = 71

Definition at line 72 of file nades.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NADE_BURN

const int PROJECTILE_NADE_BURN = 72

Definition at line 73 of file nades.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NADE_ENTRAP

const int PROJECTILE_NADE_ENTRAP = 84

Definition at line 85 of file nades.qh.

◆ PROJECTILE_NADE_ENTRAP_BURN

const int PROJECTILE_NADE_ENTRAP_BURN = 85

Definition at line 86 of file nades.qh.

◆ PROJECTILE_NADE_HEAL

const int PROJECTILE_NADE_HEAL = 80

Definition at line 81 of file nades.qh.

◆ PROJECTILE_NADE_HEAL_BURN

const int PROJECTILE_NADE_HEAL_BURN = 81

Definition at line 82 of file nades.qh.

◆ PROJECTILE_NADE_ICE

const int PROJECTILE_NADE_ICE = 76

Definition at line 77 of file nades.qh.

◆ PROJECTILE_NADE_ICE_BURN

const int PROJECTILE_NADE_ICE_BURN = 77

Definition at line 78 of file nades.qh.

◆ PROJECTILE_NADE_MONSTER

const int PROJECTILE_NADE_MONSTER = 82

Definition at line 83 of file nades.qh.

◆ PROJECTILE_NADE_MONSTER_BURN

const int PROJECTILE_NADE_MONSTER_BURN = 83

Definition at line 84 of file nades.qh.

◆ PROJECTILE_NADE_NAPALM

const int PROJECTILE_NADE_NAPALM = 73

Definition at line 74 of file nades.qh.

◆ PROJECTILE_NADE_NAPALM_BURN

const int PROJECTILE_NADE_NAPALM_BURN = 74

Definition at line 75 of file nades.qh.

◆ PROJECTILE_NADE_SPAWN

const int PROJECTILE_NADE_SPAWN = 79

Definition at line 80 of file nades.qh.

◆ PROJECTILE_NADE_TRANSLOCATE

const int PROJECTILE_NADE_TRANSLOCATE = 78

Definition at line 79 of file nades.qh.

◆ PROJECTILE_NADE_VEIL

const int PROJECTILE_NADE_VEIL = 86

Definition at line 87 of file nades.qh.

◆ PROJECTILE_NADE_VEIL_BURN

const int PROJECTILE_NADE_VEIL_BURN = 87

Definition at line 88 of file nades.qh.

◆ PROJECTILE_NAPALM_FOUNTAIN

const int PROJECTILE_NAPALM_FOUNTAIN = 75

Definition at line 76 of file nades.qh.