mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
Add gc_viewpoint from Kart
This commit is contained in:
parent
2a87093ece
commit
31f23fda8d
4 changed files with 5 additions and 1 deletions
|
@ -1677,7 +1677,8 @@ static INT32 camtoggledelay, camtoggledelay2 = 0;
|
||||||
boolean G_Responder(event_t *ev)
|
boolean G_Responder(event_t *ev)
|
||||||
{
|
{
|
||||||
// allow spy mode changes even during the demo
|
// allow spy mode changes even during the demo
|
||||||
if (gamestate == GS_LEVEL && ev->type == ev_keydown && ev->data1 == KEY_F12)
|
if (gamestate == GS_LEVEL && ev->type == ev_keydown
|
||||||
|
&& (ev->data1 == gamecontrol[gc_viewpoint][0] || ev->data1 == gamecontrol[gc_viewpoint][1]))
|
||||||
{
|
{
|
||||||
if (splitscreen || !netgame)
|
if (splitscreen || !netgame)
|
||||||
displayplayer = consoleplayer;
|
displayplayer = consoleplayer;
|
||||||
|
|
|
@ -1192,6 +1192,7 @@ void G_Controldefault(void)
|
||||||
gamecontrol[gc_pause ][0] = 'p';
|
gamecontrol[gc_pause ][0] = 'p';
|
||||||
gamecontrol[gc_screenshot ][0] = KEY_F8;
|
gamecontrol[gc_screenshot ][0] = KEY_F8;
|
||||||
gamecontrol[gc_recordgif ][0] = KEY_F9;
|
gamecontrol[gc_recordgif ][0] = KEY_F9;
|
||||||
|
gamecontrol[gc_viewpoint ][0] = KEY_F12;
|
||||||
gamecontrol[gc_systemmenu ][0] = KEY_JOY1+7; // Start
|
gamecontrol[gc_systemmenu ][0] = KEY_JOY1+7; // Start
|
||||||
#ifdef WMINPUT
|
#ifdef WMINPUT
|
||||||
gamecontrol[gc_forward ][0] = KEY_JOY1+02; //UP
|
gamecontrol[gc_forward ][0] = KEY_JOY1+02; //UP
|
||||||
|
|
|
@ -121,6 +121,7 @@ typedef enum
|
||||||
gc_systemmenu,
|
gc_systemmenu,
|
||||||
gc_screenshot,
|
gc_screenshot,
|
||||||
gc_recordgif,
|
gc_recordgif,
|
||||||
|
gc_viewpoint,
|
||||||
gc_custom1, // Lua scriptable
|
gc_custom1, // Lua scriptable
|
||||||
gc_custom2, // Lua scriptable
|
gc_custom2, // Lua scriptable
|
||||||
gc_custom3, // Lua scriptable
|
gc_custom3, // Lua scriptable
|
||||||
|
|
|
@ -1076,6 +1076,7 @@ static menuitem_t OP_MiscControlsMenu[] =
|
||||||
{IT_CALL | IT_STRING2, NULL, "Screenshot", M_ChangeControl, gc_screenshot },
|
{IT_CALL | IT_STRING2, NULL, "Screenshot", M_ChangeControl, gc_screenshot },
|
||||||
{IT_CALL | IT_STRING2, NULL, "Toggle GIF Recording", M_ChangeControl, gc_recordgif },
|
{IT_CALL | IT_STRING2, NULL, "Toggle GIF Recording", M_ChangeControl, gc_recordgif },
|
||||||
{IT_CALL | IT_STRING2, NULL, "Open/Close Menu (ESC)", M_ChangeControl, gc_systemmenu },
|
{IT_CALL | IT_STRING2, NULL, "Open/Close Menu (ESC)", M_ChangeControl, gc_systemmenu },
|
||||||
|
{IT_CALL | IT_STRING2, NULL, "Change Viewpoint", M_ChangeControl, gc_viewpoint },
|
||||||
{IT_CALL | IT_STRING2, NULL, "Console", M_ChangeControl, gc_console },
|
{IT_CALL | IT_STRING2, NULL, "Console", M_ChangeControl, gc_console },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue