Add modular chat help for T5 and T6

This commit is contained in:
2026-10-04 14:51:58 -04:00
parent 6b462c4726
commit bbafebe208
10 changed files with 248 additions and 10 deletions
+22 -2
View File
@@ -5,7 +5,7 @@ just like T5. There is no separate TWS config file or database setup.
| File | Role | Dependencies |
| --- | --- | --- |
| `tws_t6_common.gsc` | Shared HUD values, helpers and first-spawn dispatcher | Stock T6 |
| `tws_t6_common.gsc` | Shared HUD values, helpers, `.help` and first-spawn dispatcher | Stock T6 |
| `tws_t6_hud.gsc` | Match/round timers, name, zombie count and health bar | Common |
| `tws_t6_afk.gsc` | `.afk` / `.back`, protection, movement and weapon blocking | Common |
| `tws_t6_lock.gsc` | Lock at round 20; clear password on game over | Common, HUD |
@@ -31,6 +31,26 @@ Keep the filenames and `scripts/zm` location so shared references resolve.
To omit telemetry, remove its script; disabling it at runtime does not remove
its plugin dependency during linking.
## Chat commands
Type `.help` 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.
| Command | Description |
| --- | --- |
| `.help` | List available commands |
| `.afk` | Pause with protection |
| `.back` | Return from AFK |
| `.join` | Join mid-round (newcomers only) |
AFK and Join register their commands during `init()` through
`tws_t6_common::register_help_command(command, description)`. If a module is
omitted, its commands are omitted from `.help`. Register new commands alongside
their module's initialization so the list stays current.
## Defaults, matching T5
- HUD values live in `tws_t6_common::common_config()`. That function and
@@ -95,7 +115,7 @@ another mod installed one first.
## Validation
All six scripts compile for T6 PC with gsc-tool 1.4.10. To repeat:
To compile all six scripts for T6 PC with gsc-tool 1.4.10:
```powershell
.\tools\check.ps1 -CompilerPath C:\path\to\gsc-tool.exe