本文整理汇总了C#中Server.Mobiles.PlayerMobile.SetHairMods方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerMobile.SetHairMods方法的具体用法?C# PlayerMobile.SetHairMods怎么用?C# PlayerMobile.SetHairMods使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Mobiles.PlayerMobile
的用法示例。
在下文中一共展示了PlayerMobile.SetHairMods方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IncogMode
public void IncogMode(PlayerMobile pm)
{
string originalName = pm.Name;
pm.HueMod = pm.Race.RandomSkinHue();
pm.NameMod = pm.Female ? NameList.RandomName("female") : NameList.RandomName("male");
LoggingCustom.LogDisguise(DateTime.Now + "\t" + originalName + "\t" + pm.NameMod);
if (pm.Race != null)
{
pm.SetHairMods(pm.Race.RandomHair(pm.Female), pm.Race.RandomFacialHair(pm.Female));
pm.HairHue = pm.Race.RandomHairHue();
pm.FacialHairHue = pm.Race.RandomHairHue();
}
pm.FixedParticles(0x373A, 10, 15, 5036, EffectLayer.Head);
pm.PlaySound(0x3BD);
BaseArmor.ValidateMobile(pm);
BaseClothing.ValidateMobile(pm);
//BuffInfo.AddBuff( Caster, new BuffInfo( BuffIcon.Incognito, 1075819, length, Caster ) );
}
示例2: OnTeamMemberRemoved
public override void OnTeamMemberRemoved(PvPTeam team, PlayerMobile pm)
{
base.OnTeamMemberRemoved(team, pm);
if (IncognitoMode)
{
pm.SetHairMods(-1, -1);
pm.BodyMod = 0;
pm.HueMod = -1;
pm.NameMod = null;
pm.EndAction(typeof(IncognitoSpell));
BaseArmor.ValidateMobile(pm);
BaseClothing.ValidateMobile(pm);
}
if (ThrowableMode)
{
if (_Axes != null && _Axes.ContainsKey(pm))
{
ThrowableAxe axe = _Axes[pm];
if (axe != null)
{
_Axes.Remove(pm);
axe.Delete();
}
}
}
PvPTemplates.FetchProfile(pm).ClearDelta();
}
示例3: OnEjected
protected override void OnEjected(PlayerMobile pm)
{
if (IncognitoMode)
{
pm.SetHairMods(-1, -1);
pm.BodyMod = 0;
pm.HueMod = -1;
pm.NameMod = null;
pm.EndAction(typeof(IncognitoSpell));
BaseArmor.ValidateMobile(pm);
BaseClothing.ValidateMobile(pm);
}
base.OnEjected(pm);
}