Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ui_vampire.qc
Go to the documentation of this file.
1#include "ui_vampire.qh"
2
6
8{
10 me.configureDialog(me);
11 return me;
12}
13
15{
16 entity e;
17
19
20 me.TR(me);
21 me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Factor:")));
22 me.TD(me, 1, 2.5, e = makeXonoticSlider_T(0.05, 1, 0.05, "g_vampire_factor",
23 _("Fraction of the damage dealt to be stolen as health")));
24 e.formatString = _("%sx");
25 me.TR(me);
26 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "g_vampire_use_total_damage", _("Consider both health and armor")));
27}
28
30{
31 return _("All damage dealt to your enemies is added to your own health.");
32}
34{
35 bool can_enable = !cvar("g_instagib");
36 if (is_already_enabled)
37 return can_enable && cvar(me.message);
38 return can_enable;
39}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void canEnable()
Definition ui_vampire.qc:33
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 makeXonoticMutatorVampireTab()
Definition ui_vampire.qc:7
void XonoticMutatorVampireTab_fill(entity me)
Definition ui_vampire.qc:14
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition checkbox.qc:28
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
Definition slider.qc:3