- if((fl & 0x80) || !(fl & 0x10)) // effect doesn't need sending if the laser is infinite and has collision testing turned off
- WriteShort(MSG_ENTITY, this.cnt + 1);
+ if((sendflags & SF_LASER_FINITE) || !(sendflags & SF_LASER_NOTRACE)) // effect doesn't need sending if the laser is infinite and has collision testing turned off
+ WriteShort(MSG_ENTITY, this.cnt);
}
}
- if(fl & 2)
+ if(sendflags & SF_LASER_UPDATE_TARGET)
{
{
- if(fl & 0x80)
+ if(sendflags & SF_LASER_FINITE)
{
WriteVector(MSG_ENTITY, this.enemy.origin);
}
{
WriteVector(MSG_ENTITY, this.enemy.origin);
}
@@ -166,9+166,9 @@ bool laser_SendEntity(entity this, entity to, float fl)