mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	Added race pawntest, further tweaks to animations
This commit is contained in:
		
							parent
							
								
									87c10cacff
								
							
						
					
					
						commit
						c35cd55d25
					
				
					 5 changed files with 36 additions and 4 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -17,6 +17,7 @@
 | 
				
			||||||
			<!-- for height -->
 | 
								<!-- for height -->
 | 
				
			||||||
			<overlayLayer>Head</overlayLayer>
 | 
								<overlayLayer>Head</overlayLayer>
 | 
				
			||||||
			<useSkinShader>True</useSkinShader>
 | 
								<useSkinShader>True</useSkinShader>
 | 
				
			||||||
 | 
								<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
 | 
				
			||||||
			<colorType>Skin</colorType>
 | 
								<colorType>Skin</colorType>
 | 
				
			||||||
			<baseLayer>95</baseLayer>
 | 
								<baseLayer>95</baseLayer>
 | 
				
			||||||
		</animPropProperties>
 | 
							</animPropProperties>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -115,7 +115,7 @@
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		<offsetDefs>
 | 
							<offsetDefs>
 | 
				
			||||||
			<li>Offset_Placeholder</li> <!-- first pawn in animation -->
 | 
								<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
 | 
				
			||||||
			<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
								<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
				
			||||||
		</offsetDefs>
 | 
							</offsetDefs>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -141,7 +141,7 @@
 | 
				
			||||||
		</animationStages>
 | 
							</animationStages>
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		<offsetDefs>
 | 
							<offsetDefs>
 | 
				
			||||||
			<li>Offset_Placeholder</li> <!-- first pawn in animation -->
 | 
								<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
 | 
				
			||||||
			<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
								<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
				
			||||||
		</offsetDefs>
 | 
							</offsetDefs>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -167,7 +167,7 @@
 | 
				
			||||||
		</animationStages>
 | 
							</animationStages>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<offsetDefs>
 | 
							<offsetDefs>
 | 
				
			||||||
			<li>Offset_Placeholder</li> <!-- first pawn in animation -->
 | 
								<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
 | 
				
			||||||
			<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
								<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
				
			||||||
		</offsetDefs>
 | 
							</offsetDefs>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -193,7 +193,7 @@
 | 
				
			||||||
		</animationStages>
 | 
							</animationStages>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<offsetDefs>
 | 
							<offsetDefs>
 | 
				
			||||||
			<li>Offset_Placeholder</li> <!-- first pawn in animation -->
 | 
								<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
 | 
				
			||||||
			<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
								<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
 | 
				
			||||||
		</offsetDefs>
 | 
							</offsetDefs>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										30
									
								
								1.5/Source/Animations/PawnTests/PawnTest_Race.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								1.5/Source/Animations/PawnTests/PawnTest_Race.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,30 @@
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					using Verse;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Rimworld_Animations
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public class PawnTest_Race : BasePawnTest
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public List<ThingDef> races = new List<ThingDef>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public override bool PawnTest(Pawn pawn)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            foreach (ThingDef race in races)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (pawn.def == race)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    return true;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            return false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -87,6 +87,7 @@
 | 
				
			||||||
    <Compile Include="1.5\Source\Animations\PawnTests\BasePawnTest.cs" />
 | 
					    <Compile Include="1.5\Source\Animations\PawnTests\BasePawnTest.cs" />
 | 
				
			||||||
    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Always.cs" />
 | 
					    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Always.cs" />
 | 
				
			||||||
    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Multi.cs" />
 | 
					    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Multi.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Race.cs" />
 | 
				
			||||||
    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanBeFucked.cs" />
 | 
					    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanBeFucked.cs" />
 | 
				
			||||||
    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanFuck.cs" />
 | 
					    <Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanFuck.cs" />
 | 
				
			||||||
    <Compile Include="1.5\Source\Comps\CompExtendedAnimator.cs" />
 | 
					    <Compile Include="1.5\Source\Comps\CompExtendedAnimator.cs" />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue