💻
pasteware
  • Introduction
  • Namespaces
    • engine_client
    • global_vars
    • renderer
    • config
    • math
    • input
    • cheat
  • Hooks
    • CreateMove
    • PaintTraverse
    • FrameStageNotify
  • Types
    • CUserCmd
    • ang_t
    • vec3_t
    • vec2_t
    • color_t
Powered by GitBook
On this page
  • is_connected(): bool
  • is_ingame(): bool
  • is_voice_recording(): bool
  • is_paused(): bool
  • exec( cmd )
  • get_local_player(): int
  • get_view_angles(): ang_t
  • set_view_angles( angles )

Was this helpful?

  1. Namespaces

engine_client

is_connected(): bool

Returns if you are connected to a server or not

if ( engine_client.is_connected() ) {

}

is_ingame(): bool

Returns if you are in game or not

if ( engine_client.is_ingame() ) {

}

is_voice_recording(): bool

Returns if you are talking in voice chat or not

if ( engine_client.is_voice_recording() ) {

}

is_paused(): bool

Returns if the game is paused or not

if ( engine_client.is_paused() ) {

}

exec( cmd )

Executes a console command. If the command is a cheat command and sv_cheats is set to 0, the command won't be executed

Type

Name

Description

string

cmd

The command you want to execute

engine_client.exec( "buy scar20; buy ssg08" );

get_local_player(): int

Returns the local player's entity index or -1 if not connected

var local_idx = engine_client.get_local_player();

get_view_angles(): ang_t

Returns current view angles

var angles = engine_client.get_view_angles();

set_view_angles( angles )

Sets view angles

Type

Name

Description

ang_t

angles

The view angles you want to end up at

engine_client.set_view_angles( new ang_t( 0, 180, 0 ) );
PreviousIntroductionNextglobal_vars

Last updated 4 years ago

Was this helpful?