Synchronized SL penguin
This commit is contained in:
parent
74505c75fc
commit
4c8635f64c
|
@ -36,7 +36,18 @@ static s32 sl_walking_penguin_turn(void) {
|
||||||
void bhv_sl_walking_penguin_loop(void) {
|
void bhv_sl_walking_penguin_loop(void) {
|
||||||
f32 adjustedXPos, adjustedZPos;
|
f32 adjustedXPos, adjustedZPos;
|
||||||
f32 perpendicularOffset = 100.0f;
|
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;
|
o->oAngleVelYaw = 0;
|
||||||
cur_obj_update_floor_and_walls();
|
cur_obj_update_floor_and_walls();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue