cruiser.inc.c (740B)
1 // cruiser.inc.c 2 3 void bhv_rr_cruiser_wing_init(void) { 4 o->oRRCruiserWingUnkF4 = o->oFaceAngleYaw; 5 o->oRRCruiserWingUnkF8 = o->oFaceAnglePitch; 6 } 7 8 void bhv_rr_cruiser_wing_loop(void) { 9 if (o->oBhvParams2ndByte == 0) { 10 o->oFaceAngleYaw = o->oRRCruiserWingUnkF4 + sins(o->oTimer * 0x400) * 8192.0f; 11 o->oFaceAnglePitch = o->oRRCruiserWingUnkF8 + coss(o->oTimer * 0x400) * 2048.0f; 12 } else { 13 o->oFaceAngleYaw = o->oRRCruiserWingUnkF4 - sins(o->oTimer * 0x400) * 8192.0f; 14 o->oFaceAnglePitch = o->oRRCruiserWingUnkF8 + coss(o->oTimer * 0x400) * 2048.0f; 15 } 16 #ifndef VERSION_JP 17 if (o->oTimer == 64) { 18 cur_obj_play_sound_2(SOUND_GENERAL_BOAT_ROCK); 19 o->oTimer = 0; 20 } 21 #endif 22 }