Synchronized SL penguin
This commit is contained in:
parent
94fe53f4bf
commit
347bd0ed63
|
@ -37,6 +37,17 @@ 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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue