Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
fuelregen.qc
Go to the documentation of this file.
1#include "fuelregen.qh"
2
3#ifdef SVQC
5
6METHOD(FuelRegen, m_spawnfunc_hookreplace, GameItem(FuelRegen this, entity e))
7{
8 if (start_items & ITEM_FuelRegen.m_itemid)
9 return ITEM_Fuel;
10 return this;
11}
12#endif
13
14#ifdef MENUQC
15METHOD(FuelRegen, describe, string(FuelRegen this))
16{
17 TC(FuelRegen, this);
19 PAR(_("The %s powerup regenerates %s needed for the %s until the powerup expires, "
20 "so you can continue flying around for longer."), COLORED_NAME(this), COLORED_NAME(ITEM_Fuel), COLORED_NAME(ITEM_Jetpack));
21 PAR(_("Since it is a powerup, it will drop if you die while holding it.")); // shared message
22 return PAGE_TEXT;
23}
24#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#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
int start_items
Definition world.qh:83