version 1.7 | | version 1.8 |
---|
| | |
#include "strutil.h" | | #include "strutil.h" |
//end added - OE | | //end added - OE |
| | |
| | //added on 11/20/99 by Victor Rachels to add observer mode |
| | #include "observer.h" |
| | //end this section addition - VR |
| | |
| | |
// | | // |
// Local macros and prototypes | | // Local macros and prototypes |
// | | // |
| | |
if (!multi_goto_secret) | | if (!multi_goto_secret) |
multi_goto_secret = 1; | | multi_goto_secret = 1; |
} | | } |
| | else if (buf[2] == 9) |
| | { |
| | hud_message(MSGC_MULTI_INFO, "%s is in observer mode.",Players[(int)buf[1]].callsign); |
| | } |
create_player_appearance_effect(&Objects[objnum]); | | create_player_appearance_effect(&Objects[objnum]); |
multi_make_player_ghost(buf[1]); | | multi_make_player_ghost(buf[1]); |
} | | } |
| | |
} | | } |
} | | } |
| | |
| | //added on 11/9/98 by Victor Rachels to add observer mode |
| | void multi_send_observerghost() |
| | { |
| | multibuf[0] = (char)MULTI_ENDLEVEL_START; |
| | multibuf[1] = Player_num; |
| | multibuf[2] = '9'; |
| | |
| | multi_send_data(multibuf, 3, 1); |
| | } |
| | //end this section addition - VR |
| | |
void | | void |
multi_send_powerup_count(char type, int *pow_count) | | multi_send_powerup_count(char type, int *pow_count) |
{ | | { |
| | |
void | | void |
multi_send_reappear() | | multi_send_reappear() |
{ | | { |
| | //added on 11/20/99 by Victor Rachels to add observer mode |
| | if(I_am_observer) |
| | return; |
| | //end this section addition - VR |
| | |
multibuf[0] = (char)MULTI_REAPPEAR; | | multibuf[0] = (char)MULTI_REAPPEAR; |
*(short *)(multibuf+1) = Players[Player_num].objnum; | | *(short *)(multibuf+1) = Players[Player_num].objnum; |
| | |
| | |
{ | | { |
// When we open a door make sure everyone else opens that door | | // When we open a door make sure everyone else opens that door |
| | |
| | //added on 11/20/99 by Victor Rachels to add observer mode |
| | if(I_am_observer) |
| | return; |
| | //end this section addition - VR |
| | |
multibuf[0] = MULTI_DOOR_OPEN; | | multibuf[0] = MULTI_DOOR_OPEN; |
#ifdef SHAREWARE | | #ifdef SHAREWARE |
*(int *)(multibuf+1) = segnum; | | *(int *)(multibuf+1) = segnum; |
| | |
multi_send_play_sound(int sound_num, fix volume) | | multi_send_play_sound(int sound_num, fix volume) |
{ | | { |
int count = 0; | | int count = 0; |
| | |
| | //added on 11/20/99 by Victor Rachels to add observer mode |
| | if(I_am_observer) |
| | return; |
| | //end this section addition - VR |
| | |
multibuf[count] = MULTI_PLAY_SOUND; count += 1; | | multibuf[count] = MULTI_PLAY_SOUND; count += 1; |
multibuf[count] = Player_num; count += 1; | | multibuf[count] = Player_num; count += 1; |
#ifdef SHAREWARE | | #ifdef SHAREWARE |
| | |
void | | void |
multi_send_trigger(int triggernum) | | multi_send_trigger(int triggernum) |
{ | | { |
// Send an even to trigger something in the mine | | // Send an event to trigger something in the mine |
| | |
int count = 0; | | int count = 0; |
| | |
| | //added on 11/20/99 by Victor Rachels to add observer mode |
| | if(I_am_observer) |
| | return; |
| | //end this section addition - VR |
| | |
multibuf[count] = MULTI_TRIGGER; count += 1; | | multibuf[count] = MULTI_TRIGGER; count += 1; |
multibuf[count] = Player_num; count += 1; | | multibuf[count] = Player_num; count += 1; |
multibuf[count] = (ubyte)triggernum; count += 1; | | multibuf[count] = (ubyte)triggernum; count += 1; |