0 Members and 2 Guests are viewing this topic.
Gonna be pretty funny having warband players completely destroying any people new to the game mechanics at release.
wrongCode: [Select]if hold_time >= 1.1: hold_bonus = 1.2elif hold_time >= 0.6: hold_bonus = (1.1 - hold_time) * 0.6 + 1.2elif hold_time >= 0.5: hold_bonus = 1.5else: hold_bonus = hold_time + 1.0raw_damage = weapon_damage * (max(1.0, min(hold_bonus, 2.0)) * 0.5 + 0.5)In reality 25% bonus damage for holding attacks between 0.5 - 0.6s
if hold_time >= 1.1: hold_bonus = 1.2elif hold_time >= 0.6: hold_bonus = (1.1 - hold_time) * 0.6 + 1.2elif hold_time >= 0.5: hold_bonus = 1.5else: hold_bonus = hold_time + 1.0raw_damage = weapon_damage * (max(1.0, min(hold_bonus, 2.0)) * 0.5 + 0.5)
raw_damage = weapon_damage * (clamp(hold_bonus, 1.0, 2.0) * 0.5 + 0.5)You forgot this code line that follow main formula: 1.5*0.5+0.5 = 1.25