// Token: 0x06001372 RID: 4978 RVA: 0x0001C1B8 File Offset: 0x0001B1B8
        protected internal override void Execute(ActivityExecutionContext context)
        {
            if (Cops.IsPursuitActive())
            {
                return;
            }
            LocalHumanOpponent localHumanOpponent = base.Entrant.Opponent as LocalHumanOpponent;

            if (localHumanOpponent != null)
            {
                Cops.LaunchPursuit((int)localHumanOpponent.Heat, true);
            }
        }
Пример #2
0
        // Token: 0x06001250 RID: 4688 RVA: 0x0001A60C File Offset: 0x0001960C
        protected override void OnMessage(OnTriggerEnter message)
        {
            if (Cops.IsPursuitActive())
            {
                return;
            }
            InternalInstance internalInstance = InstanceCatalog.Get().Find(message.TriggerKey);
            uint             flag             = 64u;

            if (internalInstance != null)
            {
                Opponent opponent = this.manager.OpponentManager.FindByPersonaId(message.PersonaId);
                if (opponent != null)
                {
                    LocalHumanOpponent localHumanOpponent = opponent as LocalHumanOpponent;
                    if (localHumanOpponent != null)
                    {
                        uint num = 0u;
                        if (internalInstance.IsTypeOf(ObjType.kObjType_Trigger) && internalInstance.IsFlagSet(flag))
                        {
                            Collection collection = new Collection(internalInstance);
                            num = collection.TargetActivity().GetCollectionKey();
                        }
                        else if (internalInstance.IsTypeOf(ObjType.kObjType_Event))
                        {
                            num = internalInstance.GetCollection();
                        }
                        if (num != 0u)
                        {
                            EventDefinition eventDefinition = Engine.Get().EventRepository().FindByEventKey(num);
                            localHumanOpponent.Hud.OnEnterEngagable(eventDefinition.EventId);
                        }
                    }
                }
            }
        }