-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbot_navigate.h
More file actions
90 lines (59 loc) · 2.46 KB
/
bot_navigate.h
File metadata and controls
90 lines (59 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//
// FoXBot - AI Bot for Halflife's Team Fortress Classic
//
// (http://foxbot.net)
//
// bot_navigate.h
//
// Copyright (C) 2003 - Tom "Redfox" Simpson
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License for more details at:
// http://www.gnu.org/copyleft/gpl.html
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
#ifndef BOT_NAVIGATE_H
#define BOT_NAVIGATE_H
// standard amount of time to reach the bots current waypoint
constexpr float BOT_WP_DEADLINE = 7.0f;
void BotUpdateHomeInfo(const bot_t* pBot);
void BotFindCurrentWaypoint(bot_t* pBot);
void BotSetFacing(const bot_t* pBot, Vector v_focus);
void BotFixIdealPitch(edict_t* pEdict);
float BotChangePitch(edict_t* pEdict, float speed);
void BotFixIdealYaw(edict_t* pEdict);
float BotChangeYaw(edict_t* pEdict, float speed);
void BotNavigateWaypointless(bot_t* pBot);
bool BotNavigateWaypoints(bot_t* pBot, bool navByStrafe);
bool BotHeadTowardWaypoint(bot_t* pBot, bool& r_navByStrafe);
void BotUseLift(bot_t* pBot);
bool BotCheckWallOnLeft(const bot_t* pBot);
bool BotCheckWallOnRight(const bot_t* pBot);
int BotFindFlagWaypoint(const bot_t* pBot);
int BotFindFlagGoal(const bot_t* pBot);
int BotGoForSniperSpot(const bot_t* pBot);
int BotTargetDefenderWaypoint(const bot_t* pBot);
int BotGetDispenserBuildWaypoint(const bot_t* pBot);
int BotGetTeleporterBuildWaypoint(const bot_t* pBot, bool buildEntrance);
void BotFindSideRoute(bot_t* pBot);
bool BotPathCheck(int sourceWP, int destWP);
bool BotChangeRoute(bot_t* pBot);
bool BotSetAlternativeGoalWaypoint(bot_t* pBot, int& r_goalWP, WPT_INT32 flags);
int BotFindSuicideGoal(const bot_t* pBot);
int BotFindRetreatPoint(bot_t* pBot, int min_dist, const Vector& r_threatOrigin);
int BotFindThreatAvoidPoint(bot_t* pBot, int min_dist, const edict_t* pent);
int BotDrowningWaypointSearch(const bot_t* pBot);
bool BotFindTeleportShortCut(bot_t* pBot);
#endif // BOT_NAVIGATE_H