Misc

Miscellaneous API features which I couldn't categorise anywhere else.

GetOffset
GetScreenSize
IsInGame
GetMapName
GetAppDataDirectory
DirectoryExists
PlaySound

You can get up to date offsets directly from within Orbit. The usage may be a bit tricky, so make sure to pay attention to not mess up something accidentally.

Copy

You first need to define a table of string elements, which reflects the path to the offset. To understand the structure of the offsets, just head over to "AppData/Roaming/Orbit/Offsets". Here you will see the data structure of the generated JSON files. Currently, Orbit only supports accessing "client.dll" and "offsets".

Lua
Copy

Sometimes, getting the value of an offset can result in quite a long line of code. Don't worry though, since these paths rarely change from one cs2 update to the next, so that long line will probably feed you the correct offset for a long time.

Lua
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
RayCast
GetTime

"RayCast" uses the built in VPK Parser in Orbit to perform a visible check based on the arguments, which are 2 Vector3D objects.

The return value is a bool, true if visible, false if not.

Lua
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Misc