kernitus / BukkitOldCombatMechanics

Spigot plugin to configure combat mechanics from 1.9 onwards
https://www.spigotmc.org/resources/19510/
Mozilla Public License 2.0
161 stars 69 forks source link

Delay between attacks is much less than 1.8 #636

Closed skbeh closed 1 year ago

skbeh commented 1 year ago

Information

Problem Description

To Reproduce

Steps to reproduce the behavior: 1. Use an auto clicker to change CPS to about more than 20. 2. Attack a player using sword with jump and move to make the hit critical. ### Expected Behaviour

The damage rate and knockback is same as normal CPS (about 8).

Actual Behaviour

The player is knockbacked much more and the damage rate is much faster. When using the latest dev build (3880ef041a2450f697d2716418c9129984d96240) of BukkitOldCombatMechanics, there is almost no delay between hits.

kernitus commented 1 year ago

Ignore the knockback for now, that would be a completely different issue. I need a debug log to know what is going on. Unfortunately "feel" doesn't help with coding, at least according to the extensive testing I have performed, the damage calculations are working fine.

NotAlexNoyle commented 1 year ago

I am still having this issue on my server. The CPS limits defined in attack-frequency in config.yml are not respected. It appears that the invulnerability animation is fixed, as is the knockback, but the damage accumulation from jitter clicking or auto clicking over the CPS limit goes through anyway. How do I get the log that you need?

kernitus commented 1 year ago

@NotAlexNoyle The attack-frequency does not set hard limits, because you can still be overdamaged by an attack of a higher value than the previous one while immune. You need to enable debug mode at the bottom of the config and get the log in the chat from the attacker and defender's perspectives - which shows exactly how they were damaged and why.

kernitus commented 1 year ago

@skbeh I have done some extra testing, including automated testing with multiple attacks within a very short timeframe. I see nothing to indicate the attack damage is not working as intended. If you do not think that is the case, please provide some logs and perhaps a video so I can help.

skbeh commented 11 months ago

@kernitus Please reopen this. See https://github.com/kernitus/BukkitOldCombatMechanics/issues/665#issuecomment-1647468766.