mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-20 18:55:28 +00:00
Merge exp/component-audit-2: component audit rounds 2-4
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -389,7 +389,8 @@ namespace {
|
||||
}
|
||||
if (r.Bit()) j["onThreatList"] = r.Bit();
|
||||
} },
|
||||
{ COLLECTIBLE, [](Reader& r, json& j, bool, const auto&) { j["collectibleID"] = r.Get<int16_t>(); } },
|
||||
// LWOCollectibleComponent::Deserialize: the id on construction only
|
||||
{ COLLECTIBLE, [](Reader& r, json& j, bool initial, const auto&) { if (initial) j["collectibleID"] = r.Get<int16_t>(); } },
|
||||
// LWOPetComponent::Deserialize: everything under the dirty bit, the names on updates too
|
||||
{ PET, [](Reader& r, json& j, bool, const auto&) {
|
||||
if (!r.Bit()) return;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "GMGreaterThanZeroCommands.h"
|
||||
#include "ControllablePhysicsComponent.h"
|
||||
#include "ChatServerLink.h"
|
||||
#include "DashboardNotify.h"
|
||||
#include "SlashCommandHandler.h"
|
||||
@@ -206,6 +207,7 @@ namespace GMGreaterThanZeroCommands {
|
||||
jetPackMode.target = entity->GetObjectID();
|
||||
jetPackMode.bUse = false;
|
||||
jetPackMode.Send(UNASSIGNED_SYSTEM_ADDRESS);
|
||||
if (auto* const physics = entity->GetComponent<ControllablePhysicsComponent>()) physics->SetJetPackMode(jetPackMode.bUse, jetPackMode.effectID, jetPackMode.bBypassChecks);
|
||||
|
||||
character->SetIsFlying(false);
|
||||
} else {
|
||||
@@ -235,6 +237,7 @@ namespace GMGreaterThanZeroCommands {
|
||||
jetPackMode.fMaxAirspeed = maxAirSpeed;
|
||||
jetPackMode.fVertVel = verticalVelocity;
|
||||
jetPackMode.Send(UNASSIGNED_SYSTEM_ADDRESS);
|
||||
if (auto* const physics = entity->GetComponent<ControllablePhysicsComponent>()) physics->SetJetPackMode(jetPackMode.bUse, jetPackMode.effectID, jetPackMode.bBypassChecks);
|
||||
|
||||
character->SetIsFlying(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user