Cheats, tweaks to the engine and other tools, developed by dtl team in preparation for and during CTFCUP 2024 finals.
There are two utility scripts in the scripts
directory:
./scripts/server.sh
Command below will start the game client and connect either to the local server or to the remote server.
./scripts/client.sh <local|remote>
You can pass environment variables to both client and server, e.g.:
REWIND_TPS=300 REWIND_FILE=rewind/level-1.json ./scripts/client.sh <local|remote>
Allows to save game's state and replay it later, basically checkpoint system.
-
REWIND_FILE
- path to the rewind file, e.g.REWIND_FILE=rewind/level-1.json
. If not set, rewind will not be used. -
REWIND_TPS
- set TPS for rewind replay, e.g.REWIND_TPS=100
. If not set, defaults to 6000 TPS (x100 regular game speed). -
REWIND_SKIP_PAUSED
- if set to non-empty value, paused frames, in which no inputs are done, will be skipped.
X
- save rewind up to the current moment to file.Shift+R
— reset recording. Note that this will also restart the game, asR
is handled as usual.
+
- increase TPS.-
- decrease TPS.
For both of these keys, whether the shift is pressed or not does not matter.
- Left / Right arrow keys — move player left / right and pause the game, once released.
- Up arrow key — jump and pause the game, once released.
Z
/ down key — unpause the game while the key is held down and pause it once released.
N
— to toggle free camera on/off.I
/J
/K
/L
— move free camera up /left / down / right.U
/O
— slow down / speed up free camera.
Ctrl+V
— paste text from clipboard into the dialog.
Destructive cheats are cheats that break the game in a way that doesn't pass checksum validation on the side of unmodified server. But they can be used with the local server for experimentation and such.
Destructive cheats are enabled on both client and server by setting CHEATS=1
environment variable.
At the moment, the following functionality is enabled with destructive cheats:
- Damage from spikes is set to 0.
-
MONITOR
- set monitor to use, e.g.MONITOR="DELL U2720Q"
. If selected monitor is not found, the game will use the first available monitor and the list of all available monitors will be printed to the console. -
INITIAL_TPS
- set initial TPS for the game (applied after rewind replay). If not set, defaults to 60 TPS. -
MUTED
- if set to 1, the game will start up muted. -
VISIBLE_COLLISIONS
- set all collidable objects texture to brick.