Skip to content

Commit

Permalink
Fix talkmonster save-restore: add Decline sentence and Speak As
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Aug 27, 2023
1 parent d92cf47 commit ec8f5ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dlls/talkmonster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ TYPEDESCRIPTION CTalkMonster::m_SaveData[] =
DEFINE_FIELD( CTalkMonster, m_useTime, FIELD_TIME ),
DEFINE_FIELD( CTalkMonster, m_iszUse, FIELD_STRING ),
DEFINE_FIELD( CTalkMonster, m_iszUnUse, FIELD_STRING ),
DEFINE_FIELD( CTalkMonster, m_iszDecline, FIELD_STRING ), //LRC
DEFINE_FIELD( CTalkMonster, m_iszSpeakAs, FIELD_STRING ), //LRC
DEFINE_FIELD( CTalkMonster, m_flLastSaidSmelled, FIELD_TIME ),
DEFINE_FIELD( CTalkMonster, m_flStopTalkTime, FIELD_TIME ),
DEFINE_FIELD( CTalkMonster, m_hTalkTarget, FIELD_EHANDLE ),
Expand Down
4 changes: 2 additions & 2 deletions dlls/talkmonster.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ class CTalkMonster : public CBaseMonster
float m_useTime; // Don't allow +USE until this time
string_t m_iszUse; // Custom +USE sentence group (follow)
string_t m_iszUnUse; // Custom +USE sentence group (stop following)
int m_iszDecline; // Custom +USE sentence group (refuse to follow) LRC
int m_iszSpeakAs; // Change the prefix for all this monster's speeches LRC
string_t m_iszDecline; // Custom +USE sentence group (refuse to follow) LRC
string_t m_iszSpeakAs; // Change the prefix for all this monster's speeches LRC

float m_flLastSaidSmelled;// last time we talked about something that stinks
float m_flStopTalkTime;// when in the future that I'll be done saying this sentence.
Expand Down

0 comments on commit ec8f5ac

Please sign in to comment.