mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Make it so player 1 can control the credits camera
This commit is contained in:
parent
7ba65e7799
commit
97633044c4
1 changed files with 2 additions and 5 deletions
|
@ -7382,15 +7382,12 @@ void reset_pan_distance(UNUSED struct Camera *c) {
|
|||
* Easter egg: the player 2 controller can move the camera's focus in the ending and credits.
|
||||
*/
|
||||
void player2_rotate_cam(struct Camera *c, s16 minPitch, s16 maxPitch, s16 minYaw, s16 maxYaw) {
|
||||
// disable for co-op
|
||||
return;
|
||||
|
||||
f32 distCamToFocus;
|
||||
s16 pitch, yaw, pitchCap;
|
||||
|
||||
// Change the camera rotation to match the 2nd player's stick
|
||||
approach_s16_asymptotic_bool(&sCreditsPlayer2Yaw, -(s16)(gPlayer2Controller->stickX * 250.f), 4);
|
||||
approach_s16_asymptotic_bool(&sCreditsPlayer2Pitch, -(s16)(gPlayer2Controller->stickY * 265.f), 4);
|
||||
approach_s16_asymptotic_bool(&sCreditsPlayer2Yaw, -(s16)(gPlayer1Controller->stickX * 250.f), 4);
|
||||
approach_s16_asymptotic_bool(&sCreditsPlayer2Pitch, -(s16)(gPlayer1Controller->stickY * 265.f), 4);
|
||||
vec3f_get_dist_and_angle(c->pos, c->focus, &distCamToFocus, &pitch, &yaw);
|
||||
|
||||
pitchCap = 0x3800 - pitch; if (pitchCap < 0) {
|
||||
|
|
Loading…
Reference in a new issue