2537: Fix more sixup vote issues r=def- a=Learath2
This looks like it works but I can't test it that well locally
Co-authored-by: Learath <learath2@gmail.com>
2531: Client: Support .map file drag-and-drop to open map in editor r=heinrich5991 a=def-
As suggested by Lady Saavik
Co-authored-by: def <dennis@felsin9.de>
2534: Fix utf8 handling in str_truncate (fixes#2533) r=Zwelf a=def-
and rename to str_utf8_truncate since it's only used for utf8 strings
Co-authored-by: def <dennis@felsin9.de>
2517: Fix sixup players not making sounds when hooking others r=Learath2 a=Fireball-Teeworlds
I've restructured the code to make it easier to read.
There are two differences in it's behavior:
1. Hook sounds coming from sixup players are now only muted for the player themselves (using a mask) instead of being muted for everyone. This fixes at least one cause for #2508.
2. Mask for `COREEVENT_GROUND_JUMP` is now using `Asker` parameter to `TeamMask()`. I believe it was originally an oversight that this mask was different from the others. But the difference is barely noticeable: one case is when spectating a Tee that is in a solo part. Previously such Tee wouldn't be making ground jumping sounds.
7e610f9944/src/game/server/teams.cpp (L405-L418)
I've tested this with DDNet and Vanilla (0.7) clients.
Co-authored-by: Fireball <fireball.teeworlds@gmail.com>
2472: Add function to show health and armor in nameplates. (mainly for server demo) r=def- a=sirius1242
The effect is as follows:
![effect image](https://user-images.githubusercontent.com/32300858/86894538-c6be2900-c135-11ea-832c-d4beaae36724.png)
- use `cl_nameplates_ha` to switch on-off. (default is off)
- use `cl_nameplates_ha_size` to adjust size of health and armor nameplates.
Mainly for server-side-recorded demos. If it can't get health and armor data, this will not be rendered.
Co-authored-by: sirius <sirius.ustc@gmail.com>