// Token: 0x060019A4 RID: 6564 RVA: 0x0002EDD4 File Offset: 0x0002DDD4
        public void DoEffect(EntrantInfo entrant, powerup_gamegroup effect, uint indexMagnitude, uint indexRange)
        {
            GameplayEffect gameplayEffect = effect.effect();

            if (gameplayEffect != GameplayEffect.kGameplayEffect_DecrementBustMeter)
            {
                return;
            }
            TeamEscapeScoringState teamEscapeScoringState = entrant.ScoringState as TeamEscapeScoringState;

            if (teamEscapeScoringState != null)
            {
                teamEscapeScoringState.PursuitBar -= effect.magnitude(0u);
            }
        }
Ejemplo n.º 2
0
        // Token: 0x060013C6 RID: 5062 RVA: 0x0001CD28 File Offset: 0x0001BD28
        protected internal unsafe override void Execute(ActivityExecutionContext context)
        {
            IPerfectStart perfectStart = base.Entrant.ScoringState as IPerfectStart;

            if (perfectStart == null)
            {
                return;
            }
            LocalHumanOpponent localHumanOpponent = base.Entrant.Opponent as LocalHumanOpponent;

            if (localHumanOpponent == null)
            {
                return;
            }
            bool  flag     = false;
            float duration = 0f;
            bool  flag2    = localHumanOpponent.Vehicle.TryPerfectLaunch(&duration, &flag);

            if (!flag)
            {
                perfectStart.PerfectStart = PerfectStart.kPerfectStart_Unlearned;
                return;
            }
            if (!flag2)
            {
                perfectStart.PerfectStart = PerfectStart.kPerfectStart_Fail;
                return;
            }
            perfectStart.PerfectStart = PerfectStart.kPerfectStart_Success;
            float             torque            = 0f;
            powerup_gamegroup powerup_gamegroup = new powerup_gamegroup(3423076689u);

            if (powerup_gamegroup.Num_magnitude() > 0u)
            {
                float num = powerup_gamegroup.magnitude(0u);
                if (num > 1f)
                {
                    torque = num - 1f;
                }
            }
            FlasherManager.Get().EnqueueFlasher(new FlasherBase(1547819931u));
            new OnPerfectLaunchAchieved(localHumanOpponent.PersonaId, duration, torque).Post(Ports.Gameplay);
            localHumanOpponent.Hud.OnPerfectLaunchAchieved((int)localHumanOpponent.PersonaId);
        }