mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Freecam: use Y button to focus player
This commit is contained in:
parent
29feceda88
commit
dadb150b25
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue