Speech semaphore

From Valve Developer Community
Revision as of 17:15, 10 June 2006 by Ts2do (talk | contribs) (recategorize)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The speech semaphore restricts talkers' ability to talk.

By default, there are two semaphores: friendlies & foes (based on IsPlayerAlly). See GetSpeechSemaphore in ai_speech.h

If UseSemaphore returns true, only one friendly and one foe is allowed to talk at a time.

If UseSemaphore returns false (whether based entirely on code or on spawnflags), the talker can interrupt other talkers.

Note.png Note: Any interrupted talkers will continue to talk.