17#define COST_INFINITE 99999
25#define BOTROUTE_DESTINATION -1
27#define BOTROUTE_END -2
32 BOT_PERSONALITY_NORMAL,
33 BOT_PERSONALITY_AGRESSIVE,
34 BOT_PERSONALITY_DEFENSIVE
69 virtual void Pain(entity, entity,
int, vector, vector,
int);
75 virtual void RunAI(
void);
107 float m_flNodeGiveup;
108 entity m_eDestination;
113 float m_flAttackTime;
127 weapontype_t m_wtWeaponType;
129 float m_flForceWeaponAttack;
130 vector m_vecForceWeaponAttackPos;
143 vector x = hsvToRGB(random() * 360, 100, 100);
144 float top = x[2] + (x[1] << 8) + (x[0] << 16);
145 x = hsvToRGB(random() * 360, 100, 100);
146 float bottom = x[2] + (x[1] << 8) + (x[0] << 16);
147 forceinfokey(target,
"topcolor", sprintf(
"0x%x", top));
148 forceinfokey(target,
"bottomcolor", sprintf(
"0x%x", bottom));
This entity class represents an object with choreographed/free-form movement.
Definition: NSNavAI.h:50
A virtual multiplayer opponent.
Definition: NSBot.h:53
virtual void CheckRoute(void)
Internal use only.
Definition: NSBot.qc:188
virtual void AddedItemCallback(NSItem)
Definition: NSBot.qc:518
virtual void WeaponAttack(void)
Definition: combat.qc:77
nonvirtual void SetInfoKeyFloat(string, float)
Server: Floating point based version of SetInfoKey().
Definition: NSBot.qc:543
void NSBot(void)
Definition: NSBot.qc:576
nonvirtual void SetInfoKey(string, string)
Server: Set the value of an InfoKey.
Definition: NSBot.qc:537
virtual void CreateObjective(void)
Definition: NSBot.qc:283
virtual void ChatSayTeam(string)
Definition: chat.qc:24
virtual void Pain(entity, entity, int, vector, vector, int)
Called whenever the entity receives damage.
Definition: combat.qc:18
nonvirtual void ForceWeaponAttack(vector, float)
Definition: combat.qc:133
virtual void BrainThink(int, int)
Definition: NSBot.qc:79
virtual void BotPostFrame(void)
Definition: NSBot.qc:513
virtual float GetBackSpeed(void)
Overridable: Returns the desired maximum backwardss movement speed.
Definition: NSBot.qc:66
virtual void RunAI(void)
Definition: NSBot.qc:289
virtual void SetEnemy(entity)
Definition: combat.qc:47
virtual void ChatSay(string)
Definition: chat.qc:18
nonvirtual string GetInfoKey(string)
Get the string value of an InfoKey.
Definition: NSBot.qc:550
virtual float GetForwardSpeed(void)
Overridable: Returns the desired maximum forward movement speed.
Definition: NSBot.qc:54
virtual void SetName(string)
Definition: NSBot.qc:528
virtual void SetState(botstate_t)
Definition: NSBot.qc:30
virtual void BotPreFrame(void)
Definition: NSBot.qc:508
nonvirtual float GetInfoKeyFloat(string)
Floating point based version of GetInfoKey().
Definition: NSBot.qc:563
virtual void RouteClear(void)
When called, will wipe any memory of an ongoing route.
Definition: NSBot.qc:72
virtual float GetRunSpeed(void)
Definition: NSBot.qc:48
virtual void SeeThink(void)
Definition: NSBot.qc:123
virtual float GetSideSpeed(void)
Overridable: Returns the desired maximum side movement speed.
Definition: NSBot.qc:60
virtual botpersonality_t GetPersonality(void)
Definition: NSBot.qc:36
virtual float GetWalkSpeed(void)
Definition: NSBot.qc:42
virtual botstate_t GetState(void)
Definition: NSBot.qc:24
virtual void WeaponThink(void)
Definition: combat.qc:59
virtual void UseButton(void)
Definition: NSBot.qc:94
This entity class represents inventory items, weapons.
Definition: NSItem.h:67
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:31
void BotLib_Init(void)
Definition: NSBot.qc:628
void Bot_RandomColormap(NSBot target)
Applies random custom colors to the given bot entity.
Definition: NSBot.h:141
botstate_t
Bot State.
Definition: NSBot.h:39