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
@@ -48,15 +48,15 @@ apply to both games.
## Player commands ## 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, The response is visible only to the requesting player and works while spectating,
before the first spawn. Commands are case-insensitive. before the first spawn. Commands are case-insensitive.
Help appears below the health bar for 12 seconds, clear of the timers, zombie 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 | | Command | Effect |
|---|---| |---|---|
| `.help` | List available commands | | `.help`, `.commands` | List available commands |
| `.afk` | Pause with protection | | `.afk` | Pause with protection |
| `.back` | Return from AFK | | `.back` | Return from AFK |
| `.join` | Join mid-round (newcomers only) | | `.join` | Join mid-round (newcomers only) |
+2 -1
View File
@@ -105,7 +105,8 @@ help_chat_listener()
if (!isDefined(player) || !isDefined(message)) if (!isDefined(player) || !isDefined(message))
continue; continue;
if (toLower(message) == ".help") command = toLower(message);
if (command == ".help" || command == ".commands")
player show_help(); player show_help();
} }
} }
+3 -3
View File
@@ -60,15 +60,15 @@ apply to both versions. All T6 script filenames use the `tws_t6_` prefix.
## Chat commands ## 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, a short description of each. The list is shown only to the requesting player,
including spectators who have not spawned. Commands are case-insensitive. including spectators who have not spawned. Commands are case-insensitive.
Help appears below the health bar for 12 seconds, clear of the timers, zombie 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 | | Command | Description |
| --- | --- | | --- | --- |
| `.help` | List available commands | | `.help`, `.commands` | List available commands |
| `.afk` | Pause with protection | | `.afk` | Pause with protection |
| `.back` | Return from AFK | | `.back` | Return from AFK |
| `.join` | Join mid-round (newcomers only) | | `.join` | Join mid-round (newcomers only) |
+2 -1
View File
@@ -106,7 +106,8 @@ help_chat_listener()
if (!isDefined(player) || !isDefined(message)) if (!isDefined(player) || !isDefined(message))
continue; continue;
if (toLower(message) == ".help") command = toLower(message);
if (command == ".help" || command == ".commands")
player show_help(); player show_help();
} }
} }