From dec51a7032c2f845131f61a9ba461029d078a9c3 Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Tue, 6 Oct 2026 16:12:38 -0400 Subject: [PATCH] Add .commands alias for help in T5 and T6 --- t5/README.md | 6 +++--- t5/tws_t5_common.gsc | 3 ++- t6/README.md | 6 +++--- t6/tws_t6_common.gsc | 3 ++- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/t5/README.md b/t5/README.md index 68d8904..a555060 100644 --- a/t5/README.md +++ b/t5/README.md @@ -48,15 +48,15 @@ apply to both games. ## Player commands -Type `.help` in chat to see available player commands and a short description. +Type `.help` or `.commands` in chat to see available player commands and a short description. The response is visible only to the requesting player and works while spectating, before the first spawn. Commands are case-insensitive. Help appears below the health bar for 12 seconds, clear of the timers, zombie -counter and health display. Typing `.help` again restarts that display time. +counter and health display. Typing either command again restarts that display time. | Command | Effect | |---|---| -| `.help` | List available commands | +| `.help`, `.commands` | List available commands | | `.afk` | Pause with protection | | `.back` | Return from AFK | | `.join` | Join mid-round (newcomers only) | diff --git a/t5/tws_t5_common.gsc b/t5/tws_t5_common.gsc index d22c64b..4cbb0a7 100644 --- a/t5/tws_t5_common.gsc +++ b/t5/tws_t5_common.gsc @@ -105,7 +105,8 @@ help_chat_listener() if (!isDefined(player) || !isDefined(message)) continue; - if (toLower(message) == ".help") + command = toLower(message); + if (command == ".help" || command == ".commands") player show_help(); } } diff --git a/t6/README.md b/t6/README.md index 53b0f9a..4e4ece2 100644 --- a/t6/README.md +++ b/t6/README.md @@ -60,15 +60,15 @@ apply to both versions. All T6 script filenames use the `tws_t6_` prefix. ## Chat commands -Type `.help` in chat to see the commands supplied by the loaded TWS modules and +Type `.help` or `.commands` in chat to see the commands supplied by the loaded TWS modules and a short description of each. The list is shown only to the requesting player, including spectators who have not spawned. Commands are case-insensitive. Help appears below the health bar for 12 seconds, clear of the timers, zombie -counter and health display. Typing `.help` again restarts that display time. +counter and health display. Typing either command again restarts that display time. | Command | Description | | --- | --- | -| `.help` | List available commands | +| `.help`, `.commands` | List available commands | | `.afk` | Pause with protection | | `.back` | Return from AFK | | `.join` | Join mid-round (newcomers only) | diff --git a/t6/tws_t6_common.gsc b/t6/tws_t6_common.gsc index aa01812..9cc3030 100644 --- a/t6/tws_t6_common.gsc +++ b/t6/tws_t6_common.gsc @@ -106,7 +106,8 @@ help_chat_listener() if (!isDefined(player) || !isDefined(message)) continue; - if (toLower(message) == ".help") + command = toLower(message); + if (command == ".help" || command == ".commands") player show_help(); } }