bogoslovniy Posted May 26, 2019 Posted May 26, 2019 Настройки внешнего вида персонажа, выставленные через клиент, выглядят по другому, если их выставляет сервер. В чем может быть причина? Скрин ниже
HEROofMAIDAN Posted May 26, 2019 Posted May 26, 2019 (edited) У меня всё одинаково и там и там. А у тебя похоже внешность отца и матери не так работает Edited May 26, 2019 by HEROofMAIDAN
bogoslovniy Posted May 27, 2019 Author Posted May 27, 2019 16 часов назад, HEROofMAIDAN сказал: У меня всё одинаково и там и там. А у тебя похоже внешность отца и матери не так работает Как я выяснил, headMix не хочет работать. Не знаешь, с чем это может быть связано? Фрагмент кода на клиенте и на сервере RAGE.Elements.Player.LocalPlayer.SetHeadBlendData(Convert.ToInt16(par[0]), Convert.ToInt16(par[1]), 0, Convert.ToInt16(par[2]), Convert.ToInt16(par[2]), 0, Convert.ToInt16(par[3]) * 0.1f, 0.5f, 0, false); HeadBlend headBlend = new HeadBlend(); { headBlend.ShapeFirst = Convert.ToByte(skinData.shapeFirstID); headBlend.ShapeSecond = Convert.ToByte(skinData.shapeSecondID); headBlend.SkinFirst = Convert.ToByte(skinData.skinFirstID); headBlend.SkinSecond = Convert.ToByte(skinData.skinSecondID); headBlend.ShapeMix = skinData.shapeMix; headBlend.SkinMix = 0.5f; } ..... player.SetCustomization(sex, headBlend, eyeColor, hairColor, hightlightColor, faceFeature, headOverlays, new Decoration[] { });
HEROofMAIDAN Posted May 27, 2019 Posted May 27, 2019 Не знаю, я вообще не делал кастомизацию персонажа, не знаю какие там функции за что отвечают
Goshan Posted May 28, 2019 Posted May 28, 2019 16 часов назад, bogoslovniy сказал: Как я выяснил, headMix не хочет работать. Не знаешь, с чем это может быть связано? Фрагмент кода на клиенте и на сервере RAGE.Elements.Player.LocalPlayer.SetHeadBlendData(Convert.ToInt16(par[0]), Convert.ToInt16(par[1]), 0, Convert.ToInt16(par[2]), Convert.ToInt16(par[2]), 0, Convert.ToInt16(par[3]) * 0.1f, 0.5f, 0, false); HeadBlend headBlend = new HeadBlend(); { headBlend.ShapeFirst = Convert.ToByte(skinData.shapeFirstID); headBlend.ShapeSecond = Convert.ToByte(skinData.shapeSecondID); headBlend.SkinFirst = Convert.ToByte(skinData.skinFirstID); headBlend.SkinSecond = Convert.ToByte(skinData.skinSecondID); headBlend.ShapeMix = skinData.shapeMix; headBlend.SkinMix = 0.5f; } ..... player.SetCustomization(sex, headBlend, eyeColor, hairColor, hightlightColor, faceFeature, headOverlays, new Decoration[] { }); Сервер HeadBlend heahblend = new HeadBlend(); heahblend.ShapeFirst = (byte)CustomPlayerData[player.Handle].Parents.Mother; heahblend.ShapeSecond = (byte)CustomPlayerData[player.Handle].Parents.Father; heahblend.ShapeThird = 0; heahblend.SkinFirst = (byte)CustomPlayerData[player.Handle].Parents.Mother; heahblend.SkinSecond = (byte)CustomPlayerData[player.Handle].Parents.Father; heahblend.SkinThird = 0; heahblend.ShapeMix = CustomPlayerData[player.Handle].Parents.Similarity; heahblend.SkinMix = CustomPlayerData[player.Handle].Parents.SkinSimilarity; heahblend.ThirdMix = 0; NAPI.Player.SetPlayerHeadBlend(player, heahblend); клиент Player.LocalPlayer.SetHeadBlendData( CustomPlayerData[Player.LocalPlayer].Parents.Mother, CustomPlayerData[Player.LocalPlayer].Parents.Father, 0, CustomPlayerData[Player.LocalPlayer].Parents.Mother, CustomPlayerData[Player.LocalPlayer].Parents.Father, 0, CustomPlayerData[Player.LocalPlayer].Parents.Similarity, CustomPlayerData[Player.LocalPlayer].Parents.SkinSimilarity, 0.0f, true); тип этого
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now