}
else
{
- super.tr_attack(this);
+ SUPER(PlasmaTurret).tr_attack(this);
}
if (self.tur_head.frame == 0)
self.tur_head.frame = 1;
vector v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos);
WarpZone_TrailParticles(world, particleeffectnum(EFFECT_VAPORIZER(self.team)), self.tur_shotorg, v);
} else {
- super.vtblbase.tr_attack(this);
+ SUPER(PlasmaTurret).tr_attack(this);
}
self.tur_head.frame += 1;
}
}
#define SUPER(cname) (cname##_vtbl.vtblbase)
-#define super (this.vtblbase.vtblbase)
#define spawn_static(this)
#define spawn_1(this)
{
string s = this.CvarStringSource_cvar;
this.StringSource_str = s ? cvar_string(s) : string_null;
- return super.getEntry(this, i, returns);
+ return SUPER(CvarStringSource).getEntry(this, i, returns);
}
METHOD(CvarStringSource, reload, int(entity this, string filter))
{
string s = this.CvarStringSource_cvar;
this.StringSource_str = s ? cvar_string(s) : string_null;
- return super.reload(this, filter);
+ return SUPER(CvarStringSource).reload(this, filter);
}
ENDCLASS(CvarStringSource)
#endif
}
METHOD(XonoticRegisteredSettingsList, resizeNotify, void(entity this, vector relOrigin, vector relSize, vector absOrigin, vector absSize))
{
- super.resizeNotify(this, relOrigin, relSize, absOrigin, absSize);
+ SUPER(XonoticRegisteredSettingsList).resizeNotify(this, relOrigin, relSize, absOrigin, absSize);
this.itemAbsSize = '0 0 0';
this.realFontSize_y = this.fontSize / (this.itemAbsSize_y = (absSize.y * this.itemHeight));
}
METHOD(XonoticRegisteredSettingsList, setSelected, void(entity this, int i))
{
- super.setSelected(this, i);
+ SUPER(XonoticRegisteredSettingsList).setSelected(this, i);
this.onChange(this, this.onChangeEntity);
}
CONSTRUCTOR(XonoticRegisteredSettingsList, DataSource _source) {