Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
health.qc
Go to the documentation of this file.
1#include "health.qh"
2
3#ifdef MENUQC
5
6#define PAR_DEFAULT_PICKUP_HEALTH(s) \
7 PAR(_("By default, the pickup gives you %s health."), strcat("^9", cvar_defstring(strcat("g_pickup_health", s)), "^7"));
8
9METHOD(HealthSmall, describe, string(HealthSmall this))
10{
11 TC(HealthSmall, this);
13 PAR(_("The %s restores a small amount of health when picked up, "
14 "helping you recover from damage taken during combat."), COLORED_NAME(this));
16 return PAGE_TEXT;
17}
18
19METHOD(HealthMedium, describe, string(HealthMedium this))
20{
21 TC(HealthMedium, this);
23 PAR(_("The %s restores a medium amount of health when picked up, "
24 "helping you recover from damage taken during combat."), COLORED_NAME(this));
26 return PAGE_TEXT;
27}
28
29METHOD(HealthBig, describe, string(HealthBig this))
30{
31 TC(HealthBig, this);
33 PAR(_("The %s restores a large amount of health when picked up, "
34 "helping you recover from damage taken during combat."), COLORED_NAME(this));
36 return PAGE_TEXT;
37}
38
39METHOD(HealthMega, describe, string(HealthMega this))
40{
41 TC(HealthMega, this);
43 PAR(_("The %s restores a huge amount of health when picked up, "
44 "helping you recover from damage taken during combat."), COLORED_NAME(this));
45 PAR(_("It tends to be one of the most highly contested items on a map, particularly in gametypes like %s."), COLORED_NAME(MAPINFO_TYPE_DUEL));
47 return PAGE_TEXT;
48}
49
50#undef DEFAULT_PICKUP_HEALTH
51#endif
#define COLORED_NAME(this)
Definition color.qh:195
#define PAR_DEFAULT_PICKUP_HEALTH(s)
Definition health.qc:6
#define TC(T, sym)
Definition _all.inc:82
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define PAGE_TEXT
Definition string.qh:643
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
Definition string.qh:649
#define PAGE_TEXT_INIT()
Definition string.qh:642