ddnet/src/game/server
bors[bot] 327f7de09b
Merge #5886
5886: Send laser objects as DDNetLaser with type (fixes #5885) r=heinrich5991 a=fokkonaut

This pull request will make the server send the correct lasertype directly. The type determining based on EntitiyEx for that got removed on the clientside as it is not needed anymore when using DDNetLaser.
Also, I fixed the NetObject to accept -1 (no owner). That is important in order to be able to render the laser at full opacity for everyone.

This does not only make the color determining more consistent as before (compared to entities using EntitiyEx and shotgun/laser using DDNetLaser), but it does also make it entirely more mod-friendly. As an example in my mod I dont use EntitiyEx to save objects in the snapshot, as we still dont have an extended snapshot system, and like this we can still have colors without doubling the amount of objects.

Also, this will color the dragger beam aswell as the plasma bullets being shot by the freeze/unfreeze/explosive laser gun correctly.

This PR should get applied for the next minor update on client & server.

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] 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: fokkonaut <35420825+fokkonaut@users.noreply.github.com>
2022-12-21 00:36:35 +00:00
..
entities Merge #5886 2022-12-21 00:36:35 +00:00
gamemodes Reset teams when restarting round 2022-11-29 21:56:59 +01:00
alloc.h Remove dead code 2022-05-31 19:32:07 +02:00
ddracechat.cpp Add credits 2022-12-05 19:21:36 +01:00
ddracecommands.cpp Merge #6071 #6077 #6085 #6088 #6090 2022-12-05 16:12:05 +00:00
entity.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
entity.h Fix physics change by weak hook fix (fixes #5769) 2022-10-27 17:44:54 +02:00
eventhandler.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
eventhandler.h Huge variable naming format 2022-07-08 18:01:29 +02:00
gamecontext.cpp Use different variables for tiles indices 2022-12-17 12:17:59 +01:00
gamecontext.h Recreate all entities when restarting round 2022-12-17 12:17:58 +01:00
gamecontroller.cpp Merge #6171 2022-12-20 10:44:07 +00:00
gamecontroller.h Pass x and y to OnEntity instead Pos 2022-12-17 12:17:58 +01:00
gameworld.cpp Recreate all entities when restarting round 2022-12-17 12:17:58 +01:00
gameworld.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
player.cpp Use new ddnet.org domain 2022-08-30 10:09:06 +02:00
player.h Huge variable naming format 2022-07-08 18:01:29 +02:00
save.cpp Clarify save message on team member in '/spec' mode 2022-08-28 17:37:23 +02:00
save.h Fix misspellings 2022-10-25 13:51:56 -03:00
score.cpp Merge #6035 2022-12-05 20:00:07 +00:00
score.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
scoreworker.cpp Fix updating teamranks 2022-12-10 00:51:16 +01:00
scoreworker.h Merge #6035 2022-12-05 20:00:07 +00:00
teams.cpp Reset teams when restarting round 2022-11-29 21:56:59 +01:00
teams.h Huge variable naming format 2022-07-08 18:01:29 +02:00
teehistorian.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
teehistorian.h Organize game-server includes 2022-06-17 20:32:56 +02:00
teeinfo.cpp Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
teeinfo.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00