Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Selfd-resigner is overzelaous

Open IndeIrae opened this issue 5 years ago • 9 comments

When you put a certain percentage of your stuff into self-destruction mode in a team game - you get yeeted out. No idea on specific values, but in this example: had 2 Skuttles and a factory->tried to selfd the factory->got resigned. That's less than even 50% of my value at the time, so, feels bad. https://zero-k.info/Battles/Detail/1207595 8th min

IndeIrae avatar Oct 03 '21 08:10 IndeIrae

Skuttles are kamikazes so they don't count. You tried to selfd 100% of your non-exempt units.

I am unsure what to do that wouldn't introduce other edge cases:

  • if kamikazes count, then you would instead resign when trying to selfd the kamikazes. This fairly important in cheezes like Dirtbag spam or Blastwing openings.
  • if they count to the total but not to the "units trying to self-d", then your case is not distinguishable from Ctrl+AD, which goes against the reason the gadget exists.
  • making the rule require 100% of units (so that even if 99% of you stuff is kamikazes it's okay, even if they count) is vulnerable to network lags, human input delay etc (a handful of units can be created between you selecting everything and the command being registered on the server).

Maybe one of the following?

  • single-unit selfd never resigns. But sometimes you do have just one unit so this would let a Ctrl+AD through.
  • do both a check with and without kamikazes counting and only resign if both would be passed. Ctrl+AD will pass both but weird shenanigans like this case will not (in this case 1/1 passes but 1/3 doesn't, and conversely when using say 50 dirtbags, 50/5X would pass but 0/X wouldn't). Sounds complicated and opaque, though maybe it is fine because people don't really need to know the specifics?

sprunk avatar Oct 03 '21 16:10 sprunk

If we go toward:

single-unit selfd never resigns.

I would add that it still resigns if your only unit is Commander, to prevent self-d right at game start.

CarabusX avatar Oct 03 '21 22:10 CarabusX

I think I would like to stick to "ctrl+AD is resign" as much as possible to make the behaviour predictable and an exception for the commander doesn't help the general case of "have just 1 unit that is not necessarily the commander".

sprunk avatar Oct 03 '21 22:10 sprunk

Put Skuttle in the numerator but not the denominator. I think other changes would be good too, but are hampered by the fact that Ctrl+AD is the resign hotkey for some people. Perhaps we should have simply blocked the commands rather than resigning people, so that nobody incorporated into their workflow, which would allow us to mess with it further.

GoogleFrog avatar Oct 07 '21 10:10 GoogleFrog

Put Skuttle in the numerator but not the denominator.

This doesn't solve the case at hand (the Skuttle wasn't being selfd'd and it already doesn't count for the denominator).

It also sounds backwards, putting it in the numerator but not the denominator makes it easier to resign via normal kamikaze usage. In the case at hand (2 skuttles, 1 other unit) you'd get resigned when using either of the 2 skuttles. If somebody has 5 kamikazes and 5 other units then being resigned by selfding 4 kamikazes sounds pretty bad.

sprunk avatar Oct 07 '21 10:10 sprunk

Ah, I either flipped the words or was thinking about it being 1 - threshold rather than a threshold. Swap what I said. Skuttle should count towards the total number of units that the player has, but not towards the number that are being self-ded.

GoogleFrog avatar Oct 08 '21 06:10 GoogleFrog

Skuttle should count towards the total number of units that the player has, but not towards the number that are being self-ded.

In that case having enough kamikazes can make Ctrl+AD fail to produce a resign (and blow everything up instead) which was the original goal of the gadget.

sprunk avatar Oct 08 '21 11:10 sprunk

Can't there be some bottom value for this to be triggered?

Ie just under commander cost would work, so as long as you are trying to blow a value (not counting everything that is excluded) below 1275-1500 bp you will never get resigned.

I've seen a bunch of those unwarranted resigns recently, and it almost always gets triggered by com eating the dirt and someone trying to deny the factory reclaim or some such. That still wouldn't allow you to spite ctrl-ad at the start of the game while letting one selfd an occasional factory or geo, and below the commander (initial) cost there is really nothing worth getting kicked out for anyway.

IndeIrae avatar Oct 24 '21 20:10 IndeIrae

Sure. 1k sounds like a decent lower bound. Or maybe it would not actually auto-resign people.

GoogleFrog avatar Oct 25 '21 06:10 GoogleFrog