Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ui_rocketflying.qc
Go to the documentation of this file.
1#include "ui_rocketflying.qh"
2
4
6{
8 me.configureDialog(me);
9 return me;
10}
11
13{
14 entity e;
15
17
18 me.TR(me);
19 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "g_rocket_flying_disabledelays", _("Disable projectile detonation delay")));
20}
21
23
25{
26 return sprintf(_("%s rockets can be detonated instantly (otherwise, there's a short delay). This allows players to fire and detonate a rocket while mid-air for a strong boost even while moving fast."), COLORED_NAME(WEP_DEVASTATOR));
27}
29{
30 bool can_enable = (!cvar("g_instagib") && !cvar("g_overkill") && !cvar("g_melee_only"));
31 if (is_already_enabled)
32 return can_enable && cvar(me.message);
33 return can_enable;
34}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define COLORED_NAME(this)
Definition color.qh:189
float cvar(string name)
entity Mutators_main_checkbox(entity me)
Definition mutatortab.qc:25
#define NEW(cname,...)
Definition oo.qh:120
#define METHOD(cname, name, prototype)
Definition oo.qh:274
entity makeXonoticMutatorRocketFlyingTab()
void XonoticMutatorRocketFlyingTab_fill(entity me)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition checkbox.qc:28