17#define COST_INFINITE 99999
20#define BOTROUTE_DESTINATION -1
22#define BOTROUTE_END -2
59 virtual void(
string) ChatSay;
60 virtual void(
string) ChatSayTeam;
63 virtual void(
void) WeaponThink;
64 virtual void(
void) WeaponAttack;
65 virtual void(
void) SeeThink;
66 virtual void(
int,
int) BrainThink;
68 virtual void(
void) CreateObjective;
70 virtual void(
void) PreFrame;
71 virtual void(
void) PostFrame;
72 virtual void(
void) UseButton;
74 virtual float(
void) GetRunSpeed;
75 virtual float(
void) GetWalkSpeed;
78 virtual void(
string) SetName;
98 nodeslist_t *m_pRoute;
107 float m_flAttackTime;
123 float m_flForceWeaponAttack;
124 vector m_vecForceWeaponAttackPos;
138 float top = x[2] + (x[1] << 8) + (x[0] << 16);
139 x =
hsvToRGB(random() * 360, 100, 100);
140 float bottom = x[2] + (x[1] << 8) + (x[0] << 16);
141 forceinfokey(
target,
"topcolor", sprintf(
"0x%x", top));
142 forceinfokey(
target,
"bottomcolor", sprintf(
"0x%x", bottom));
entity Bot_AddQuick(void)
Adds a bot to the game with some basic info.
Definition: cmd.qc:36
botpersonality_t
Bot Personality.
Definition: NSBot.h:26
@ BOT_PERSONALITY_DEFENSIVE
this bot will always prefer to stay behind
Definition: NSBot.h:29
@ BOT_PERSONALITY_AGRESSIVE
this bot will always prefer to be attacking
Definition: NSBot.h:28
@ BOT_PERSONALITY_NORMAL
this bot will be dynamic
Definition: NSBot.h:27
void BotLib_Init(void)
Definition: NSBot.qc:630
void Bot_RandomColormap(NSBot target)
Applies random custom colors to the given bot entity.
Definition: NSBot.h:135
botstate_t
Bot State.
Definition: NSBot.h:34
@ BOT_STATE_IDLE
this should rarely happen
Definition: NSBot.h:35
@ BOT_STATE_DEFENDING
this is for when bots stay put and stay around spawn, or their teams goalitem
Definition: NSBot.h:37
@ BOT_STATE_FLEEING
this is for when the AI should just get as far away as possible
Definition: NSBot.h:39
@ BOT_STATE_PATROLLING
this is basically most deathmatch cases
Definition: NSBot.h:36
@ BOT_STATE_ATTACKING
this is for when bots go to the enemy spawn, or to the enemy team's goalitem
Definition: NSBot.h:38
weapontype_t
Definition: NSNavAI.h:35
A virtual multiplayer opponent.
Definition: NSBot.h:45
virtual void(string) SetName
virtual void(void) CreateObjective
nonvirtual void SetInfoKeyFloat(string, float)
Server: Floating point based version of SetInfoKey().
Definition: NSBot.qc:541
virtual void(int, int) BrainThink
nonvirtual void SetInfoKey(string, string)
Server: Set the value of an InfoKey.
Definition: NSBot.qc:535
virtual float(void) GetRunSpeed
virtual void(void) WeaponThink
virtual void(void) RouteClear
virtual void(botstate_t) SetState
nonvirtual void ForceWeaponAttack(vector, float)
Definition: combat.qc:135
virtual void(string) ChatSayTeam
virtual float(void) GetWalkSpeed
virtual float GetBackSpeed(void)
Overridable: Returns the desired maximum backwardss movement speed.
Definition: NSBot.qc:66
virtual void(string) ChatSay
virtual void(void) PreFrame
virtual botstate_t(void) GetState
virtual void(void) WeaponAttack
nonvirtual string GetInfoKey(string)
Get the string value of an InfoKey.
Definition: NSBot.qc:548
virtual void(void) CheckRoute
virtual float GetForwardSpeed(void)
Overridable: Returns the desired maximum forward movement speed.
Definition: NSBot.qc:54
virtual void(void) SeeThink
virtual void(entity) SetEnemy
nonvirtual float GetInfoKeyFloat(string)
Floating point based version of GetInfoKey().
Definition: NSBot.qc:561
virtual float GetSideSpeed(void)
Overridable: Returns the desired maximum side movement speed.
Definition: NSBot.qc:60
virtual void(void) UseButton
virtual void(void) PostFrame
virtual botpersonality_t(void) GetPersonality
This entity class represents a moving/pathfinding object.
Definition: NSNavAI.h:50
virtual void RouteClear(void)
When called, will wipe any memory of an ongoing route.
Definition: NSNavAI.qc:458
virtual void CheckRoute(void)
Internal use only.
Definition: NSNavAI.qc:181
virtual void Pain(void)
Called whenever the entity receives damage.
Definition: NSSurfacePropEntity.qc:419
string target
Definition: defs.h:23
vector hsvToRGB(float h, float s, float v)
Converts a Hue-Saturation-Value pair to an RGB vector.
Definition: math.h:213