Skip to content

clientstate

This class is redundant of other functions already available. Rather, some of these functions simply mirror other already existing Lua functions.

The only practical reason for using this class is to get the address of ClientState, which works on both Windows and Linux. This is only still implemented just in case it needs to be expanded upon for specific usages.

address

Type

address


get_state

Type

function

Description

You can check if engine:entity_list:get_localplayer is nil. This is equivalent to checking if somebody is ingame or not. In most cases, you're going to be calling that function anyway. Therefore, there isn't really a point of using this. As mentioned in the overview: redundant.

Returns

  • number

get_view_angles

Type

function

Description

This is the same thing as engine:entity_list:get_viewangles.

Returns

  • vector

get_map

Type

function

Description

This is the same thing as engine:source:get_map.

Returns

  • vector

get_localplayer

Type

function

Description

This is the same thing as engine:entity_list:get_localplayer.

Returns

  • vector