Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
armor.qc
Go to the documentation of this file.
1#include "armor.qh"
2
3#ifdef MENUQC
5
6#define PAR_DEFAULT_PICKUP_ARMOR(s) \
7 PAR(_("By default, the pickup gives you %s armor."), strcat("^9", cvar_defstring(strcat("g_pickup_armor", s)), "^7"));
8
9METHOD(ArmorSmall, describe, string(ArmorSmall this))
10{
11 TC(ArmorSmall, this);
13 PAR(_("The %s provides you a small amount of armor when picked up, "
14 "protecting you from damage by absorbing incoming hits until it is depleted."), COLORED_NAME(this));
16 return PAGE_TEXT;
17}
18
19METHOD(ArmorMedium, describe, string(ArmorMedium this))
20{
21 TC(ArmorMedium, this);
23 PAR(_("The %s provides you a medium amount of armor when picked up, "
24 "protecting you from damage by absorbing incoming hits until it is depleted."), COLORED_NAME(this));
26 return PAGE_TEXT;
27}
28
29METHOD(ArmorBig, describe, string(ArmorBig this))
30{
31 TC(ArmorBig, this);
33 PAR(_("The %s provides you a large amount of armor when picked up, "
34 "protecting you from damage by absorbing incoming hits until it is depleted."), COLORED_NAME(this));
36 return PAGE_TEXT;
37}
38
39METHOD(ArmorMega, describe, string(ArmorMega this))
40{
41 TC(ArmorMega, this);
43 PAR(_("The %s provides you a huge amount of armor when picked up, "
44 "protecting you from damage by absorbing incoming hits until it is depleted."), 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_ARMOR
51#endif
#define PAR_DEFAULT_PICKUP_ARMOR(s)
Definition armor.qc:6
#define COLORED_NAME(this)
Definition color.qh:195
#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