Nuclide
Software Development Kit for id Technology
defs.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
17#include "cvars.h"
18#include "profiles.h"
19
36vector Route_SelectDestination( NSBot target );
37
40
41void
42_BotLog(string functionName, string msg)
43{
44 print(sprintf("%f ^xF05%s ^7: %s\n", time, functionName, msg));
45}
46
51#define BotLog(...) if (autocvar_bot_developer) _BotLog(__FUNC__, sprintf(__VA_ARGS__))
52
53void
54_BotEntLog(string className, string functionName, float edictNum, string warnMessage)
55{
56 print(sprintf("%f ^xF05%s (id: %d) ^7: %s\n", time, functionName, edictNum, warnMessage));
57}
58
63#define BotEntLog(...) if (autocvar_bot_developer) _BotEntLog(classname, __FUNC__, num_for_edict(this), sprintf(__VA_ARGS__))
64
65var string autocvar_bot_prefix = "";
66 // end of bot
A virtual multiplayer opponent.
Definition: NSBot.h:53
void _BotLog(string functionName, string msg)
Definition: defs.h:42
var string autocvar_bot_prefix
Definition: defs.h:65
void _BotEntLog(string className, string functionName, float edictNum, string warnMessage)
Definition: defs.h:54
var int autocvar_nav_radius
Definition: defs.h:39
var int autocvar_nav_linksize
Definition: defs.h:38
vector Route_SelectDestination(NSBot target)
Definition: route.qc:162