| version 1.16 | | version 1.17 |
|---|
| | |
| * Game loop for Inferno | | * Game loop for Inferno |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.17 1999/11/21 14:05:00 sekmu |
| | | * observer mode |
| | | * |
| * Revision 1.16 1999/11/21 13:00:08 donut | | * Revision 1.16 1999/11/21 13:00:08 donut |
| * Changed screen_mode format. Now directly encodes res into a 32bit int, rather than using arbitrary values. | | * Changed screen_mode format. Now directly encodes res into a 32bit int, rather than using arbitrary values. |
| * | | * |
| | |
| #include "vlcnfire.h" | | #include "vlcnfire.h" |
| //end this section addition | | //end this section addition |
| | | |
| | | //added on 11/20/99 by Victor Rachels to add observermode |
| | | #include "observer.h" |
| | | int I_am_observer = 0; |
| | | //end this section addition - VR |
| | | |
| //added 8/23/99 by Matt Mueller for hot key res/fullscreen changing, and menu access | | //added 8/23/99 by Matt Mueller for hot key res/fullscreen changing, and menu access |
| extern void change_res(); | | extern void change_res(); |
| extern void d1x_options_menu(); | | extern void d1x_options_menu(); |
| | |
| Players[Player_num].shields = MAX_SHIELDS; | | Players[Player_num].shields = MAX_SHIELDS; |
| //end this section addition | | //end this section addition |
| | | |
| | | //added on 11/9/98 by Victor Rachels to add observer mode |
| | | #ifdef NETWORK |
| | | if(I_am_observer) |
| | | { |
| | | Physics_cheat_flag = 0xBADA55; |
| | | multi_send_observerghost(); |
| | | } |
| | | #endif |
| | | //end this section addition - VR |
| | | |
| //added on 2/2/99 by Victor Rachels to add ban read/reset | | //added on 2/2/99 by Victor Rachels to add ban read/reset |
| #ifdef NETWORK | | #ifdef NETWORK |
| readbans(); | | readbans(); |
| | |
| } | | } |
| | | |
| //Game settings reset | | //Game settings reset |
| | | //added on 11/20/99 by Victor Rachels for observermode |
| | | I_am_observer = 0; |
| | | //end this section addition - VR |
| //added on 4/16/99 by Victor Rachels to add alt vulcanfire | | //added on 4/16/99 by Victor Rachels to add alt vulcanfire |
| #ifdef NETWORK | | #ifdef NETWORK |
| vulcan_init(); | | vulcan_init(); |
| | |
| memset( &Controls, 0, sizeof(control_info) ); | | memset( &Controls, 0, sizeof(control_info) ); |
| else | | else |
| controls_read_all(); //NOTE LINK TO ABOVE!!! | | controls_read_all(); //NOTE LINK TO ABOVE!!! |
| | | |
| | | //added on 11/20/99 by Victor Rachels to add observermode |
| | | if(I_am_observer) |
| | | { |
| | | Controls.fire_flare_down_count = 0; |
| | | Controls.fire_primary_state = 0; |
| | | Controls.fire_primary_down_count = 0; |
| | | Controls.fire_secondary_state = 0; |
| | | Controls.fire_secondary_down_count = 0; |
| | | Controls.drop_bomb_down_count = 0; |
| | | } |
| | | //end this section addition - VR |
| | | |
| check_rear_view(); | | check_rear_view(); |
| | | |