Synchronized SL penguin

This commit is contained in:
MysterD 2020-10-05 23:08:24 -07:00
parent 94fe53f4bf
commit 347bd0ed63
1 changed files with 12 additions and 1 deletions

View File

@ -36,7 +36,18 @@ static s32 sl_walking_penguin_turn(void) {
void bhv_sl_walking_penguin_loop(void) {
f32 adjustedXPos, adjustedZPos;
f32 perpendicularOffset = 100.0f;
if (!network_sync_object_initialized(o)) {
network_init_object(o, 4000.0f);
network_init_object_field(o, &o->oTimer);
network_init_object_field(o, &o->oAction);
network_init_object_field(o, &o->oPrevAction);
network_init_object_field(o, &o->oSLWalkingPenguinCurStep);
network_init_object_field(o, &o->oSLWalkingPenguinCurStepTimer);
network_init_object_field(o, &o->oSLWalkingPenguinWindCollisionXPos);
network_init_object_field(o, &o->oSLWalkingPenguinWindCollisionZPos);
}
o->oAngleVelYaw = 0;
cur_obj_update_floor_and_walls();