Skip to content

Commit 5a83377

Browse files
committed
feat: patch remote command
partial fix
1 parent 0a25027 commit 5a83377

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Modules/Server.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,12 @@ static void __cdecl AcceptInput_Hook(void *thisptr, const char *inputName, void
575575
activatorSlot = server->GetSplitScreenPlayerSlot(activator);
576576
}
577577

578+
if (!strcasecmp(className, "point_clientcommand") && !strcasecmp(inputName, "Command")) {
579+
if (caller && !strcasecmp(server->GetEntityClassName(caller), "player")) {
580+
parameter.iszVal = "";
581+
}
582+
}
583+
578584
SpeedrunTimer::TestInputRules(entName, className, inputName, parameter.ToString(), activatorSlot);
579585

580586
if (engine->demorecorder->isRecordingDemo) {

0 commit comments

Comments
 (0)