Nuclide
Software Development Kit for id Tech
util.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
19
22
25
28
31
33bool Client_InIntermission(void);
34
38string Util_GetKeyString(string strBind);
39
41bool Client_InVehicle(void);
42
43string Util_GetTime(void);
44float Util_GetTimeLeft(void);
45string Util_GetAddress(void);
This entity class is the lowest client/player class.
Definition: NSClient.h:24
bool Client_InIntermission(void)
Are we in an intermission? (Match ending screen)
Definition: NSClient.qc:176
bool Client_IsDead(NSClient)
Return if the specified client is dead.
Definition: util.qc:39
bool Client_IsRealSpectator(NSClient cl)
Returns if we're a permanent NSClientSpectator, USE THIS if you want to access NSClientSpectator clas...
Definition: util.qc:27
bool Client_IsFakeSpectator(NSClient cl)
Returns if we're a fake NSClientSpectator, in case you need to be certain.
Definition: util.qc:33
string Util_GetKeyString(string strBind)
Returns the name of the key that a given command is bound to.
Definition: util.qc:63
float Util_GetTimeLeft(void)
Definition: util.qc:120
bool Client_IsPlayer(NSClient cl)
Returns if the specified client is a playable client class.
Definition: util.qc:45
string Util_GetTime(void)
Definition: util.qc:95
bool Client_InVehicle(void)
Returns if the currently active client-seat is in a vehicle.
Definition: util.qc:51
bool Client_IsSpectator(NSClient)
Returns if the specified client is a NSClientSpectator, doesn't matter if real or fake.
Definition: util.qc:18
string Util_GetAddress(void)
Definition: util.qc:127