public static float Test(NPCHumanContext c, PlayerModel.MountPoses mountableType)
        {
            BaseMountable mounted = c.Human.GetMounted();

            if (mounted == null)
            {
                return(0f);
            }
            if (mounted.mountPose != mountableType)
            {
                return(0f);
            }
            return(1f);
        }
Exemple #2
0
        public static float Test(NPCHumanContext c, PlayerModel.MountPoses mountableType)
        {
            BaseMountable mounted = c.Human.GetMounted();

            return(Object.op_Equality((Object)mounted, (Object)null) || mounted.mountPose != mountableType ? 0.0f : 1f);
        }