| version 1.1 | | version 1.2 |
|---|
| | |
| * Code for controlling player movement | | * Code for controlling player movement |
| * | | * |
| * $Log$ | | * $Log$ |
| * Revision 1.1 1999/06/14 22:05:52 donut | | * Revision 1.2 1999/11/21 14:05:00 sekmu |
| * Initial revision | | * observer mode |
| | | * |
| | | * Revision 1.1.1.1 1999/06/14 22:05:52 donut |
| | | * Import of d1x 1.37 source. |
| * | | * |
| * Revision 2.0 1995/02/27 11:27:11 john | | * Revision 2.0 1995/02/27 11:27:11 john |
| * New version 2.0, which has no anonymous unions, builds with | | * New version 2.0, which has no anonymous unions, builds with |
| | |
| #include "mouse.h" | | #include "mouse.h" |
| #include "kconfig.h" | | #include "kconfig.h" |
| | | |
| | | //added on 11/20/99 by Victor Rachels for observer mode |
| | | #include "observer.h" |
| | | //end this section addition - VR |
| | | |
| //look at keyboard, mouse, joystick, CyberMan, whatever, and set | | //look at keyboard, mouse, joystick, CyberMan, whatever, and set |
| //physics vars rotvel, velocity | | //physics vars rotvel, velocity |
| | | |
| | |
| return; | | return; |
| } | | } |
| | | |
| if ((obj->type!=OBJ_PLAYER) || (obj->id!=Player_num)) return; //references to player_ship require that this obj be the player | | //added/edited on 11/20/99 by Victor Rachels to add observer mode |
| | | // if ((obj->type!=OBJ_PLAYER) || (obj->id!=Player_num)) return; //references to player_ship require that this obj be the player |
| | | if(obj->id!=Player_num || (obj->type==OBJ_GHOST && !I_am_observer)) return; |
| | | //end this section edit - VR |
| | | |
| // Couldn't the "50" in the next three lines be changed to "64" with no ill effect? | | // Couldn't the "50" in the next three lines be changed to "64" with no ill effect? |
| obj->mtype.phys_info.rotthrust.x = Controls.pitch_time; | | obj->mtype.phys_info.rotthrust.x = Controls.pitch_time; |