1
0

Improvements to knockback (#4504)

* Improvements to knockback
* SetSpeed for explosions
* Improve code consistency
This commit is contained in:
Mat
2020-03-19 19:13:41 +02:00
committed by GitHub
parent 683d24faad
commit 0e07e231a2
5 changed files with 28 additions and 14 deletions

View File

@@ -102,7 +102,9 @@ bool cAggressiveMonster::Attack(std::chrono::milliseconds a_Dt)
// Setting this higher gives us more wiggle room for attackrate
ResetAttackCooldown();
GetTarget()->TakeDamage(dtMobAttack, this, m_AttackDamage, 0);
double KnockbackAmount = 9;
GetTarget()->TakeDamage(dtMobAttack, this, m_AttackDamage, KnockbackAmount);
return true;
}