Default Key functions

Even without a script - for instance by loading a level in preview mode - the engine contains some internal script functions that are attached to keys by default. They can be removed by setting the key event function to NULL, or to some other function.  LC  In lite-C the internal engine script is located in include\default.c and can be modified if required. The following keys have attached default functions:

[F2]  Quicksave. Saves the game into the file "save_0.sav". Can also be used to mark a position in level walkthrough mode.
[F3]  Quickload. Loads the last saved game.
[F5]  Video resolution up.
[Shift-F5]   Video resolution down.
[F6]    Takes screenshots to the file "shot_n.jpg".
[F12]  Toggles music and sound.
[Alt-F4]  Shuts down the engine.
[Esc]  Shuts down the engine.
[Alt-Enter]  Toggles window and fullscreen mode.

The following keys are active in the development engine, but not in the distribution engine:

[Tab]   C-Script console. Activates a blinking cursor. C-Script instructions can be entered directly and executed by pressing [Enter]. Some instructions, like sys_exit or level_load can't be entered this way.

[0]   Camera movement. Toggles between script-based movement, direct player movement and direct camera movement, which allows to move the camera with the cursor keys.

[F10]  Single step to the next source line in debug mode.

[F11]  Activates a Statistics Panel (see below) that displays some predefined variables and other information. [F11] pressed a second time causes the level polygon tesselation to be highlighted by red lines, and the bounding boxes of non-passable entities by a blue wireframe.

[Shift-F11] The game freezes and a cursor appears on the screen. When clicking onto an entity, the watched pointer will be set to that entity, causing it's status display to appear on the screen. Pressing [Shift-F11] a second time will resume normal gameplay, but the status display is permanently updated with the status of the last clicked entity, thus allowing to examine it's properties in real time. If you want to get rid of the status display, click an empty position while in frozen mode.

[Ctrl-Alt-End] Shuts down the engine. Useful if you've re-assigned the [Esc] key and forgotten to assign a sys_exit command to a key.

Statistics panel [F11]

<xxx> screen width
fps frames per second
pps polygons per second (x 1000)
x,y,z camera position
pan,til,rol camera euler angles
mx,my mouse position
ms/frame
geo time in ms or level geometry and sky rendering
ent time for entity rendering
par time for particles rendering
mir time for portals and mirrors rendering
pan time for panels, texts and screen entities rendering (and for the 3D card to flush its command buffer)
ref time for screen refresh and monitor sync (and for the 3D card to flush its command buffer)
srv time for entity updates and fps_max idling
fnc time for script execution
phy time for physics execution
counts
ent number of level entities
vis number of visible level and sky entities
tri triangles per second (x 1000)
par number of particles
med number of playing media streams
fnc number of running script functions
memory kb
nex nexus memory consumption
geo map surface video memory consumption
sha shadow map video memory consumption
ent models/sprites/sky video memory consumption
bmp bmap/font video memory consumption
fre available video memory (can be inaccurate)
network
lat connection latency in ms
bps average bytes per second
bpk peak bytes per second
rel bps received in reliable mode
unr bps received in unreliable mode
drp packets per second dropped