Xonotic
all.inc File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AmmoBuff
 
class  BashBuff
 
class  DisabilityBuff
 
class  Disabled
 
class  FlightBuff
 
class  InfernoBuff
 
class  JumpBuff
 
class  LuckBuff
 
class  MagnetBuff
 
class  MedicBuff
 
class  ResistanceBuff
 
class  SwapperBuff
 
class  VampireBuff
 
class  VengeanceBuff
 

Functions

string Buff_UndeprecateName (string buffname)
 
 REGISTER_BUFF (AMMO, NEW(AmmoBuff))
 
 REGISTER_BUFF (RESISTANCE, NEW(ResistanceBuff))
 
 REGISTER_BUFF (MEDIC, NEW(MedicBuff))
 
 REGISTER_BUFF (BASH, NEW(BashBuff))
 
 REGISTER_BUFF (VAMPIRE, NEW(VampireBuff))
 
 REGISTER_BUFF (DISABILITY, NEW(DisabilityBuff))
 
 REGISTER_BUFF (VENGEANCE, NEW(VengeanceBuff))
 
 REGISTER_BUFF (JUMP, NEW(JumpBuff))
 
 REGISTER_BUFF (INFERNO, NEW(InfernoBuff))
 
 REGISTER_BUFF (SWAPPER, NEW(SwapperBuff))
 
 REGISTER_BUFF (MAGNET, NEW(MagnetBuff))
 
 REGISTER_BUFF (LUCK, NEW(LuckBuff))
 
 REGISTER_BUFF (FLIGHT, NEW(FlightBuff))
 
 REGISTER_STATUSEFFECT (Disabled, NEW(Disabled))
 

Function Documentation

◆ Buff_UndeprecateName()

string Buff_UndeprecateName ( string  buffname)

Definition at line 1 of file all.inc.

Referenced by GiveItems().

2 {
3  switch(buffname)
4  {
5  case "ammoregen": return "ammo"; // Q3TA ammoregen
6  case "doubler": return "inferno"; // Q3TA doubler
7  case "scout": return "bash"; // Q3TA scout
8  case "guard": return "resistance"; // Q3TA guard
9  case "revival": case "regen": return "medic"; // WOP revival, Q3A regen
10  case "jumper": return "jump"; // WOP jumper
11  case "invulnerability": return "vampire"; // Q3TA invulnerability
12  case "kamikaze": return "vengeance"; // Q3TA kamikaze
13  case "teleporter": return "swapper"; // Q3A personal teleporter
14  default: return buffname;
15  }
16 }
+ Here is the caller graph for this function:

◆ REGISTER_BUFF() [1/13]

REGISTER_BUFF ( AMMO  ,
NEW(AmmoBuff  
)

◆ REGISTER_BUFF() [2/13]

REGISTER_BUFF ( RESISTANCE  ,
NEW(ResistanceBuff  
)

◆ REGISTER_BUFF() [3/13]

REGISTER_BUFF ( MEDIC  ,
NEW(MedicBuff  
)

◆ REGISTER_BUFF() [4/13]

REGISTER_BUFF ( BASH  ,
NEW(BashBuff  
)

◆ REGISTER_BUFF() [5/13]

REGISTER_BUFF ( VAMPIRE  ,
NEW(VampireBuff  
)

◆ REGISTER_BUFF() [6/13]

REGISTER_BUFF ( DISABILITY  ,
NEW(DisabilityBuff  
)

◆ REGISTER_BUFF() [7/13]

REGISTER_BUFF ( VENGEANCE  ,
NEW(VengeanceBuff  
)

◆ REGISTER_BUFF() [8/13]

REGISTER_BUFF ( JUMP  ,
NEW(JumpBuff  
)

◆ REGISTER_BUFF() [9/13]

REGISTER_BUFF ( INFERNO  ,
NEW(InfernoBuff  
)

◆ REGISTER_BUFF() [10/13]

REGISTER_BUFF ( SWAPPER  ,
NEW(SwapperBuff  
)

◆ REGISTER_BUFF() [11/13]

REGISTER_BUFF ( MAGNET  ,
NEW(MagnetBuff  
)

◆ REGISTER_BUFF() [12/13]

REGISTER_BUFF ( LUCK  ,
NEW(LuckBuff  
)

◆ REGISTER_BUFF() [13/13]

REGISTER_BUFF ( FLIGHT  ,
NEW(FlightBuff  
)

◆ REGISTER_STATUSEFFECT()

REGISTER_STATUSEFFECT ( Disabled  ,
NEW(Disabled  
)