ddnet/src/game/client/components
bors[bot] 03f95108b4
Merge #5063
5063: Reworked Draggers and Turrets AND show always hooks if they are in the field of view  r=def- a=C0D3D3V

Fixes #3622, #4723 #4798 and #5054

Here you can find a comparison video with 16.0.3: https://youtu.be/bYwLB1cEMI8

This now also includes the changes from https://github.com/ddnet/ddnet/pull/4980 
So please also see my monologue here: https://github.com/ddnet/ddnet/pull/4980

Physic that got changed by this PR:
- Solo players are not included in the calculation of the next team players to the dragger/turrets. This does not affect any map.
- Turrets get switched correctly if players are solo
- Plasma bullets fired by turrets on solo player only explode for solo players and the other way around (except if they unsolo)
- Plasma bullets can no longer be intercepted by other teams 
- Turrets can shot now independently at the speed of sv_plasma_per_sec for  every team and every solo player


This should be tested by some more players before it get merged!

This reduces the use of snap id's tested here: https://youtu.be/G3nVtdH0--Q 
from 16000 to 69
test with the new dragger: https://youtu.be/mzNrDHP7HQs
I did not add the terminal of the server because you basically see no change in the used snap ids 
The videos are with cl_predict off

Comparison of the new turrets: https://streamable.com/8us8lk
left old turrets, right the new ones

We should delete ranks on (that where made after 13 Jun 2019):
https://ddnet.tw/maps/Increase-32-Your-32-Speed
https://ddnet.tw/maps/Fall-32-into-32-the-32-Future
https://ddnet.tw/maps/turboSeks

## Checklist

