CS2 Extended API

This API is available in both the Uni API and the CS2 product.

In the CS2 product, all standard Proc API functions are supported except:

  • Process referencing by PID/name

  • Engine-specific helpers

  • Virtual memory allocation (alloc_vm / free_vm)

On CS2 Product, ref_process() always returns the CS2 process only, so it is used like:

proc_t cs2 = ref_process();  // for CS2 Product only

There is no memory allocation API exposed in the CS2 product.


🔗 uint64 proc_t::cs2_get_interface(uint64 module_base, const string &in name) const

Resolves a CreateInterface-style interface exported by a CS2 module.

uint64 proc_t::cs2_get_interface(
    uint64 module_base,
    const string &in name
) const

Parameters

  • module_base Base address of the module containing CreateInterface (e.g. "tier0.dll").

  • name Interface name, e.g. "VEngineCvar007".

Returns

  • An absolute pointer to the resolved interface.

  • 0 if the interface wasn’t found.


🧬 array<dictionary@>@ proc_t::cs2_get_schema_dump() const

Dumps every field exposed by the Source 2 Schema System for client.dll.

Return Format

Returns an array of dictionaries. Each element has:

Key
Type
Description

"name"

string

"ClassName::fieldName" (UTF-8)

"offset"

int64

Field offset relative to the class base

Example element


🧪 Full Example — Interface Lookup + Schema Dump

Last updated