Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ui_midair.qc
Go to the documentation of this file.
1#include "ui_midair.qh"
2
5
7{
9 me.configureDialog(me);
10 return me;
11}
12
14{
15 entity e;
16
18
19 me.TR(me);
20 me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Invincibility time:")));
21 me.TD(me, 1, 2.5, e = makeXonoticSlider_T(0, 1, 0.1, "g_midair_shieldtime",
22 _("Invincibility time after leaving contact with ground")));
23 e.formatString = "S";
24 e.setValueSpace(e, e.valueSpace * 1.2);
25}
26
28{
29 return _("Makes it only possible to inflict damage on your enemy while they're airborne.");
30}
32{
33 bool can_enable = true;
34 if (is_already_enabled)
35 return can_enable && cvar(me.message);
36 return can_enable;
37}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void canEnable()
Definition ui_midair.qc:31
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 makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
void XonoticMutatorMidAirTab_fill(entity me)
Definition ui_midair.qc:13
entity makeXonoticMutatorMidAirTab()
Definition ui_midair.qc:6
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
Definition slider.qc:3