Nuclide
Software Development Kit for id Tech
util.qc File Reference

Functions

bool Client_IsSpectator (NSClient cl)
 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 cl)
 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_InVehicle (void)
 Returns if the currently active client-seat is in a vehicle. More...
 
string Util_GetKeyString (string strBind)
 Returns the name of the key that a given command is bound to. More...
 
bool Util_IsFocused (void)
 
int Util_GetMaxPlayers (void)
 
string Util_GetTime (void)
 
float Util_GetTimeLeft (void)
 
string Util_GetAddress (void)
 

Function Documentation

◆ 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 ( NSClient  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_GetMaxPlayers()

int Util_GetMaxPlayers ( void  )

◆ Util_GetTime()

string Util_GetTime ( void  )

◆ Util_GetTimeLeft()

float Util_GetTimeLeft ( void  )

◆ Util_IsFocused()

bool Util_IsFocused ( void  )