Improvements to knockback (#4504)
* Improvements to knockback * SetSpeed for explosions * Improve code consistency
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user