mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-26 14:11:22 +00:00
Added new SPECTATOR_ZCAM spec mode.
This commit is contained in:
parent
da40e10a15
commit
2950d7d590
3 changed files with 21 additions and 9 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.51 2002/02/10 18:38:42 jbravo
|
||||
// Added new SPECTATOR_ZCAM spec mode.
|
||||
//
|
||||
// Revision 1.50 2002/02/10 17:20:45 jbravo
|
||||
// Attempting to fix the camera freeze in the begining of the game
|
||||
//
|
||||
|
@ -515,17 +518,19 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) {
|
|||
}
|
||||
|
||||
#ifdef __ZCAM__
|
||||
client->ps.commandTime = ucmd->serverTime;
|
||||
client->oldbuttons = client->buttons;
|
||||
client->buttons = ucmd->buttons;
|
||||
// client->ps.commandTime = ucmd->serverTime;
|
||||
// client->oldbuttons = client->buttons;
|
||||
// client->buttons = ucmd->buttons;
|
||||
|
||||
if (client->sess.spectatorState != SPECTATOR_FOLLOW) {
|
||||
if (client->sess.spectatorState == SPECTATOR_ZCAM) {
|
||||
if (g_gametype.integer != GT_TEAMPLAY) {
|
||||
camera_think(ent);
|
||||
return;
|
||||
} else if (level.team_round_countdown == 0) {
|
||||
camera_think(ent);
|
||||
return;
|
||||
} else {
|
||||
if (level.team_game_going == 1) {
|
||||
camera_think(ent);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.46 2002/02/10 18:38:42 jbravo
|
||||
// Added new SPECTATOR_ZCAM spec mode.
|
||||
//
|
||||
// Revision 1.45 2002/02/10 02:49:28 niceass
|
||||
// re-added zcam #define
|
||||
//
|
||||
|
@ -267,6 +270,7 @@ typedef enum {
|
|||
SPECTATOR_FREE,
|
||||
SPECTATOR_FOLLOW,
|
||||
#ifdef __ZCAM__
|
||||
SPECTATOR_ZCAM,
|
||||
SPECTATOR_CAMERA_FLIC,
|
||||
SPECTATOR_CAMERA_SWING,
|
||||
#endif
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.6 2002/02/10 18:38:42 jbravo
|
||||
// Added new SPECTATOR_ZCAM spec mode.
|
||||
//
|
||||
// Revision 1.5 2002/02/10 16:26:55 jbravo
|
||||
// Attempting to intergrate zcam better into rq3 and a fix for lights.wav
|
||||
//
|
||||
|
@ -1166,7 +1169,7 @@ void camera_disconnect (gentity_t *ent)
|
|||
|
||||
void camera_think (gentity_t *ent)
|
||||
{
|
||||
if ( (ent->client->buttons & BUTTON_ATTACK )
|
||||
/* if ( (ent->client->buttons & BUTTON_ATTACK )
|
||||
&& ! (ent->client->oldbuttons & BUTTON_ATTACK ) )
|
||||
{
|
||||
CameraSwingCycle (ent, 1);
|
||||
|
@ -1183,7 +1186,7 @@ void camera_think (gentity_t *ent)
|
|||
{
|
||||
CameraFlicBegin (ent);
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
if (NumPlayers() == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue