Conversation
|
I haven't tested this yet but a general question of does this still try and spawn a beacon even if the person is on land, if this is desired then does it spawn and roll around potentially not being in the correct place |
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
NitroxClient/Communication/MultiplayerSession/ConnectionState/CommunicatingState.cs
Outdated
Show resolved
Hide resolved
|
Yeah so when it spawns on land it actually falls through the land to the water below. To combat this, I set the gravitational constant in the beacon's WorldForces component to 0 so gravity has no effect on it and added above-water drag because floating point error gave the object a tiny velocity in a random direction causing it to drag. it works on land now. Tested in-water again too |
|
Instead of using beacons have just switched to using blank gameobjects and attaching the PingInstance component. tested IG again |
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
NitroxClient/Communication/Packets/Processors/PlayerDeathProcessor.cs
Outdated
Show resolved
Hide resolved
| } | ||
| private void CheckPlayerDistance() |
Coding-Hen
left a comment
There was a problem hiding this comment.
LGTM, it will be good to have a marker for ease of finding the body again
|
Might be good to squash down some of the commits where sensible |
|
@Coding-Hen Has this been tested IG ? |
…acon spawns, beacon spawn code working
Co-authored-by: Coding-Hen <8798074+Coding-Hen@users.noreply.github.com>
f5c0e7e to
3b4f648
Compare
|
Rebased to solve merge conflicts |
|
Updated this for new launcher and tested IG. Needs new CW reviews because some changes were made and its possible I goofed the rebase but I don't think I did |
|
Tested in-game on commit 99d9ce4 (Moved spawning of death beacon to PlayerDeath in PlayerDeathBroadcaster) |
Co-authored-by: rootcan <24827220+tornac1234@users.noreply.github.com>
Co-authored-by: rootcan <24827220+tornac1234@users.noreply.github.com>
tornac1234
left a comment
There was a problem hiding this comment.
Command class name is not the right one but it's fine ig
|
Is it possible to please rebase this PR ? 🙏 |
|
made the merge but have not tested IG yet, gotta do that sometime |
The death markers setting places beacons where players die so they can retrieve items or equipment that was left behind.
I have tested the PR in-game using 2 players, swim out a bit from the lifepod and use the kill command or suffocate, beacon should only appear for the dying player. Then when that player goes within 20m of the beacon or disconnects from the server the beacon should disappear. The beacon can also be hidden from the HUD through the PDA. Ready for CW reviews.
Closes