Exemple #1
0
        public static bool Prefix(EntityAlive __instance, ref bool __result)
        {
            if (SphereII_InertEntity.IsInert(__instance))
            {
                __result = false;
                return(false);
            }

            return(true);
        }
Exemple #2
0
        public static bool Prefix(EntityAlive __instance)
        {
            if (SphereII_InertEntity.IsInert(__instance))
            {
                if ((__instance.WorldTimeBorn + 15) > __instance.world.worldTime)
                {
                    __instance.emodel.avatarController.GetAnimator().enabled = true;
                    return(true);
                }

                __instance.emodel.avatarController.GetAnimator().enabled = false;
                return(false);
            }


            return(true);
        }
Exemple #3
0
        public static bool Prefix(XUiC_TargetBar __instance)
        {
            EntityAlive     entityAlive = null;
            WorldRayHitInfo hitInfo     = __instance.xui.playerUI.entityPlayer.HitInfo;

            if (hitInfo.bHitValid && hitInfo.transform && hitInfo.tag.StartsWith("E_"))
            {
                Transform hitRootTransform;
                if ((hitRootTransform = GameUtils.GetHitRootTransform(hitInfo.tag, hitInfo.transform)) != null)
                {
                    entityAlive = hitRootTransform.GetComponent <EntityAlive>();
                }
                if (entityAlive != null && entityAlive.IsAlive())
                {
                    if (SphereII_InertEntity.IsInert(entityAlive))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
Exemple #4
0
 public static bool Prefix(EAIManager __instance, EntityAlive ___entity)
 {
     return(!SphereII_InertEntity.IsInert(___entity));
 }