Weapon Editor
Commands & permissions
Commands, self-test, and the (absence of) public exports and events.
#Commands
| Command | Where | Permission | Description |
|---|---|---|---|
/weaponeditor | In game | use or higher | Opens the editor. Name set by Config.Command |
/weaponeditor_close | In game | none | Emergency exit if the mouse stays locked |
/gwe_rescan | Server | admin | Rescan the weapon resources running on the server |
/wepeditor_selftest [id] [check] | Server | admin | PASS / FAIL / INFO report in the server console |
From the server console pass the id of a connected player: wepeditor_selftest <id>.
#Self-test
/wepeditor_selftest checks:
- LIVE (S1/S2): damage modifier and getter, spread, recoil, explosion radius, global natives, state bag read.
- S5 (INFO):
data_file_extraformat andio.popenlisting. If unavailable useConfig.ExtraMetaFiles. - S6:
SaveResourceFileinto the patch. Prints theadd_filesystem_permissionline to add if denied. - S3 (INFO): reports that hot reload does not work on build 3258.
- S7 (instructions): set the Pistol
ClipSizeto 50 in the editor, save, reconnect, then run/wepeditor_selftest check(console:wepeditor_selftest <id> check). It compares the client values with the saved override.
The self-test never changes Config.HotReload.
#Exports
The Weapon Editor registers no public exports.