float magicear_matched;
float W_Tuba_HasPlayed(entity pl, string melody, float instrument, float ignorepitch, float mintempo, float maxtempo);
string trigger_magicear_processmessage(entity ear, entity source, float teamsay, entity privatesay, string msgin)
-{
+{SELFPARAM();
float domatch, dotrigger, matchstart, l;
string s, msg;
- entity oldself;
string savemessage;
magicear_matched = false;
if(dotrigger)
{
- oldself = self;
activator = source;
- self = ear;
+ setself(ear);
savemessage = self.message;
self.message = string_null;
SUB_UseTargets();
self.message = savemessage;
- self = oldself;
+ setself(this);
}
if(ear.netname != "")
if(dotrigger)
{
- oldself = self;
activator = source;
- self = ear;
+ setself(ear);
savemessage = self.message;
self.message = string_null;
SUB_UseTargets();
self.message = savemessage;
- self = oldself;
+ setself(this);
}
if(ear.spawnflags & 16)
return msgin;
}
-void spawnfunc_trigger_magicear()
+spawnfunc(trigger_magicear)
{
self.enemy = magicears;
magicears = self;