Freecam: use Y button to focus player

This commit is contained in:
James R 2023-10-09 18:50:05 -07:00
parent 29feceda88
commit dadb150b25
2 changed files with 3 additions and 3 deletions

View file

@ -389,7 +389,7 @@ class TiccmdBuilder
map(gc_item, BT_ATTACK); // fire
map(gc_lookback, BT_LOOKBACK); // rear view
map(gc_respawn, BT_RESPAWN | BT_EBRAKEMASK); // respawn
map(gc_respawn, BT_RESPAWN | (freecam() ? 0 : BT_EBRAKEMASK)); // respawn
map(gc_vote, BT_VOTE); // mp general function button
// lua buttons a thru c

View file

@ -2934,8 +2934,8 @@ void P_DemoCameraMovement(camera_t *cam, UINT8 num)
cam->button_a_held--;
}
// if you hold item, you will lock on to displayplayer. (The last player you were ""f12-ing"")
if (cam->freecam && cmd->buttons & BT_ATTACK)
// if you hold Y, you will lock on to displayplayer. (The last player you were ""f12-ing"")
if (cam->freecam && cmd->buttons & BT_RESPAWN)
{
lastp = &players[displayplayers[0]]; // Fun fact, I was trying displayplayers[0]->mo as if it was Lua like an absolute idiot.
cam->angle = R_PointToAngle2(cam->x, cam->y, lastp->mo->x, lastp->mo->y);