Nuclide
Software Development Kit for id Technology
util.h
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
27
30
33
36
39
41bool Client_InIntermission(void);
42
46string Util_GetKeyString(string strBind);
47
49bool Client_InVehicle(void);
50
51string Util_GetTime(void);
52float Util_GetTimeLeft(void);
53string Util_GetAddress(void);
54 // end of client
This entity class represents every player client.
Definition: NSClientPlayer.h:28
This entity class is the lowest client/player class.
Definition: NSClient.h:26
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:42
bool Client_IsRealSpectator(NSClient cl)
Returns if we're a permanent NSClientSpectator, USE THIS if you want to access NSClientSpectator clas...
Definition: util.qc:30
bool Client_IsFakeSpectator(NSClient cl)
Returns if we're a fake NSClientSpectator, in case you need to be certain.
Definition: util.qc:36
string Util_GetKeyString(string strBind)
Returns the name of the key that a given command is bound to.
Definition: util.qc:66
float Util_GetTimeLeft(void)
Definition: util.qc:123
bool Client_IsPlayer(NSClient cl)
Returns if the specified client is a playable client class.
Definition: util.qc:48
string Util_GetTime(void)
Definition: util.qc:98
bool Client_IsSpectator(NSClientPlayer)
Returns if the specified client is a NSClientSpectator, doesn't matter if real or fake.
Definition: util.qc:18
bool Client_InVehicle(void)
Returns if the currently active client-seat is in a vehicle.
Definition: util.qc:54
string Util_GetAddress(void)
Definition: util.qc:130