Paper icon indicating copy to clipboard operation
Paper copied to clipboard

pvp improvements?

Open PhanaticD opened this issue 10 years ago • 13 comments

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

PhanaticD avatar Sep 29 '16 22:09 PhanaticD

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 avatar Sep 30 '16 14:09 Techcable

@Techcable (some) sanity checks could be introduced - which would give attackers a slight advantage but not much.

AlfieC avatar Oct 01 '16 21:10 AlfieC

Been a month now, is there still interest in this?

zachbr avatar Nov 03 '16 21:11 zachbr

yup

PhanaticD avatar Nov 04 '16 02:11 PhanaticD

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?

sudofox avatar Nov 04 '16 14:11 sudofox

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.

AlfieC avatar Dec 21 '16 22:12 AlfieC

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"

PhanaticD avatar Dec 22 '16 05:12 PhanaticD

Maybe the async hit detection @frash23 was working on could help?

Techcable avatar Dec 22 '16 15:12 Techcable

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.

AlfieC avatar Dec 22 '16 16:12 AlfieC

I'm not suggesting it's stable enough for inclusion in paper, but I do think it could fix your pvp issues.

Techcable avatar Dec 22 '16 16:12 Techcable

@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.

Spottedleaf avatar Dec 22 '16 17:12 Spottedleaf

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.

frash23 avatar Dec 23 '16 18:12 frash23

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.

aikar avatar Jan 16 '18 05:01 aikar