21#define PLAYER_DETECT_RADIUS 512
87 virtual void Speak(
string);
98 virtual void RunAI(
void);
105 virtual void SpawnKey(
string,
string);
107 virtual void Save(
float);
108 virtual void Restore(
string,
string);
109 virtual void Touch(entity);
163 float m_flNextSentence;
166 entity m_eFollowingChain;
167 vector m_vecLastUserPos;
168 float m_flChangePath;
170 float m_flFollowSpeedChanged;
171 float m_flFollowSpeed;
174 float m_flFollowDistance;
175 float m_flMaxFollowDistance;
176 bool m_bFollowGrouping;
181 string m_talkAllyShot;
185 string m_talkHearing;
186 string m_talkSmelling;
188 string m_talkSurvived;
189 string m_talkWounded;
193 string m_talkPlayerAsk;
194 string m_talkPlayerGreet;
195 string m_talkPlayerIdle;
196 string m_talkPlayerWounded1;
197 string m_talkPlayerWounded2;
198 string m_talkPlayerWounded3;
199 string m_talkUnfollow;
201 string m_talkStopFollow;
202 string m_talkDenyFollow;
204 virtual void _Alerted(
void);
209 float m_flSentenceTime;
211 int m_iSentenceCount;
213 float m_sndVoiceOffs;
219void NSTalkMonster_ParseSentence(
void);
220void NSTalkMonster_ReadEntity(
bool);
This entity class represents an object with choreographed/free-form movement.
Definition: NSNavAI.h:50
NSSquadMonster based NPCs are able to communicate strategies together.
Definition: NSSquadMonster.h:24
This class represents NSMonsters that talk.
Definition: NSTalkMonster.h:78
virtual void RunAI(void)
Internal use only.
Definition: NSTalkMonster.qc:716
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: NSTalkMonster.qc:99
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: NSTalkMonster.qc:785
virtual void OnPlayerUse(void)
Definition: NSTalkMonster.qc:757
void NSTalkMonster(void)
Definition: NSTalkMonster.qc:18
virtual void Sentence(string)
When called, will play a Sentence over the network.
Definition: NSTalkMonster.qc:281
virtual float predraw(void)
virtual void TalkPlayerWounded1(void)
Called when they tell the player that they're wounded.
Definition: NSTalkMonster.qc:384
virtual void HandleAnimEvent(float, int, string)
Callback for any model event that gets triggered while playing a framegroup.
Definition: NSTalkMonster.qc:68
virtual float SendEntity(entity, float)
Called by the engine whenever we need to send a client an update about this entity.
Definition: NSTalkMonster.qc:879
virtual void Touch(entity)
Called whenever we're touching another entity.
Definition: NSTalkMonster.qc:544
virtual void Speak(string)
When called, will play a single sample (.wav/.ogg) over the network.
Definition: NSTalkMonster.qc:302
virtual void SentenceSample(string)
Plays a single sample from a sentence.
virtual void StartleAllies(void)
When called, will startle all allies in a nearby area.
Definition: NSTalkMonster.qc:268
virtual void TalkPlayerWounded2(void)
Called when they tell the player that severely wounded.
Definition: NSTalkMonster.qc:414
virtual void SeenPlayer(NSActor)
Called when they are greeting the player.
Definition: NSTalkMonster.qc:317
virtual void ProcessWordQue(void)
Called once per frame to process the word queue.
virtual void FollowPlayer(void)
Internal use only.
Definition: NSTalkMonster.qc:564
virtual void TalkStopFollow(void)
Called when they tell the player that they'll stop following.
Definition: NSTalkMonster.qc:516
virtual void ReceiveEntity(float, float)
Client: Handles network updates from the server for the associated entity.
virtual void Restore(string, string)
Similar to NSIO::SpawnKey but for save-game fields.
Definition: NSTalkMonster.qc:142
virtual void TalkDenyFollow(void)
Called when they tell the player they won't follow you.
Definition: NSTalkMonster.qc:530
virtual void TalkUnfollow(void)
Called when they tell the player that they'll give up following.
Definition: NSTalkMonster.qc:488
virtual void WarnAllies(void)
When called, will alert all allies in a nearby area.
Definition: NSTalkMonster.qc:256
virtual void FollowChain(void)
Internal use only.
Definition: NSTalkMonster.qc:701
virtual void TalkFollow(void)
Called when they tell the player that they'll start following.
Definition: NSTalkMonster.qc:502
virtual void TalkPanic(void)
Called when they're in a state of panic.
Definition: NSTalkMonster.qc:473
virtual void SeenFriend(NSActor)
Called when they are chit-chatting with the player.
Definition: NSTalkMonster.qc:339
virtual void PanicFrame(void)
Run every frame if we're in a state of panic.
Definition: NSTalkMonster.qc:662
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: NSTalkMonster.qc:742
virtual void TalkPlayerWounded3(void)
Called when they tell the player that they're near death.
Definition: NSTalkMonster.qc:445
virtual void TalkPlayerAsk(void)
Called when they want to ask the player a question.
Definition: NSTalkMonster.qc:356
typedef enumflags
Defines the valid alignment flags for text fields.
Definition: font.h:37
A sound sample of a sentences.txt word sequence.
Definition: sound.h:185