예제 #1
0
        public RemotePlayer(string name, World level, NetworkProvider network, PooledTexture2D skinTexture, string geometry = "geometry.humanoid.customSlim") : base(63, level, network)
        {
            _texture = skinTexture;

            SkinFlags = new PlayerSkinFlags()
            {
                Value = 0xff
            };

            Name = name;

            Width = 0.6;
            //Length = 0.6;
            Height = 1.80;

            IsSpawned = false;

            NameTag = name;

            HideNameTag      = false;
            IsAlwaysShowName = true;
            ShowItemInHand   = true;

            IsInWater = false;
            //NoAi = true;

            Velocity       = Vector3.Zero;
            PositionOffset = 1.62f;

            GeometryName = geometry;

            _skinDirty = true;
            //UpdateSkin(skinTexture);

            MovementSpeed = 0.1f;            //0000000149011612f;//0000000149011612f;
            FlyingSpeed   = 0.4f;
            //	MovementSpeed = 0.1f;
            //		FlyingSpeed = 0.4f;

            IsAffectedByGravity = false;
            HasPhysics          = false;
        }
예제 #2
0
        public RemotePlayer(string name, World level, NetworkProvider network, PooledTexture2D skinTexture, string geometry = "geometry.humanoid.customSlim") : base(63, level, network)
        {
            SkinFlags = new PlayerSkinFlags()
            {
                Value = 0xff
            };

            //DoRotationCalculations = false;
            Name = name;
            Uuid = new UUID(Guid.NewGuid().ToByteArray());

            Width = 0.6;
            //Length = 0.6;
            Height = 1.80;

            IsSpawned = false;

            NameTag = name;
            //Skin = new Skin { Slim = false, SkinData = Encoding.Default.GetBytes(new string('Z', 8192)) };

            //	ItemInHand = new ItemAir();

            HideNameTag      = false;
            IsAlwaysShowName = true;
            ShowItemInHand   = true;

            IsInWater = false;
            NoAi      = true;
            //HealthManager.IsOnFire = false;
            Velocity       = Vector3.Zero;
            PositionOffset = 1.62f;

            GeometryName = geometry;

            UpdateSkin(skinTexture);

            //Inventory = new Inventory(46);

            MovementSpeed = 0.1f;
            FlyingSpeed   = 0.4f;
        }