// Token: 0x0600151B RID: 5403 RVA: 0x000256A4 File Offset: 0x000246A4 public PowerupFlasher(uint collection_key, uint caller_id, uint target_id) : base(collection_key) { OpponentManager opponentManager = Engine.Get().OpponentManager(); Opponent opponent = opponentManager.FindByPersonaId((long)((ulong)caller_id)); Opponent opponent2 = opponentManager.FindByPersonaId((long)((ulong)target_id)); if (opponent != null && opponent is LocalHumanOpponent) { this.mMessage = Localizer.GetLocalizedString(base.Attributes.hal_string_actor().Hash); if (opponent2 != null) { this.mMessage = string.Format(this.mMessage, opponent2.ToString()); } else { this.mMessage = string.Format(this.mMessage, opponent.ToString()); } FlasherManager.Get().EnqueueFlasher(this); return; } if (opponent2 != null && opponent2 is LocalHumanOpponent) { this.mMessage = Localizer.GetLocalizedString(base.Attributes.hal_string_target().Hash); if (opponent != null) { this.mMessage = string.Format(this.mMessage, opponent.ToString()); } else { this.mMessage = string.Format(this.mMessage, opponent2.ToString()); } FlasherManager.Get().EnqueueFlasher(this); return; } if (base.Attributes.notify_spectators() && (opponent != null || opponent2 != null)) { this.mMessage = Localizer.GetLocalizedString(base.Attributes.hal_string_spectator().Hash); if (opponent2 != null) { this.mMessage = string.Format(this.mMessage, opponent2.ToString()); } else { this.mMessage = string.Format(this.mMessage, opponent.ToString()); } FlasherManager.Get().EnqueueFlasher(this); } }
// Token: 0x0600151F RID: 5407 RVA: 0x00025898 File Offset: 0x00024898 public ShieldedFlasher(uint powerup_fe_flasher_hash, int caller_id, int target_id) : base(2977220007u) { fe_flashers fe_flashers = new fe_flashers(powerup_fe_flasher_hash); OpponentManager opponentManager = Engine.Get().OpponentManager(); Opponent opponent = opponentManager.FindByPersonaId((long)caller_id); Opponent opponent2 = opponentManager.FindByPersonaId((long)target_id); if (opponent != null && opponent is LocalHumanOpponent) { this.mMessage = Localizer.GetLocalizedString(base.Attributes.hal_string_actor().Hash); this.mMessage = string.Format(this.mMessage, Localizer.GetLocalizedString(fe_flashers.hal_string().Hash)); return; } if (opponent2 != null && opponent2 is LocalHumanOpponent) { this.mMessage = Localizer.GetLocalizedString(base.Attributes.hal_string_target().Hash); this.mMessage = string.Format(this.mMessage, Localizer.GetLocalizedString(fe_flashers.hal_string().Hash)); return; } this.mMessage = Localizer.GetLocalizedString(base.Attributes.hal_string_spectator().Hash); this.mMessage = string.Format(this.mMessage, Localizer.GetLocalizedString(fe_flashers.hal_string().Hash)); }