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)
 REPLICATE (cvar_cl_buffs_autoreplace, bool, "cl_buffs_autoreplace")

Function Documentation

◆ Buff_CompatName()

string Buff_CompatName ( string buffname)

Definition at line 4 of file buffs.qc.

5{
6 switch (buffname)
7 {
8 case "ammoregen": return "ammo"; // Q3TA ammoregen
9 case "doubler": return "inferno"; // Q3TA doubler
10 case "scout": return "bash"; // Q3TA scout
11 case "guard": return "resistance"; // Q3TA guard
12 case "revival": case "regen": return "medic"; // WOP revival, Q3A regen
13 case "jumper": return "jump"; // WOP jumper
14 case "invulnerability": return "vampire"; // Q3TA invulnerability
15 case "kamikaze": return "vengeance"; // Q3TA kamikaze
16 case "teleporter": return "swapper"; // Q3A personal teleporter
17 default: return buffname;
18 }
19}

Referenced by GiveItems().

◆ REPLICATE()

REPLICATE ( cvar_cl_buffs_autoreplace ,
bool ,
"cl_buffs_autoreplace"  )