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)
|
|
|
|
|
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.
|
2020-12-21 17:19:27 -05:00
|
|
|
Defaults to `https://nanny.cfcservers.org/cfc3-ping`.
|
|
|
|
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.
|
|
|
|
Defaults to `https://cdn.cfcservers.org/media/dinosaur/index.html`
|
|
|
|
|
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.
|
|
|
|
- `cfc_disconnect_interface_test_recover` - Mimics the server fully recovering, closing the interface.
|