public void AddMessageAutoReturnedFlag(FlagReturnEvent e, NotCarriedFlagNode flag, [JoinByTeam] TeamNode flagTeam, [JoinAll] SingleNode <SelfBattleUserComponent> selfUser, [JoinByTeam] Optional <TeamNode> selfTeam, [JoinAll] CombatLogNode combatEventLog) { CombatLogCTFMessagesComponent combatLogCTFMessages = combatEventLog.combatLogCTFMessages; string newValue = GetOwnFlag(selfTeam, flagTeam, combatLogCTFMessages); string messageText = combatLogCTFMessages.AutoReturned.Replace(CombatLogCTFMessagesComponent.OWN, newValue); combatEventLog.uiLog.UILog.AddMessage(messageText); }
public void PlayReturnSound(FlagReturnEvent e, SingleNode <FlagComponent> flag, [JoinAll] SingleNode <CTFSoundsComponent> ctfSoundsNode) { ctfSoundsNode.component.FlagReturn.Play(); }