Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
jetpack.qc
Go to the documentation of this file.
1#include "jetpack.qh"
2
3#ifdef SVQC
5
6METHOD(Jetpack, m_spawnfunc_hookreplace, GameItem(Jetpack this, entity e))
7{
8 if (start_items & ITEM_Jetpack.m_itemid)
9 return ITEM_Fuel;
10 return this;
11}
12#endif
13
14#ifdef MENUQC
15METHOD(Jetpack, describe, string(Jetpack this))
16{
17 TC(Jetpack, this);
19 PAR(_("The %s powerup allows you to fly around the map for a short period, "
20 "providing increased mobility, maneuverability, and the ability to reach higher ground."), COLORED_NAME(this));
21 PAR(_("It consumes %s ammo while operating, so make sure you don't run out when you're high up!"), COLORED_NAME(ITEM_Fuel));
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