mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-20 10:45:27 +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:
@@ -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