🎮game

Usage: game.{interface_or_function}

This table exposes various internal services and global objects used by Fatality, and also provides a way to retrieve any additional services you need.

globalVars

Field

Type: CGlobalVarsBase

This service exposes global variables used by the game, such as frame time or current server time.


engine

Field

Type: CEngineClient

This service exposes the engine client, which includes commonly used engine-related functions.


input

Field

Type: CCSGOInput

This service exposes the command input system.


inputSystem

Field

Type: CInputSystem

This service exposes the control input system.


gameUIFuncs

Field

Type: CGameUIFuncs

This service exposes the game's UI functions.


physicsQueryInterface

Field

Type: CPhysicsQueryInterface

This service exposes the game's tracing functions.


gameEntitySystem

Field

Type: CGameEntitySystem

This service exposes some of the game's entity list functions.


PlaySound

Method

Plays a game sound.

circle-info

It also accepts sounds in your csgo/sounds directory. Only vsnd_c files are supported.

Arguments

Name
Type
Description

sound

string

Path to the sound, e.g. sounds/ui/weapon_cant_buy

volume

number

Volume from 0 to 1, if passed -1 it uses the game's volume.

Returns

Nothing.

Example

Last updated