this.movedir *= this.speed;
setthink(this, conveyor_think);
this.nextthink = time;
- IFTARGETED
+ if(THIS_TARGETED)
{
this.use = conveyor_use;
this.reset = conveyor_reset;
if (this.health)
return;
- IFTARGETED
+ if(THIS_TARGETED)
return;
if (this.items)
return;
if (this.health)
return;
- IFTARGETED
+ if(THIS_TARGETED)
return;
if (this.items)
return;
setblocked(this, secret_blocked);
this.speed = 50;
this.use = fd_secret_use;
- IFTARGETED
+ if(THIS_TARGETED)
{
}
else
Net_LinkEntity(this, (this.spawnflags & 4), 0, pointparticles_SendEntity);
- IFTARGETED
+ if(THIS_TARGETED)
{
this.use = pointparticles_use;
this.reset = pointparticles_reset;
Net_LinkEntity(this, false, 0, laser_SendEntity);
- IFTARGETED
+ if(THIS_TARGETED)
{
this.reset = laser_reset;
this.reset(this);
//setorigin(this, this.origin + '0 0 27'); // To fix a mappers' habit as old as Quake
setorigin(this, this.origin);
- IFTARGETED
+ if(THIS_TARGETED)
{
}
else
void plat_reset(entity this)
{
- IFTARGETED
+ if(THIS_TARGETED)
{
setorigin(this, this.pos1);
this.state = 4;
if(!this.atten && !(this.spawnflags & 4))
{
- IFTARGETED
+ if(THIS_TARGETED)
this.atten = ATTEN_NORM;
else
this.atten = ATTEN_STATIC;
if(!this.volume)
this.volume = 1;
- IFTARGETED
+ if(THIS_TARGETED)
{
if(this.spawnflags & 8) // ACTIVATOR
this.use = target_speaker_use_activator;
precache_sound(this.noise);
this.state = true;
- IFTARGETED
+ if(THIS_TARGETED)
{
this.use = trigger_gravity_use;
if(this.spawnflags & 2)
setthink(this, multivibrator_send_think);
this.nextthink = max(1, time);
- IFTARGETED
+ if(THIS_TARGETED)
multivibrator_reset(this);
}
#endif
.float height;
+// we love double negation around here
+// TODO check why grep doesn't find any assignments to it
.float nottargeted;
-#define IFTARGETED if(!this.nottargeted && this.targetname != "")
+#define THIS_TARGETED !this.nottargeted && this.targetname != ""
.float lip;