public void CheckTrigger() { if (!IsEmitting() && BasePlayer.AnyPlayersVisibleToEntity(base.transform.position + base.transform.forward * 3f, 3f, this, base.transform.position + Vector3.up * 0.1f, true)) { StartFogging(); } }
public void CheckTrigger() { if (this.IsEmitting() || !BasePlayer.AnyPlayersVisibleToEntity(Vector3.op_Addition(((Component)this).get_transform().get_position(), Vector3.op_Multiply(((Component)this).get_transform().get_forward(), 3f)), 3f, (BaseEntity)this, Vector3.op_Addition(((Component)this).get_transform().get_position(), Vector3.op_Multiply(Vector3.get_up(), 0.1f)), true)) { return; } this.StartFogging(); }
public void CheckTrigger() { if (this.IsEmitting()) { return; } if (BasePlayer.AnyPlayersVisibleToEntity(base.transform.position + (base.transform.forward * 3f), 3f, this, base.transform.position + (Vector3.up * 0.1f), true)) { this.StartFogging(); } }