Limited support
This feature is only present in Portal 2: Community Edition.GameStateAPI
Functions
IsPlaytest
GameStateAPI.IsPlaytest(): boolean
Returns true if this is a playtest build of P2CE
IsPlaytestRecording
GameStateAPI.IsPlaytestRecording(): boolean
Returns true if the current playtest session is recording a demo