Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
buffs.qc
Go to the documentation of this file.
1#include "buffs.qh"
2
3#ifdef SVQC
4string Buff_CompatName(string buffname)
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}
20#endif
21
22#ifdef GAMEQC
23REPLICATE(cvar_cl_buffs_autoreplace, bool, "cl_buffs_autoreplace");
24#endif
string Buff_CompatName(string buffname)
Definition buffs.qc:4
#define REPLICATE(...)
Replicates a client cvar into a server field.
Definition replicate.qh:23