22 log.info(
"Aborting comm sniffer invesitgation on " +
entity.getName() +
", null or neutral faction");
28 InvestigationEventParams params =
29 new InvestigationEventParams(
"Comm sniffer investigation - " +
entity.getName(),
"start_comm_sniffer");
31 params.warningPriority = MessagePriority.ENSURE_DELIVERY;
32 params.minInitialDelay = 0;
33 params.maxInitialDelay = 0f;
37 InvestigationResult clear =
new InvestigationResult(
null,
null);
38 InvestigationResult guilty =
new InvestigationResult(
"player_guilty_comm_sniffer", MessagePriority.ENSURE_DELIVERY);
39 params.results.add(clear);
40 params.results.add(guilty);
43 guilty.weight = 25f * guiltMult;
45 guilty.onDelivery =
new BaseOnMessageDeliveryScript() {
46 public void beforeDelivery(CommMessageAPI message) {
48 new RepActionEnvelope(RepActions.COMM_SNIFFER_INVESTIGATION_GUILTY,
null,
null,
true),