Client API
From TremFusion
Contents |
Client and Server
Console commands
- Create/delete command
- Run commands
- Print to console
Cvars
(use safe cvar functions)
- Get (string only, script will convert to other types as needed)
- Set
Event hooks
- New map
- Map restart
- Frame
- End of map (including restarts)
- Com_Printf (for hooks to certain game events)
Server only
Configstrings
- Read & Write
Playerstates & Entitystates
- Read-only
- Access it as a byte array
- Access it as the different fields
Client only
Configstrings
- Read-only
- Block configstrings 28, 29 and 30
Playerstate (no Entitystates)
- Read-only
- Access it as a byte array
- Access it as the different fields
Drawing Text
- Must be re-drawn every frame
- Can print big text or small text
- Can print anywhere on the screen