fix: a rail that is off or whose preconditions fail is not ridden

LWORailActivatorComponent::msgCheckUseRequirements (0x00c2c5b0) refuses a
use, after the quick build check, when the row's preconditions fail or
rail_activator_active is off, so a client does not ask. The server started
the rail on any use request. The rows ask for an equipped item (44) or a
completed mission (283 to 286).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 15:14:44 -06:00
parent dc5f13cdbc
commit b033655e90
3 changed files with 37 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ public:
* Whether the rail can be used (level key rail_activator_active; every rail in the live levels has it set)
*/
bool GetActive() const { return m_Active; }
// The players that used the rail and have not left it yet
const std::vector<LWOOBJID>& GetEntitiesOnRail() const { return m_EntitiesOnRail; }
bool GetNoAggro() const { return m_NoAggro; }
bool GetShowNameBillboard() const { return m_ShowNameBillboard; }
private:
@@ -131,6 +134,11 @@ private:
*/
bool m_UseDB;
/**
* The row's preconditions a player has to pass to use the rail
*/
std::string m_Preconditions;
/**
* Client flag
*/