2022-07-07 09:10:14 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016-2022 Vera Visions LLC.
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
|
|
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Returns if the specified client is a NSClientSpectator, doesn't matter if real or fake */
|
|
|
|
bool Client_IsSpectator(NSClient);
|
2022-03-17 21:05:47 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Returns if we're a permanent NSClientSpectator, USE THIS if you want to access NSClientSpectator class attributes */
|
|
|
|
bool Client_IsRealSpectator(NSClient cl);
|
2022-03-17 21:05:47 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Returns if we're a fake NSClientSpectator, in case you need to be certain */
|
|
|
|
bool Client_IsFakeSpectator(NSClient cl);
|
2022-03-17 21:05:47 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Return if the specified client is dead. If they're a NSClientSpectator they're always alive. */
|
|
|
|
bool Client_IsDead(NSClient);
|
2022-03-17 21:05:47 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Returns if the specified client is a playable client class */
|
|
|
|
bool Client_IsPlayer(NSClient cl);
|
2022-03-17 21:05:47 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Are we in an intermission? (Match ending screen) */
|
|
|
|
bool Client_InIntermission(void);
|
2022-06-04 14:08:39 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Returns the name of the key that a given command is bound to.
|
2022-11-01 19:12:40 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
@param strBind the command in question. E.g. "+forward" */
|
|
|
|
string Util_GetKeyString(string strBind);
|
2022-11-01 19:12:40 -07:00
|
|
|
|
2022-12-28 16:48:57 -08:00
|
|
|
/** Returns if the currently active client-seat is in a vehicle. */
|
2023-06-15 11:40:46 -07:00
|
|
|
bool Client_InVehicle(void);
|
|
|
|
|
|
|
|
string Util_GetTime(void);
|
|
|
|
float Util_GetTimeLeft(void);
|
|
|
|
string Util_GetAddress(void);
|