Add rule Combat:LevelToStopDamageCaps

Setting this to 1 will effectively disable damage caps
Setting this to 20 will give similar results to old incorrect default rules
This commit is contained in:
Michael Cook (mackal)
2017-01-15 15:39:12 -05:00
parent 7e49a21b3b
commit c030e1ce8d
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -1107,6 +1107,9 @@ int Client::DoDamageCaps(int base_damage)
{
// this is based on a client function that caps melee base_damage
auto level = GetLevel();
auto stop_level = RuleI(Combat, LevelToStopDamageCaps);
if (stop_level && stop_level <= level)
return base_damage;
int cap = 0;
if (level >= 125) {
cap = 7 * level;