mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Battle: do not reduce hitlag for Insta-Whip (DMG_WHUMBLE), prevent double-damage window
This commit is contained in:
		
							parent
							
								
									e3b21ce840
								
							
						
					
					
						commit
						3724dd542b
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3471,7 +3471,9 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
 | 
			
		|||
	if (source && source->player && target)
 | 
			
		||||
		G_GhostAddHit((INT32) (source->player - players), target);
 | 
			
		||||
 | 
			
		||||
	if ((gametyperules & GTR_BUMPERS) && !battleprisons)
 | 
			
		||||
	// Insta-Whip (DMG_WHUMBLE): do not reduce hitlag because
 | 
			
		||||
	// this can leave room for double-damage.
 | 
			
		||||
	if ((damagetype & DMG_TYPEMASK) != DMG_WHUMBLE && (gametyperules & GTR_BUMPERS) && !battleprisons)
 | 
			
		||||
		laglength /= 2;
 | 
			
		||||
 | 
			
		||||
	K_SetHitLagForObjects(target, inflictor, source, laglength, true);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue