Open ghost opened 6 years ago
I can do this if there's no considerable serverside cost downside to iterating through player options as kills are sent. Otherwise I'd need to cache it. There's considerable downsides since it's managed by the server. It may not be as performance friendly as you'd like.
https://developer.valvesoftware.com/wiki/PVS
Anything that the client can handle, it should handle, instead of leaving all of the work to the server. Split the kill feed into the following: Server: forced notifications and for notifications out of pvs. Client: notifications within the client's pvs. Local: notifications only for the individual client.
The intent of this is to cut down on useless networking, minor fps loss, reduce kill feed spam and to give the client some degree of control.
This may need to be refined multiple times to make sure there are no issues.
Affects fps in:
Kill feed notifications
Show global server count of "Total zombies killed: (n)", centered at the top of the kill feed, as a permanent displayed text, when wave 1 starts. Flash the text each time the server updates it (doesn't have to be instant).
Players outside of pvs may still want to know where the action is happening, so I suggest that a rally point of some kind is placed in world for zombies killed in a spot with a number below showing how many zombies were killed. Flash the number each time the server updates it.
Generic zombie kills should be handled clientside within pvs.
Always show boss kills/deaths (clientside when in pvs, serverside when out of pvs).
Always show human deaths/redeems (clientside when in pvs, serverside when out of pvs).
Always show [important information placeholder] (clientside when in pvs, serverside when out of pvs).
Always show map notifications (handled serverside).
Always show certain messages locally if it has no benefit being networked or shown to other clients: Generic Zombie killed by Trigger Hurt. Generic Zombie suicided.
Kills include assisted kills.
Credited kills, handled locally, within pvs, when out of pvs the server should handle it. Damage done to the player, and they die outside of pvs.
- Don't display an avatar if the attacker/victim is a bot.Done.The scoreboard is a better place to handle displaying escaped players. https://github.com/JetBoom/noxiousnet-issues/issues/230
Options
Add options to personally choose what information you want displayed: Examples of what could be added:
A checkbox system would better serve the client, as they can choose what information they want to request including the ability to override forced notifications from the serverside, clientside pvs, local, or a mix.
Other options: