mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Dumb stupid hack where NiGHTS faces you upon Nightserizing
Because I can't figure out how to tell which player angle is "forward" in an axis track.
This commit is contained in:
parent
01f1e7fc33
commit
294d583166
1 changed files with 5 additions and 0 deletions
|
@ -770,6 +770,11 @@ void P_NightserizePlayer(player_t *player, INT32 nighttime)
|
|||
player->texttimer = (UINT8)(110 - timeinmap);
|
||||
}
|
||||
|
||||
// make NiGHTS face you only upon Nightserizing (w/ attitude!)
|
||||
// calculate player->angle_pos ourselves because it won't be set the first time
|
||||
if (player->mo->target)
|
||||
player->mo->angle = R_PointToAngle2(player->mo->target->x, player->mo->target->y, player->mo->x, player->mo->y);
|
||||
|
||||
player->powers[pw_carry] = CR_NIGHTSMODE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue