コード例 #1
0
        // Token: 0x060013CD RID: 5069 RVA: 0x0001CE68 File Offset: 0x0001BE68
        protected override void OnExecute(ActivityExecutionContext context)
        {
            int num = 0;

            foreach (EntrantInfo entrantInfo in base.InstancedEvent.Entrants)
            {
                num += (entrantInfo.ScoringState as TeamEscapeScoringState).Busts;
            }
            TeamEscapeScoringState teamEscapeScoringState = base.Entrant.ScoringState as TeamEscapeScoringState;

            if (teamEscapeScoringState != null && num < base.InstancedEvent.NumStrikes)
            {
                teamEscapeScoringState.Busts++;
                this.Close();
            }
        }
コード例 #2
0
        // Token: 0x060019D1 RID: 6609 RVA: 0x0002F1E4 File Offset: 0x0002E1E4
        public uint UpdateTarget(InstancedEvent evt)
        {
            if (this.target != null && !this.target.Opponent.IsStatus(OpponentStatus.kOpponent_NotSpectatable))
            {
                return(this.target.Opponent.InternalOpponent.GetWrappedVehicle().GetWorldID());
            }
            LocalHumanOpponent     localHumanOpponent     = evt.Manager.OpponentManager.FindLocalOpponent();
            EntrantInfo            entrantInfo            = evt.FindEntrant(localHumanOpponent.PersonaId);
            TeamEscapeScoringState teamEscapeScoringState = entrantInfo.ScoringState as TeamEscapeScoringState;

            this.target = entrantInfo;
            float       fractionCompleted = teamEscapeScoringState.FractionCompleted;
            EntrantInfo entrantInfo2      = entrantInfo;
            float       num          = float.MaxValue;
            EntrantInfo entrantInfo3 = entrantInfo;
            float       num2         = float.MinValue;

            foreach (EntrantInfo entrantInfo4 in evt.Entrants)
            {
                if (entrantInfo4.PersonaId != entrantInfo.PersonaId && !entrantInfo4.Opponent.IsStatus(OpponentStatus.kOpponent_NotSpectatable))
                {
                    TeamEscapeScoringState teamEscapeScoringState2 = entrantInfo4.ScoringState as TeamEscapeScoringState;
                    if (teamEscapeScoringState2.FractionCompleted >= fractionCompleted && teamEscapeScoringState2.FractionCompleted <= num)
                    {
                        entrantInfo2 = entrantInfo4;
                        num          = teamEscapeScoringState2.FractionCompleted;
                    }
                    else if (teamEscapeScoringState2.FractionCompleted <= fractionCompleted && teamEscapeScoringState2.FractionCompleted >= num2)
                    {
                        entrantInfo3 = entrantInfo4;
                        num2         = teamEscapeScoringState2.FractionCompleted;
                    }
                }
            }
            if (entrantInfo3 != entrantInfo)
            {
                this.target = entrantInfo3;
            }
            if (entrantInfo2 != entrantInfo)
            {
                this.target = entrantInfo2;
            }
            return(this.target.Opponent.InternalOpponent.GetWrappedVehicle().GetWorldID());
        }
コード例 #3
0
        // Token: 0x06001350 RID: 4944 RVA: 0x0001BE70 File Offset: 0x0001AE70
        protected internal override void Execute(ActivityExecutionContext context)
        {
            TeamEscapeScoringState teamEscapeScoringState = base.Entrant.ScoringState as TeamEscapeScoringState;

            teamEscapeScoringState.Highlight = this.highlight;
        }