swiftlys2/docs/api/releases/features/ai/
API Reference › Convars

ConvarFlags

Enum
Namespace: SwiftlyS2.Shared.Convars · Assembly: SwiftlyS2.CS2.dll
[Flags]
public enum ConvarFlags : ulong
View source
ARCHIVE

Set to cause it to be saved to vars.rc.

128
CHEAT

Only usable in singleplayer/debug or when sv_cheats is enabled.

16384
CLIENTCMD_CAN_EXECUTE

IVEngineClient::ClientCmd is allowed to execute this command.

268435456
CLIENTDLL

Defined by the client DLL.

8
CLIENT_CAN_EXECUTE

Assigned to commands to let clients execute them.

33554432
COMMANDLINE_ENFORCED

If set via launch options, value will not be reset by ResetConVarsToDefaultValuesByFlag.

2097152
DEFENSIVE

Defensive flag.

4294967296
DEMO

Record this convar when starting a demo file.

65536
DEVELOPMENT_ONLY

Hidden in released products. Flag is removed automatically if ALLOW_DEVELOPMENT_CVARS is defined.

2
DONTRECORD

Do not record this command in demo files.

131072
EXECUTE_PER_TICK

Execute per tick.

536870912
GAMEDLL

Defined by the game DLL.

4
HIDDEN

Hidden. Doesn't appear in find or auto complete. Like DEVELOPMENTONLY, but can't be compiled out.

16
INITIAL_SETVALUE

Is set for a first convar SetValue either with its default_value or with a value from a gameinfo. Mostly for callbacks to check for.

4096
LINKED_COMMAND

Allows concommand callback chaining. When command is dispatched all chained callbacks would fire.

1
MENUBAR_ITEM

Show as a menu bar item.

1048576
NONE

The default, no flags at all

0
NOTIFY

Notifies players when changed.

256
NOT_CONNECTED

Cvar cannot be changed by a client that is connected to a server.

4194304
PERFORMING_CALLBACKS

Set when cvar is executing callbacks; value sets during callbacks are queued until callbacks finish.

262144
PER_USER

Causes per-user variants (e.g. varname2..N for splitscreen) to be autogenerated.

32768
PROTECTED

It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value.

32
REFERENCE

Means cvar is a reference, usually used to get a cvar reference of a cvar registered in other module, and is temporary until the actual cvar was registered.

1024
RELEASE

Only cvars tagged with this are available to customers.

524288
REPLICATED

Server setting enforced on clients. Values are replicated from server to clients.

8192
SERVER_CANNOT_QUERY

If this is set, then the server is not allowed to query this cvar's value.

67108864
SERVER_CAN_EXECUTE

The server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CBaseClientState::ProcessStringCmd.

16777216
SPONLY

This cvar cannot be changed by clients connected to a multiplayer server.

64
UNLOGGED

If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log.

2048
USERINFO

Changes the client's info string

512
VCONSOLE_FUZZY_MATCHING

Enable fuzzy matching in vconsole.

8388608
VCONSOLE_SET_FOCUS

vconsole set focus.

134217728