mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-23 06:23:08 +00:00
fix(shooting gallery): moving platform targets run on their mover, as live
sg_cannon.lua puts a moving platform target (the subs and the kraken) on its path with SetCurrentPath{ pathName, startPoint = 0 }; its SetPathingSpeed is read by nothing on a moving platform, so these run their paths at the waypoints' speeds (10, 15 and 35 in the zone), as the client's mover does. Live constructed them with the path and the mover waiting at waypoint 0 (9) and serialized the mover at each waypoint (9, then 2). They had a movement AI and a made up PlatformResync instead, and the kraken a speed chosen to look right, which goes back to the script's.
PlatformResync's constructor that overrode its arguments for a few LOTs (the FV tree platform 9483 among them) has no user left and is gone; a resync request is answered by movers only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,11 +49,6 @@ namespace GameMessages {
|
||||
// Server -> client, to one client (UNASSIGNED broadcasts).
|
||||
struct PlatformResync : public NetGameMsg {
|
||||
PlatformResync() : NetGameMsg(MessageType::Game::PLATFORM_RESYNC) {}
|
||||
// What DLU sends for a platform entity: the arguments, overridden for a few LOTs whose paths only have a
|
||||
// start and an end (special is for the FV tree platform).
|
||||
PlatformResync(const Entity& entity, bool bStopAtDesiredWaypoint = false,
|
||||
int32_t iIndex = 0, int32_t iDesiredWaypointIndex = 1, int32_t nextIndex = 1,
|
||||
eMovementPlatformState movementState = eMovementPlatformState::Moving, bool special = false);
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
bool Deserialize(RakNet::BitStream& bitStream) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user