mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Allow changing all players' viewpoints in replays
This commit is contained in:
parent
4de79f13af
commit
3724d02e3b
2 changed files with 29 additions and 4 deletions
25
src/g_game.c
25
src/g_game.c
|
@ -1819,6 +1819,31 @@ boolean G_Responder(event_t *ev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gamestate == GS_LEVEL && ev->type == ev_keydown && multiplayer && demoplayback)
|
||||||
|
{
|
||||||
|
if (ev->data1 == gamecontrolbis[gc_viewpoint][0] || ev->data1 == gamecontrolbis[gc_viewpoint][1])
|
||||||
|
{
|
||||||
|
secondarydisplayplayer++;
|
||||||
|
G_ResetViews();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if (ev->data1 == gamecontrol3[gc_viewpoint][0] || ev->data1 == gamecontrol3[gc_viewpoint][1])
|
||||||
|
{
|
||||||
|
thirddisplayplayer++;
|
||||||
|
G_ResetViews();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if (ev->data1 == gamecontrol4[gc_viewpoint][0] || ev->data1 == gamecontrol4[gc_viewpoint][1])
|
||||||
|
{
|
||||||
|
fourthdisplayplayer++;
|
||||||
|
G_ResetViews();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// any other key pops up menu if in demos
|
// any other key pops up menu if in demos
|
||||||
if (gameaction == ga_nothing && !singledemo &&
|
if (gameaction == ga_nothing && !singledemo &&
|
||||||
((demoplayback && !modeattacking && !titledemo && !multiplayer) || gamestate == GS_TITLESCREEN))
|
((demoplayback && !modeattacking && !titledemo && !multiplayer) || gamestate == GS_TITLESCREEN))
|
||||||
|
|
|
@ -8816,7 +8816,7 @@ static void M_Setup1PControlsMenu(INT32 choice)
|
||||||
OP_AllControlsMenu[15].status = IT_CONTROL; // Chat
|
OP_AllControlsMenu[15].status = IT_CONTROL; // Chat
|
||||||
//OP_AllControlsMenu[16].status = IT_CONTROL; // Team-chat
|
//OP_AllControlsMenu[16].status = IT_CONTROL; // Team-chat
|
||||||
OP_AllControlsMenu[16].status = IT_CONTROL; // Rankings
|
OP_AllControlsMenu[16].status = IT_CONTROL; // Rankings
|
||||||
OP_AllControlsMenu[17].status = IT_CONTROL; // Viewpoint
|
//OP_AllControlsMenu[17].status = IT_CONTROL; // Viewpoint
|
||||||
// 18 is Reset Camera, 19 is Toggle Chasecam
|
// 18 is Reset Camera, 19 is Toggle Chasecam
|
||||||
OP_AllControlsMenu[20].status = IT_CONTROL; // Pause
|
OP_AllControlsMenu[20].status = IT_CONTROL; // Pause
|
||||||
OP_AllControlsMenu[21].status = IT_CONTROL; // Screenshot
|
OP_AllControlsMenu[21].status = IT_CONTROL; // Screenshot
|
||||||
|
@ -8848,7 +8848,7 @@ static void M_Setup2PControlsMenu(INT32 choice)
|
||||||
OP_AllControlsMenu[15].status = IT_GRAYEDOUT2; // Chat
|
OP_AllControlsMenu[15].status = IT_GRAYEDOUT2; // Chat
|
||||||
//OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Team-chat
|
//OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Team-chat
|
||||||
OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Rankings
|
OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Rankings
|
||||||
OP_AllControlsMenu[17].status = IT_GRAYEDOUT2; // Viewpoint
|
//OP_AllControlsMenu[17].status = IT_GRAYEDOUT2; // Viewpoint
|
||||||
// 18 is Reset Camera, 19 is Toggle Chasecam
|
// 18 is Reset Camera, 19 is Toggle Chasecam
|
||||||
OP_AllControlsMenu[20].status = IT_GRAYEDOUT2; // Pause
|
OP_AllControlsMenu[20].status = IT_GRAYEDOUT2; // Pause
|
||||||
OP_AllControlsMenu[21].status = IT_GRAYEDOUT2; // Screenshot
|
OP_AllControlsMenu[21].status = IT_GRAYEDOUT2; // Screenshot
|
||||||
|
@ -8880,7 +8880,7 @@ static void M_Setup3PControlsMenu(INT32 choice)
|
||||||
OP_AllControlsMenu[15].status = IT_GRAYEDOUT2; // Chat
|
OP_AllControlsMenu[15].status = IT_GRAYEDOUT2; // Chat
|
||||||
//OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Team-chat
|
//OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Team-chat
|
||||||
OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Rankings
|
OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Rankings
|
||||||
OP_AllControlsMenu[17].status = IT_GRAYEDOUT2; // Viewpoint
|
//OP_AllControlsMenu[17].status = IT_GRAYEDOUT2; // Viewpoint
|
||||||
// 18 is Reset Camera, 19 is Toggle Chasecam
|
// 18 is Reset Camera, 19 is Toggle Chasecam
|
||||||
OP_AllControlsMenu[20].status = IT_GRAYEDOUT2; // Pause
|
OP_AllControlsMenu[20].status = IT_GRAYEDOUT2; // Pause
|
||||||
OP_AllControlsMenu[21].status = IT_GRAYEDOUT2; // Screenshot
|
OP_AllControlsMenu[21].status = IT_GRAYEDOUT2; // Screenshot
|
||||||
|
@ -8912,7 +8912,7 @@ static void M_Setup4PControlsMenu(INT32 choice)
|
||||||
OP_AllControlsMenu[15].status = IT_GRAYEDOUT2; // Chat
|
OP_AllControlsMenu[15].status = IT_GRAYEDOUT2; // Chat
|
||||||
//OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Team-chat
|
//OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Team-chat
|
||||||
OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Rankings
|
OP_AllControlsMenu[16].status = IT_GRAYEDOUT2; // Rankings
|
||||||
OP_AllControlsMenu[17].status = IT_GRAYEDOUT2; // Viewpoint
|
//OP_AllControlsMenu[17].status = IT_GRAYEDOUT2; // Viewpoint
|
||||||
// 18 is Reset Camera, 19 is Toggle Chasecam
|
// 18 is Reset Camera, 19 is Toggle Chasecam
|
||||||
OP_AllControlsMenu[20].status = IT_GRAYEDOUT2; // Pause
|
OP_AllControlsMenu[20].status = IT_GRAYEDOUT2; // Pause
|
||||||
OP_AllControlsMenu[21].status = IT_GRAYEDOUT2; // Screenshot
|
OP_AllControlsMenu[21].status = IT_GRAYEDOUT2; // Screenshot
|
||||||
|
|
Loading…
Reference in a new issue