cfc_disconnect_interface/README.md

28 lines
1.4 KiB
Markdown
Raw Normal View History

2019-05-22 00:41:07 -04:00
# cfc_disconnect_interface
2019-12-23 22:50:20 -05:00
Custom interface to display when the server crashes or the client loses connection
2020-02-15 14:39:52 -05:00
You get to play the Dinosaur Game from Google Chrome!
2019-12-23 22:50:20 -05:00
2020-12-21 17:25:00 -05:00
## Requirements
- [cfc_network_promises](https://github.com/CFC-Servers/cfc_network_promises)
2021-01-16 17:23:01 -05:00
- [cfc_detached_timer](https://github.com/CFC-Servers/cfc_detached_timer)
2020-12-21 17:25:00 -05:00
2020-12-21 17:10:27 -05:00
## Convars (Server-side)
- `cfc_disconnect_interface_status_endpoint` - (String) The url that will be pinged to check server status.
2024-06-01 11:24:29 -04:00
Defaults to `https://nanny.cfcservers.org/cfc3/ping`.
2020-12-21 17:19:27 -05:00
Is expected to return a JSON table containing a `status` key, which will be `server-is-up` when the server is running.
```
{
"status": "server-is-up"
}
```
2020-12-21 17:10:27 -05:00
- `cfc_disconnect_interface_restart_time` - (Int) The number of seconds that will be displayed as the average restart time for the server.
2020-12-21 17:19:27 -05:00
Defaults to `180`
2020-12-21 17:28:08 -05:00
- `cfc_disconnect_interface_game_url` - (String) The url to the dinosaur game.
2024-06-01 11:24:29 -04:00
Defaults to `https://loading.cfcservers.org/dino.html`
2020-12-21 17:28:08 -05:00
2020-12-21 17:10:27 -05:00
## Commands (Client-side)
2020-12-21 17:19:27 -05:00
- `cfc_disconnect_interface_test_crash` - Mimics the server crashing, showing the interface.
- `cfc_disconnect_interface_test_nointernet` - Mimics your internet disconnecting, showing the interface.
- `cfc_disconnect_interface_test_restart` - Mimics the server restarting, allowing you to reconnect.
2024-06-01 11:24:29 -04:00
- `cfc_disconnect_interface_test_recover` - Mimics the server fully recovering, closing the interface.