Nuclide
Software Development Kit for id Technology (BETA)
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 // end of client
This entity class is the lowest client/player class.
Definition: NSClient.h:26
This entity class represents every player client.
Definition: NSClientPlayer.h:28
bool Client_InIntermission(void)
Are we in an intermission? (Match ending screen)
Definition: NSClient.qc:176
bool Client_IsFakeSpectator(ncClient cl)
Returns if we're a fake ncSpectator, 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
bool Client_IsSpectator(ncPlayer)
Returns if the specified client is a ncSpectator, 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
bool Client_IsRealSpectator(ncClient cl)
Returns if we're a permanent ncSpectator, USE THIS if you want to access ncSpectator class attributes...
Definition: util.qc:30
bool Client_IsPlayer(ncClient cl)
Returns if the specified client is a playable client class.
Definition: util.qc:48
bool Client_IsDead(ncClient)
Return if the specified client is dead.
Definition: util.qc:42