Add .commands alias for help in T5 and T6

This commit is contained in:
2026-10-06 16:12:38 -04:00
parent c5d937dc64
commit dec51a7032
4 changed files with 10 additions and 8 deletions
+3 -3
View File
@@ -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) |
+2 -1
View File
@@ -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();
}
}