Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
buffs.qc File Reference
#include "buffs.qh"
Include dependency graph for buffs.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string Buff_CompatName (string buffname)
string BUFF_NAME (int i)
 REPLICATE (cvar_cl_buffs_autoreplace, bool, "cl_buffs_autoreplace")

Function Documentation

◆ Buff_CompatName()

string Buff_CompatName ( string buffname)

Definition at line 10 of file buffs.qc.

11{
12 switch (buffname)
13 {
14 case "ammoregen": return "ammo"; // Q3TA ammoregen
15 case "doubler": return "inferno"; // Q3TA doubler
16 case "scout": return "bash"; // Q3TA scout
17 case "guard": return "resistance"; // Q3TA guard
18 case "revival": case "regen": return "medic"; // WOP revival, Q3A regen
19 case "jumper": return "jump"; // WOP jumper
20 case "invulnerability": return "vampire"; // Q3TA invulnerability
21 case "kamikaze": return "vengeance"; // Q3TA kamikaze
22 case "teleporter": return "swapper"; // Q3A personal teleporter
23 default: return buffname;
24 }
25}

Referenced by GiveItems().

◆ BUFF_NAME()

string BUFF_NAME ( int i)

Definition at line 3 of file buffs.qc.

4{
5 Buff b = REGISTRY_GET(StatusEffects, i);
7}
Definition buffs.qh:17
string m_name
Definition buffs.qh:23
vector m_color
Definition buffs.qh:22
ERASEABLE string rgb_to_hexcolor(vector rgb)
Definition color.qh:183
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define REGISTRY_GET(id, i)
Definition registry.qh:43

References Buff::m_color, Buff::m_name, REGISTRY_GET, rgb_to_hexcolor(), and strcat().

◆ REPLICATE()

REPLICATE ( cvar_cl_buffs_autoreplace ,
bool ,
"cl_buffs_autoreplace"  )