pvp improvements?
I noticed these from tacospigot: https://github.com/TacoSpigot/TacoSpigot/commit/0fb38ae63861f426ab0051fdf0c1c4b727b03c21 https://github.com/TacoSpigot/TacoSpigot/commit/b5aa4a3f7a2945fe72e9c2fd07c6637b4dfb818f
is this something that could be added to paper? do they actually "work" and benefit pvp smoothness? @Techcable
They supposedly work, as they're used by SportBukkit's pvp party server things.
However, although the Use client ticks to make attack speed more accurate patch seems very interesting, I'd be concerned about the ability of an attacker to abuse it.
@Techcable (some) sanity checks could be introduced - which would give attackers a slight advantage but not much.
Been a month now, is there still interest in this?
yup
I would like to know how this would affect servers that normally lag excessively on the server side (8-12 tps, sometimes getting down to 4-6 tps). Would the exploitation of this be easier, and how much would that change the notchianness of the gameplay?
It would improve PVP for servers that lag excessively. It wouldn't really change the "notchianness" unless players figure out you have this enabled and abuse it.
if this only makes a difference if a server is lagging then its not really what I am looking for, ever since 1.9 despite adding a plugin that removes the attack delays it just feels like a lot of clicks/hits dont DO anything when in a fast paced pvp spamclick type fight. Players would complain about "fix hit registering"
Maybe the async hit detection @frash23 was working on could help?
Not suitable for inclusion in Paper. It would require plugin authors specifically listen for the async pre-hit event - if they didn't, each hit would result in players seeing & hearing the "hit" effect with potentially no damage actually occurring.
I'm not suggesting it's stable enough for inclusion in paper, but I do think it could fix your pvp issues.
@Techcable Looking at the code for the async hit detector shows that it's not thread-safe at all, especially when it checks for clicks per second.
A deterministic way of improving hit registration is to increase tick rate - but this would majorly affect the protocol. Or you could implement some sort of lag compensation which would store previous entity locations and client tick times to check damage when the packet arrives.
My project is anything but ready for use, but I believe it's the most plausible concept. I don't see how you'd achieve this without using an asynchronous damage event or altering the speed of the entire server loop.
Closing due to age and lack of interest and risks that this patch causes.
The tick rate patch would let hackers bypass the cooldown system, while non cheaters couldnt.
The API change patch would be an API contract behavior change. This logic is better left to plugins to do themselves.