Nuclide
Software Development Kit for id Tech
defs.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
17#include "cvars.h"
18#include "profiles.h"
19
30
33
34void
35_BotLog(string functionName, string msg)
36{
37 print(sprintf("%f ^xF05%s ^7: %s\n", time, functionName, msg));
38}
39
44#define BotLog(...) if (autocvar_bot_developer) _BotLog(__FUNC__, sprintf(__VA_ARGS__))
45
46void
47_BotEntLog(string className, string functionName, float edictNum, string warnMessage)
48{
49 print(sprintf("%f ^xF05%s (id: %d) ^7: %s\n", time, functionName, edictNum, warnMessage));
50}
51
56#define BotEntLog(...) if (autocvar_bot_developer) _BotEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
57
58var string autocvar_bot_prefix = "";
59 // end of bot
A virtual multiplayer opponent.
Definition: NSBot.h:53
void _BotLog(string functionName, string msg)
Definition: defs.h:35
var string autocvar_bot_prefix
Definition: defs.h:58
void _BotEntLog(string className, string functionName, float edictNum, string warnMessage)
Definition: defs.h:47
var int autocvar_nav_radius
Definition: defs.h:32
var int autocvar_nav_linksize
Definition: defs.h:31
vector Route_SelectDestination(NSBot target)
Definition: route.qc:162
string target
Definition: defs.h:23