Skip to content

Latest commit

 

History

History
196 lines (135 loc) · 3.13 KB

File metadata and controls

196 lines (135 loc) · 3.13 KB

EngineClient

Functions

ExecuteClientCmd

Parameters:

Name Type Description
value string Command
EngineClient.ExecuteClientCmd("say neverlose.cc")

GetLevelName

Return value:

Name Type Description
value string Name of the current map
local mapname = EngineClient.GetLevelName()
print(mapname)

GetLevelNameShort

Return value:

Name Type Description
value string Short name of the current map
local mapname_short = EngineClient.GetLevelNameShort()
print(mapname_short)

GetMapGroupName

Return value:

Name Type Description
value string Map group name
local mapgroup = EngineClient.GetMapGroupName()
print(mapgroup)

GetLocalPlayer

Return value:

Name Type Description
value int Local player index
local localplayer = EngineClient.GetLocalPlayer()
print(localplayer)

GetMaxClients

Return value:

Name Type Description
value int Max amount of clients
local max_players = EngineClient.GetMaxClients()
print(max_players)

GetNetChannelInfo

Return value:

Name Type Description
value INetChannelInfo* INetChannelInfo pointer
local net_chann = EngineClient.GetNetChannelInfo()
print(net_chann)

GetScreenSize

Return value:

Name Type Description
value Vector2 Size of game window
local screen_size = EngineClient.GetScreenSize()
print(screen_size.x, screen_size.y)

GetViewAngles

Return value:

Name Type Description
value QAngle View angles
local view_angles = EngineClient.GetViewAngles()
print(view_angles.pitch, view_angles.yaw, view_angles.roll)

IsConnected

Return value:

Name Type Description
value bool Is player connected to any server
local IsConnected = EngineClient.IsConnected()
print(IsConnected)

IsInGame

Return value:

Name Type Description
value bool Is player ingame
local in_game = EngineClient.IsInGame()
print(in_game)

GetGameDirectory

Return value:

Name Type Description
value string Path to game directory
local game_dir = EngineClient.GetGameDirectory()
print(game_dir)

GetLastTimestamp

Return value:

Name Type Description
value int Last timestamp
local timestamp = EngineClient.GetLastTimestamp()
print(timestamp)

GetProductVersionString

Return value:

Name Type Description
value string CS:GO version
local ver = EngineClient.GetProductVersionString()
print(ver)

SetViewAngles

Parameters:

Name Type Description
value QAngle New angles
EngineClient.SetViewAngles(QAngle.new(20, 20, 0))