mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Fix Guard vs Guard clash
This commit is contained in:
		
							parent
							
								
									42d79efa27
								
							
						
					
					
						commit
						acee24939f
					
				
					 2 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1046,8 +1046,7 @@ boolean K_PvPTouchDamage(mobj_t *t1, mobj_t *t2)
 | 
			
		|||
			|| (t1->player->invincibilitytimer > 0)
 | 
			
		||||
			|| (t1->player->flamedash > 0 && t1->player->itemtype == KITEM_FLAMESHIELD)
 | 
			
		||||
			|| (t1->player->curshield == KSHIELD_TOP && !K_IsHoldingDownTop(t1->player))
 | 
			
		||||
			|| (t1->player->bubbleblowup > 0)
 | 
			
		||||
			|| (t1->player->spheres > 0 && K_PlayerEBrake(t1->player));
 | 
			
		||||
			|| (t1->player->bubbleblowup > 0);
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	if (canClash(t1, t2) && canClash(t2, t1))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1016,9 +1016,14 @@ boolean K_KartBouncing(mobj_t *mobj1, mobj_t *mobj2)
 | 
			
		|||
 | 
			
		||||
	if (mobj1->type == MT_PLAYER && mobj2->type == MT_PLAYER)
 | 
			
		||||
	{
 | 
			
		||||
		if (K_PlayerGuard(mobj1->player))
 | 
			
		||||
		boolean guard1 = K_PlayerGuard(mobj1->player);
 | 
			
		||||
		boolean guard2 = K_PlayerGuard(mobj2->player);
 | 
			
		||||
 | 
			
		||||
		if (guard1 && guard2)
 | 
			
		||||
			K_DoPowerClash(mobj1, mobj2);
 | 
			
		||||
		else if (guard1)
 | 
			
		||||
			K_DoGuardBreak(mobj1, mobj2);
 | 
			
		||||
		if (K_PlayerGuard(mobj2->player))
 | 
			
		||||
		else if (guard2)
 | 
			
		||||
			K_DoGuardBreak(mobj2, mobj1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue