Fix formatting
This commit is contained in:
parent
827c3760db
commit
4cd2d57c64
@ -341,15 +341,21 @@ void cEntity::DoTakeDamage(TakeDamageInfo & a_TDI)
|
|||||||
Vector3d additionalSpeed(0, 0, 0);
|
Vector3d additionalSpeed(0, 0, 0);
|
||||||
switch (KnockbackLevel)
|
switch (KnockbackLevel)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
additionalSpeed.Set(5, .3, 5);
|
{
|
||||||
break;
|
additionalSpeed.Set(5, .3, 5);
|
||||||
case 2:
|
break;
|
||||||
additionalSpeed.Set(8, .3, 8);
|
}
|
||||||
break;
|
case 2:
|
||||||
default:
|
{
|
||||||
additionalSpeed.Set(2, .3, 2);
|
additionalSpeed.Set(8, .3, 8);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
additionalSpeed.Set(2, .3, 2);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
AddSpeed(a_TDI.Knockback * additionalSpeed);
|
AddSpeed(a_TDI.Knockback * additionalSpeed);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user