Skip to content

Functions

SendCommand

Arguments

  • const char * cmd

Remarks

Sends a fantasy.cmd command.


GetActivePlayerInformation

Returns

A fantasy_sdk_player structure for the local player.


IsActivePlayerConnected

Returns

True if the player is connected to a server, false otherwise.


SetPlayerProp

Arguments

  • int/std::string/fantasy_sdk_player playerid - The target's player.
  • std::string prop - The Netvar property
  • int value - The value to set the property to.

GetPlayerInformation

Arguments

  • int/std::string playerid - The target player.

Returns

A fantasy_sdk_player structure of the target.


GetPlayerIDByIndex

Arguments

  • int idx - The player index.

Returns

Returns the player's id.


TogglePlayerActiveJump

Arguments

  • bool toggle - True to jump. False to stop jumping.

SetActivePlayerViewAngle

Arguments

  • float x, float y, float z

Remarks

This function is protected by Astrogalaxy. Angles that will trigger bans are blocked.


IsPlayerInFOV

Arguments

  • int/std::string/fantasy_sdk_player player
  • float range - The range to check. FANTASY_CAT_SDK_DEFAULT_FOV has the default value.

Returns

True if the player is in FOV, false otherwise.


GetServerPlayerInformation

Returns

Returns an std::array of all players on the server in a fantasy_sdk_player structure.


GetMemberConfiguration

Remarks

Refreshes your configuration.


SetActivePlayerPrimaryFire

Remarks

Makes your player shoot.


RemoveDrawing

Arguments

  • int id

Draw

Arguments

  • int x - The X position on your CS:GO window.
  • int y - The Y position on your CS:GO window
  • fantasy_cat_color_scheme color - RGB structure
  • const char * buf - The text.
  • ... - Arguments.

Returns

The ID of the new drawing.

Remarks

fantasy.x must be enabled for this to work.


OutputConsole

Arguments

  • const char * buf
  • ...

Remarks

Displays a text in your fantasy.debugmode window.


Load_DLL

Arguments

  • const char * path

Remarks

  • Injects DLL through kernel driver.

GetIntConfigurationValue

Arguments

  • const char * object - Item name.

Returns

The value found inside your json configuration.


GetBoolConfigurationValue


GetFloatConfigurationValue


GetStringConfigurationValue


GetWeaponIntConfigurationValue

Arguments

  • const char * weapon - Weapon name
  • const char * object - Item name.

Returns

The value found inside your json configuration.


GetWeaponFloatConfigurationValue


GetWeaponBoolConfigurationValue


GetWeaponStringConfigurationValue


Listen

Arguments

  • FANTASY_SDK_LISTENER ev - The constant SDK event.
  • SDK_EVENT_FN/SDK_EVENT_DATA_FN/SDK_EVENT_RET_FN - The callback function.

Remarks

This functions essentially hooks an activity inside of Astrogalaxy.


GetOverlayAddress

Returns

An std::tuple of the present and reset address of gameoverlayrenderer.dll

Remarks

This only works internally.


Load_Plugin

Arguments

  • unsigned short id - Resource ID
  • std::string abb - Name of plugin or abbreviation.

Remarks

Loads a plugin that is packed as a resource option in your .exe or DLL


FindPattern

Arguments

  • void * mod - The module address.
  • unsigned char * pattern
  • unsigned char * mask
  • unsigned long base - Optional. Base address of module.
  • unsigned long size - Optional. Base size of module.

Returns

The address.

Remarks

Finds a memory pattern inside of a module.


GetInterfaceAddress

Arguments

  • const char * module
  • const char * interface name

Returns

Returns the interface address.

Remarks

This only works internally.


SetGlobalVariable

Arguments

  • const char * variable_name
  • const char * value

Remarks

This function sets a variable that can be accessed by all other plugins.


GetGlobalVariable

Arguments

  • const char * variable_name

Returns

The value of the variable if set.


GetCurrentMap

Returns

Current map name.


GetCurrentMapDirectory

Returns

File location of the map.


GetCurrentMapData

Returns

An std::tuple of both GetCurrentMap and GetCurrentMapDirectory


SaveConfiguration


World2Screen

Arguments

  • float x, float y, float z

Returns

An std::tuple of the X and Y location on your screen.


HTTPDownload

Arguments

  • const char * address
  • const char * file

Remarks

All downloaded files are automatically placed in the plugins folder. Members cannot download files from the internet and place them in random spots on someone's PC.


Execute

Arguments

  • const char * file

Remarks

Executes/Runs a file in your plugins folder.


FileCreate

Arguments

  • const char * file

Remarks

Creates a file in your plugins folder.


FileDelete

Arguments

  • const char * file

Remarks

Deletes a file in your plugins folder.


FileWrite

Arguments

  • const char * file
  • std::wstring buf

Remarks

Writes to a file in your plugins folder.


FileRead

Arguments

  • const char * file

Returns

A std::wstring of the file content.

Remarks

Reads a file in your plugins folder.


ToString

Arguments

  • std::wstring wstr

Returns

Converted to std::string


ToWString

Arguments

  • std::wstring wstr

Returns

Converted to std::wstring


GetModule

Arguments

  • std::string name

Returns

Returns a std::tuple of the module base address and size.


IsVisible

Arguments

  • float x, float y, float z - Base location
  • float x2, float y2, float z2 - Target location.

Returns

True if the target is visible, false otherwise.