55 std::optional<PlayerInput> _rewritten;
A multicast signal with a fixed handler signature: the one way to subscribe in VoltMod.
An engine hook that exists only while one of its events has handlers.
Each player's command from CCSPlayer_MovementServices::RunCommand.
Event< int, const PlayerInput & > Before
Event< int, PlayerInput & > Rewrite
void BeforeCommand(int slot, const PlayerInput &input)
Event< int, const PlayerInput & > After
Movement(const Movement &)=delete
std::function< Subscription(Movement &)> Connector
void AfterCommand(int slot, const PlayerInput &input)
Movement & operator=(const Movement &)=delete
Owns one registration and releases it on destruction.
static std::string ReadFile(const std::filesystem::path &path)
std::expected< void, Error > Status
std::expected< T, Error > Result