- [x] Tested the change ingame
- [x] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [x] Considered possible null pointers and out of bounds array indexing
- [only on 3 maps] Changed no physics that affect existing maps
- [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: c0d3d3v <c0d3d3v@mag-keinen-spam.de>
2022-05-24 18:26:08 +00:00
..
background.cpp Move InitTilemapSkip to CLayers 2022-01-19 22:22:31 +01:00
background.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
binds.cpp remove unnecessary loop over the possible modifier combinations 2022-04-28 08:45:25 +02:00
binds.h Binds: Reorder modifiers according to the convention 2022-02-07 01:54:12 +03:00
broadcast.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
broadcast.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
camera.cpp Remove unused includes of base/tl/string.h 2022-05-07 00:02:43 +02:00
camera.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
chat.cpp Remove unused includes of base/tl/string.h 2022-05-07 00:02:43 +02:00
chat.h Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
console.cpp Fix pos1 only scrolling up one page in console 2022-05-23 19:24:56 +02:00
console.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
controls.cpp fix inputs on vanilla server if chat is open 2022-05-19 23:18:14 +02:00
controls.h Format member variable's name correctly 2022-03-24 19:30:26 +01:00
countryflags.cpp Check pTexName for nullptr, fix wrongly height->width 2022-03-22 20:28:33 +01:00
countryflags.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
damageind.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
damageind.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
debughud.cpp Add Options for new HUD 2022-05-10 18:41:46 +02:00
debughud.h Player position, speed and angle can now be displayed in the HUD. 2022-04-14 13:42:19 +02:00
effects.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
effects.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
emoticon.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
emoticon.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
flow.cpp Fix all Multiplication type alerts by CodeQL 2020-10-05 19:03:54 +02:00
flow.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
freezebars.cpp do not render freezebar if you are not freezed 2022-05-23 12:12:46 +02:00
freezebars.h add vertical ninja bar 2022-04-14 13:40:44 +02:00
ghost.cpp fix color of ghost 2022-04-01 23:48:25 +02:00
ghost.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
hud.cpp Move MapScreenToGroup from 3 classes to render.cpp; Rename MapscreenToWorld to MapScreenToWorld 2022-05-22 21:59:43 +02:00
hud.h revert to double explotion plasma bullets if the bullet hits obstacle 2022-05-22 21:59:51 +02:00
items.cpp Fix Weapon Shields rendering and Clean up Sprite Offsets in items.cpp 2022-05-16 15:31:46 +02:00
items.h Fix Weapon Shields rendering and Clean up Sprite Offsets in items.cpp 2022-05-16 15:31:46 +02:00
killmessages.cpp Reset text color after kill messages are created 2021-10-29 00:11:21 +02:00
killmessages.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
mapimages.cpp Added external linkage instead of static const 2022-04-03 01:12:27 +02:00
mapimages.h Added external linkage instead of static const 2022-04-03 01:12:27 +02:00
maplayers.cpp Move MapScreenToGroup from 3 classes to render.cpp; Rename MapscreenToWorld to MapScreenToWorld 2022-05-22 21:59:43 +02:00
maplayers.h Move MapScreenToGroup from 3 classes to render.cpp; Rename MapscreenToWorld to MapScreenToWorld 2022-05-22 21:59:43 +02:00
mapsounds.cpp Some char array naming convention 2021-09-13 12:21:56 +02:00
mapsounds.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
menu_background.cpp Always initialize vec2/3/4 2022-05-22 12:18:32 +02:00
menu_background.h Switch to nanoseconds 2022-05-18 18:05:41 +02:00
menus.cpp Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00
menus.h Switch to nanoseconds 2022-05-18 18:05:41 +02:00
menus_browser.cpp Remove unused DoButtonLogic pText argument 2022-05-14 00:26:15 +02:00
menus_demo.cpp Switch to nanoseconds 2022-05-18 18:05:41 +02:00
menus_ingame.cpp Switch to nanoseconds 2022-05-18 18:05:41 +02:00
menus_settings.cpp Remove cl_show_console and -c / --console cmdline options 2022-05-19 21:24:19 +02:00
menus_settings_assets.cpp fix HUD assets Tab 2022-05-20 17:35:22 +02:00
menus_start.cpp Switch to nanoseconds 2022-05-18 18:05:41 +02:00
motd.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
motd.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
nameplates.cpp Move MapScreenToGroup from 3 classes to render.cpp; Rename MapscreenToWorld to MapScreenToWorld 2022-05-22 21:59:43 +02:00
nameplates.h Move MapScreenToGroup from 3 classes to render.cpp; Rename MapscreenToWorld to MapScreenToWorld 2022-05-22 21:59:43 +02:00
particles.cpp Add Vulkan backend 2022-03-21 12:39:51 +01:00
particles.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
players.cpp Merge branch 'master' into New_HUD 2022-05-10 19:03:09 +02:00
players.h Add Options for new HUD 2022-05-10 18:41:46 +02:00
race_demo.cpp Switch to nanoseconds 2022-05-18 18:05:41 +02:00
race_demo.h Switch to nanoseconds 2022-05-18 18:05:41 +02:00
scoreboard.cpp Ellipsis at end in scoreboard and hud 2022-05-18 23:46:11 +02:00
scoreboard.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
skins.cpp Refactor HTTP code to no longer use inheritance 2022-05-13 09:16:15 +02:00
skins.h Refactor HTTP code to no longer use inheritance 2022-05-13 09:16:15 +02:00
sounds.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
sounds.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
spectator.cpp make spectators team independent 2022-03-14 13:25:47 +01:00
spectator.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
statboard.cpp Fix memory leaks in auto stat CSV output, refactoring 2022-05-15 20:24:26 +02:00
statboard.h Fix memory leaks in auto stat CSV output, refactoring 2022-05-15 20:24:26 +02:00
tooltips.cpp Update tooltip text after changing language 2022-05-14 12:49:12 +02:00
tooltips.h fix tooltips rendering when they shouldn't, fixes #5035 2022-04-30 10:05:28 +02:00
voting.cpp Update voting.cpp 2022-04-15 18:16:28 +02:00
voting.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00