addon rot fix
This commit is contained in:
parent
58b99e4dcf
commit
36caeeda7e
Binary file not shown.
|
@ -108,6 +108,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="1.1\Assemblies\Rimworld-Animations.dll" />
|
<Content Include="1.1\Assemblies\Rimworld-Animations.dll" />
|
||||||
<Content Include="1.2\Assemblies\Rimworld-Animations.dll" />
|
<Content Include="1.2\Assemblies\Rimworld-Animations.dll" />
|
||||||
|
<Content Include="1.3\Assemblies\Rimworld-Animations.dll" />
|
||||||
<Content Include="About\About.xml" />
|
<Content Include="About\About.xml" />
|
||||||
<Content Include="About\Manifest.xml" />
|
<Content Include="About\Manifest.xml" />
|
||||||
<Content Include="Defs\AnimationDefs\Animations_Beast.xml" />
|
<Content Include="Defs\AnimationDefs\Animations_Beast.xml" />
|
||||||
|
@ -121,7 +122,6 @@
|
||||||
<Content Include="LoadFolders.xml" />
|
<Content Include="LoadFolders.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="1.3\Assemblies\" />
|
|
||||||
<Folder Include="Defs\JobDefs\" />
|
<Folder Include="Defs\JobDefs\" />
|
||||||
<Folder Include="Source\JobDrivers\" />
|
<Folder Include="Source\JobDrivers\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -11,6 +11,7 @@ using Verse;
|
||||||
using AlienRace;
|
using AlienRace;
|
||||||
|
|
||||||
namespace Rimworld_Animations {
|
namespace Rimworld_Animations {
|
||||||
|
|
||||||
[HarmonyPatch(typeof(AlienRace.HarmonyPatches), "DrawAddons")]
|
[HarmonyPatch(typeof(AlienRace.HarmonyPatches), "DrawAddons")]
|
||||||
public static class HarmonyPatch_AlienRace {
|
public static class HarmonyPatch_AlienRace {
|
||||||
|
|
||||||
|
@ -71,11 +72,23 @@ namespace Rimworld_Animations {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool Prefix(PawnRenderFlags renderFlags, ref Vector3 vector, ref Vector3 headOffset, Pawn pawn, ref Quaternion quat, ref Rot4 rotation)
|
||||||
|
{
|
||||||
|
|
||||||
|
CompBodyAnimator anim = pawn.TryGetComp<CompBodyAnimator>();
|
||||||
|
if (!renderFlags.FlagSet(PawnRenderFlags.Portrait) && anim.isAnimating)
|
||||||
|
{
|
||||||
|
quat = Quaternion.AngleAxis(anim.bodyAngle, Vector3.up);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
|
[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
|
||||||
public static class HarmonyPatch_ResolveApparelGraphics
|
public static class HarmonyPatch_ResolveApparelGraphics
|
||||||
{
|
{
|
||||||
public static bool Prefix(ref Pawn ___pawn)
|
public static bool Prefix(ref Pawn ___pawn)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -86,4 +99,6 @@ namespace Rimworld_Animations {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue