mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	mirror fix
This commit is contained in:
		
							parent
							
								
									90400a798a
								
							
						
					
					
						commit
						f8872b6a50
					
				
					 3 changed files with 5 additions and 3 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -99,7 +99,7 @@ namespace Rimworld_Animations {
 | 
			
		|||
            AlienRaceOffset offset = anim?.actors[actor]?.raceOffsets?.Find(x => x.defName == pawn.def.defName);
 | 
			
		||||
 | 
			
		||||
            if (offset != null) {
 | 
			
		||||
                anchor.x += offset.x;
 | 
			
		||||
                anchor.x += mirror ? offset.x * -1f : offset.x;
 | 
			
		||||
                anchor.z += offset.z;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -65,10 +65,12 @@ namespace Rimworld_Animations {
 | 
			
		|||
 | 
			
		||||
			if (anim != null) {
 | 
			
		||||
 | 
			
		||||
				Log.Message("Now playing " + anim.defName);
 | 
			
		||||
 | 
			
		||||
				bool mirror = GenTicks.TicksGame % 2 == 0;
 | 
			
		||||
 | 
			
		||||
				Log.Message("Now playing " + anim.defName + (mirror ? " mirrored" : ""));
 | 
			
		||||
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				IntVec3 pos = pawn.Position;
 | 
			
		||||
 | 
			
		||||
				for (int i = 0; i < pawnsToAnimate.Count; i++) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue