Source2Toolkit
Core apiLow level

IToolkitConVars

IToolkitConVars

Methods

GetConvarAccessIndexByName(name)

Retrieves access index of a ConVar by name.

Parameters
  • name const char* — ConVar name

GetConvarRef(accessIndex)

Gets a ConVar reference wrapper.

Parameters
  • accessIndex uint16

GetName(accessIndex)

Gets ConVar name.

Parameters
  • accessIndex uint16

GetHelpText(accessIndex)

Gets help/description text.

Parameters
  • accessIndex uint16

GetType(accessIndex)

Gets ConVar type.

Parameters
  • accessIndex uint16

GetFlags(accessIndex)

Gets flags (FCVAR_*).

Parameters
  • accessIndex uint16

SetFlags(accessIndex, flags)

Sets flags (FCVAR_*).

Parameters
  • accessIndex uint16
  • flags uint64

GetValueAddress(accessIndex, slot)

Gets pointer to underlying value.

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetString(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetBool(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetInt(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetFloat(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetDouble(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

SetString(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value const char*
  • slot CSplitScreenSlot

SetBool(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value bool
  • slot CSplitScreenSlot

SetInt(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value int32
  • slot CSplitScreenSlot

SetFloat(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value float
  • slot CSplitScreenSlot

SetDouble(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value double
  • slot CSplitScreenSlot

GetVector2(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetVector3(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetVector4(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetQAngle(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

GetColor(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

SetVector2(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value const Vector2D&
  • slot CSplitScreenSlot

SetVector3(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value const Vector&
  • slot CSplitScreenSlot

SetVector4(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value const Vector4D&
  • slot CSplitScreenSlot

SetQAngle(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value const QAngle&
  • slot CSplitScreenSlot

SetColor(accessIndex, value, slot)

Parameters
  • accessIndex uint16
  • value const Color&
  • slot CSplitScreenSlot

GetValue(accessIndex, outValue, slot)

Gets value into user-provided buffer.

Parameters
  • accessIndex uint16
  • outValue void*
  • slot CSplitScreenSlot

SetValue(accessIndex, value, slot)

Sets value from user-provided buffer.

Parameters
  • accessIndex uint16
  • value const void*
  • slot CSplitScreenSlot

DeleteConVar(accessIndex)

Deletes a ConVar.

Parameters
  • accessIndex uint16

On this page