ZeroK-RTS / Zero-K

Open source RTS game running on the Spring/Recoil engine
https://zero-k.info
GNU General Public License v2.0
664 stars 200 forks source link

Resigned player notifier #3966

Open ghost opened 4 years ago

ghost commented 4 years ago

A banner or gui similar to nuke launched warning (but resizable and moveable) for when a player resigned, mostly for ffa games.

Arch-Shaman commented 3 years ago

Perhaps a resign feed would work?

Anarchid commented 3 years ago

Making the resign lines extra noticeable in normal chat may also work. Currently they are grey and inconspicuous.

Playing some kind of a sound would also improve the situation.

Perhaps this? https://freesound.org/people/ZenithInfinitiveStudios/sounds/343011/

sprunk commented 3 years ago

My plan was to reuse chat bubbles widget for major events (resign, strider finished, nuclear launch detected, singleplayer campaign or planet wars objectives, etc).

GoogleFrog commented 3 years ago

The chat bubbles widget probably has terrible performance, given its history.

Anarchid commented 3 years ago

I've looked a bit into the default chat widget and making super thick red lines is not that difficult IME.

What i found difficult is detecting which actual message is a resign notification. But perhaps that can be a game event instead, with the widget adding a synthetic fancy line, while keeping the default notification hidden.

Arch-Shaman commented 3 years ago

I have some new callins tor luaui (PlayerChangedTeam and PlayerResigned) that would make this easy to implement.

Anarchid commented 3 years ago

I have some new callins tor luaui (PlayerChangedTeam and PlayerResigned) that would make this easy to implement.

image

Impart commits.

Arch-Shaman commented 3 years ago

4106

Arch-Shaman commented 3 years ago

The callins are now in master. This is probably an easy difficulty task.