Nuclide
Software Development Kit for id Technology
Utilities

Client Utility API Reference. More...

Detailed Description

Client Utility API Reference.

Functions

bool Client_IsSpectator (NSClientPlayer)
 Returns if the specified client is a NSClientSpectator, doesn't matter if real or fake. More...
 
bool Client_IsRealSpectator (NSClient cl)
 Returns if we're a permanent NSClientSpectator, USE THIS if you want to access NSClientSpectator class attributes. More...
 
bool Client_IsFakeSpectator (NSClient cl)
 Returns if we're a fake NSClientSpectator, in case you need to be certain. More...
 
bool Client_IsDead (NSClient)
 Return if the specified client is dead. More...
 
bool Client_IsPlayer (NSClient 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...
 
string Util_GetTime (void)
 
float Util_GetTimeLeft (void)
 
string Util_GetAddress (void)
 

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 ( NSClient  cl)

Return if the specified client is dead.

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

◆ Client_IsFakeSpectator()

bool Client_IsFakeSpectator ( NSClient  cl)

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

◆ Client_IsPlayer()

bool Client_IsPlayer ( NSClient  cl)

Returns if the specified client is a playable client class.

◆ Client_IsRealSpectator()

bool Client_IsRealSpectator ( NSClient  cl)

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

◆ Client_IsSpectator()

bool Client_IsSpectator ( NSClientPlayer  cl)

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

◆ Util_GetAddress()

string Util_GetAddress ( void  )

◆ 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"

◆ Util_GetTime()

string Util_GetTime ( void  )

◆ Util_GetTimeLeft()

float Util_GetTimeLeft ( void  )