Improvements to knockback (#4504)
* Improvements to knockback * SetSpeed for explosions * Improve code consistency
This commit is contained in:
@@ -1000,10 +1000,6 @@ void cPlayer::ApplyArmorDamage(int a_DamageBlocked)
|
||||
|
||||
bool cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
|
||||
{
|
||||
SetSpeed(0, 0, 0);
|
||||
// Prevents knocking the player in the wrong direction due to
|
||||
// the speed vector problems, see #2865
|
||||
// In the future, the speed vector should be fixed
|
||||
if ((a_TDI.DamageType != dtInVoid) && (a_TDI.DamageType != dtPlugin))
|
||||
{
|
||||
if (IsGameModeCreative() || IsGameModeSpectator())
|
||||
|
||||
Reference in New Issue
Block a user