mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	added
This commit is contained in:
		
							parent
							
								
									3828895fd7
								
							
						
					
					
						commit
						bc1c9a490a
					
				
					 3 changed files with 1 additions and 4 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -90,12 +90,12 @@
 | 
			
		|||
    <Compile Include="Source\Patches\OtherModPatches\HarmonyPatch_DontShaveYourHead.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\OtherModPatches\HarmonyPatch_FacialAnimation.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\OtherModPatches\HarmonyPatch_HatsDisplaySelection.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\OtherModPatches\HarmonyPatch_ShowHairWithHats.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RimworldPatches\HarmonyPatch_HeadHair.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RimworldPatches\HarmonyPatch_PawnRenderer.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RimworldPatches\HarmonyPatch_PawnRotation.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RimworldPatches\HarmonyPatch_Pawn_DrawTracker.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RimworldPatches\HarmonyPatch_SetPawnAnimatable.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\OtherModPatches\HarmonyPatch_ShowHairWithHats.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\Harmony_PatchAll.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RJWPatches\JobDrivers\HarmonyPatch_JobDriver_JoinInBed.cs" />
 | 
			
		||||
    <Compile Include="Source\Patches\RJWPatches\JobDrivers\HarmonyPatch_JobDriver_SexBaseInitiator.cs" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,8 +14,6 @@ namespace Rimworld_Animations {
 | 
			
		|||
    [HarmonyPatch(typeof(AlienRace.HarmonyPatches), "DrawAddons")]
 | 
			
		||||
    public static class HarmonyPatch_AlienRace {
 | 
			
		||||
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		public static void RenderHeadAddonInAnimation(Mesh mesh, Vector3 loc, Quaternion quat, Material mat, bool drawNow, Graphic graphic, AlienPartGenerator.BodyAddon bodyAddon, Vector3 v, float num, Vector3 headOffset, Pawn pawn, PawnRenderFlags renderFlags)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -27,7 +25,6 @@ namespace Rimworld_Animations {
 | 
			
		|||
				Rot4 headRotInAnimation = pawnAnimator.headFacing;
 | 
			
		||||
				Vector3 headPositionInAnimation = pawnAnimator.getPawnHeadPosition() - pawn.Drawer.renderer.BaseHeadOffsetAt(pawnAnimator.headFacing).RotatedBy(angle: Mathf.Acos(f: Quaternion.Dot(a: Quaternion.identity, b: headQuatInAnimation)) * 2f * 57.29578f);
 | 
			
		||||
 | 
			
		||||
				Log.Message(bodyAddon.path + " " + bodyAddon.inFrontOfBody.ToStringSafe());
 | 
			
		||||
				headPositionInAnimation.y += bodyAddon.inFrontOfBody ? 1f : -1f;
 | 
			
		||||
 | 
			
		||||
				GenDraw.DrawMeshNowOrLater(mesh: graphic.MeshAt(rot: headRotInAnimation), loc: headPositionInAnimation + (bodyAddon.alignWithHead ? headOffset : Vector3.zero) + v.RotatedBy(angle: Mathf.Acos(f: Quaternion.Dot(a: Quaternion.identity, b: headQuatInAnimation)) * 2f * 57.29578f),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue