Source2Toolkit
Core api

IToolkitConVars

IToolkitConVars

Methods

uint16 GetConvarAccessIndexByName(name)

Retrieves access index of a ConVar by name.

Parameters
  • name const char* — ConVar name

ConVarRefAbstract GetConvarRef(accessIndex)

Gets a ConVar reference wrapper.

Parameters
  • accessIndex uint16

const char* GetName(accessIndex)

Gets ConVar name.

Parameters
  • accessIndex uint16

const char* GetHelpText(accessIndex)

Gets help/description text.

Parameters
  • accessIndex uint16

EConVarType GetType(accessIndex)

Gets ConVar type.

Parameters
  • accessIndex uint16

uint64 GetFlags(accessIndex)

Gets flags (FCVAR_*).

Parameters
  • accessIndex uint16

SetFlags(accessIndex, flags)

Sets flags (FCVAR_*).

Parameters
  • accessIndex uint16
  • flags uint64

void* GetValueAddress(accessIndex, slot)

Gets pointer to underlying value.

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

const char* GetString(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

bool GetBool(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

int32 GetInt(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

float GetFloat(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

double 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

Vector2D GetVector2(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

Vector GetVector3(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

Vector4D GetVector4(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

QAngle GetQAngle(accessIndex, slot)

Parameters
  • accessIndex uint16
  • slot CSplitScreenSlot

Color 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