Nuclide
Software Development Kit for id Technology (BETA)
Utilities

Client Utility API Reference. More...

Detailed Description

Client Utility API Reference.

Functions

bool Client_IsSpectator (ncPlayer)
 Returns if the specified client is a ncSpectator, doesn't matter if real or fake. More...
 
bool Client_IsRealSpectator (ncClient cl)
 Returns if we're a permanent ncSpectator, USE THIS if you want to access ncSpectator class attributes. More...
 
bool Client_IsFakeSpectator (ncClient cl)
 Returns if we're a fake ncSpectator, in case you need to be certain. More...
 
bool Client_IsDead (ncClient)
 Return if the specified client is dead. More...
 
bool Client_IsPlayer (ncClient cl)
 Returns if the specified client is a playable client class. More...
 
bool Client_InIntermission (void)
 Are we in an intermission? (Match ending screen) More...
 
string Util_GetKeyString (string strBind)
 Returns the name of the key that a given command is bound to. More...
 
bool Client_InVehicle (void)
 Returns if the currently active client-seat is in a vehicle. More...
 

Function Documentation

◆ Client_InIntermission()

bool Client_InIntermission ( void  )

Are we in an intermission? (Match ending screen)

◆ Client_InVehicle()

bool Client_InVehicle ( void  )

Returns if the currently active client-seat is in a vehicle.

◆ Client_IsDead()

bool Client_IsDead ( ncClient  cl)

Return if the specified client is dead.

If they're a ncSpectator they're always alive.

◆ Client_IsFakeSpectator()

bool Client_IsFakeSpectator ( ncClient  cl)

Returns if we're a fake ncSpectator, in case you need to be certain.

◆ Client_IsPlayer()

bool Client_IsPlayer ( ncClient  cl)

Returns if the specified client is a playable client class.

◆ Client_IsRealSpectator()

bool Client_IsRealSpectator ( ncClient  cl)

Returns if we're a permanent ncSpectator, USE THIS if you want to access ncSpectator class attributes.

◆ Client_IsSpectator()

bool Client_IsSpectator ( ncPlayer  cl)

Returns if the specified client is a ncSpectator, doesn't matter if real or fake.

◆ Util_GetKeyString()

string Util_GetKeyString ( string  strBind)

Returns the name of the key that a given command is bound to.

Parameters
strBindthe command in question. E.g. "+forward"