source2
Interact with internally used source2 engine sdk
Chunk Base
source2.getChunkBaseFromHandle(IntPtr: entityList, int: currentHandle)Extract the chunk base pointer for a given entity handle by calculating its chunk index from the lower 15 bits.
Chunk Base To Entity
source2.getEntityFromChunkBase(Intptr: chunkBase, int: currentHandle)returns a entity pointer from a chunk base by calculating the stride offset using the lower 9 bits of the handle.
Last updated
Was this helpful?