Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ui_touchexplode.qc
Go to the documentation of this file.
1#include "ui_touchexplode.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, 1.5, e = makeXonoticTextLabel(0, _("Damage:")));
20 me.TD(me, 1, 2.5, e = makeXonoticSlider(0, 100, 5, "g_touchexplode_damage"));
21 me.TR(me);
22 me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Force:")));
23 me.TD(me, 1, 2.5, e = makeXonoticSlider(0, 1000, 50, "g_touchexplode_force"));
24 e.formatString = _("%s qu/s");
25}
26
28{
29 return _("An explosion occurs when two players collide.");
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
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
entity makeXonoticMutatorTouchExplodeTab()
void XonoticMutatorTouchExplodeTab_fill(entity me)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition slider.qc:9