public override void OnCombatantChange()
        {
            SpeechTimer st = new SpeechTimer(this);

            DoSpeech("Drop Anchor", new int[] { 0x6A }, MessageType.Regular, 0x3B2);
            st.Start();
        }
Example #2
0
        private void Speak()
        {
            if (m_SpeechStartDelay)
            {
                // First run timer then talk
                m_Speaking = true;

                if (m_Timer != null)
                {
                    m_Timer.Stop();
                    m_Timer = null;
                }

                m_NextLine = 0;
                m_Timer    = new SpeechTimer(this, m_SpeechInterval);
                m_Timer.Start();
            }
            else
            {
                // Start talking right away
                Say((string)m_SelectedEntry.Speech[0]);
                m_Speaking = true;

                if (m_SelectedEntry.Speech.Count > 1)
                {
                    if (m_Timer != null)
                    {
                        m_Timer.Stop();
                        m_Timer = null;
                    }

                    m_NextLine = 1;
                    m_Timer    = new SpeechTimer(this, m_SpeechInterval);
                    m_Timer.Start();
                }
                else
                {
                    m_SelectedEntry = null;
                    m_Speaking      = false;
                }
            }
        }
        public override void OnThink()
        {
            SpeechTimer st = new SpeechTimer(this);

            switch (Utility.Random(7))
            {
            case  0:
                DoSpeech("Raise Anchor", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;

            case  1:
                DoSpeech("Backwards", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;

            case  2:
                DoSpeech("Forward", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;

            case  3:
                DoSpeech("Right", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;

            case  4:
                DoSpeech("Left", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;

            case  5:
                DoSpeech("Turn Right", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;

            case  6:
                DoSpeech("Turn Left", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
                st.Start();
                break;
            }
        }
Example #4
0
		private void Speak()
		{
			Say( (string) m_SelectedEntry.Speech[ 0 ] );
			m_Speaking = true;

			if ( m_SelectedEntry.Speech.Count > 1 )
			{
				if ( m_Timer != null )
				{
					m_Timer.Stop();
					m_Timer = null;
				}

				m_NextLine = 1;
				m_Timer = new SpeechTimer( this, m_SpeechInterval );
				m_Timer.Start();
			}
			else
			{
				m_SelectedEntry = null;
				m_Speaking = false;
			}
		}
 public override void OnThink()
 {
     SpeechTimer st = new SpeechTimer(this);
     switch (Utility.Random( 7 ) )
     {
         case  0:
             DoSpeech("Raise Anchor", new int[] {0x6B}, MessageType.Regular, 0x3B2);
             st.Start();
             break;
         case  1:
             DoSpeech("Backwards", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
             st.Start();
             break;
         case  2:
             DoSpeech("Forward", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
             st.Start();
             break;
         case  3:
             DoSpeech("Right", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
             st.Start();
             break;
         case  4:
             DoSpeech("Left", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
             st.Start();
             break;
         case  5:
             DoSpeech("Turn Right", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
             st.Start();
             break;
         case  6:
             DoSpeech("Turn Left", new int[] { 0x6B }, MessageType.Regular, 0x3B2);
             st.Start();
             break;
     }
 }
 public override void OnCombatantChange()
 {
     SpeechTimer st = new SpeechTimer(this);
     DoSpeech("Drop Anchor", new int[] { 0x6A }, MessageType.Regular, 0x3B2);
     st.Start();
 }