Synchronized TTC 2d rotator

This commit is contained in:
MysterD 2020-10-11 14:38:07 -07:00
parent e1ca3b963d
commit cbeea0472c
1 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,15 @@ void bhv_ttc_2d_rotator_init(void) {
o->oTTC2DRotatorMinTimeUntilNextTurn =
sTTC2DRotatorTimeBetweenTurns[o->oBehParams2ndByte][gTTCSpeedSetting];
o->oTTC2DRotatorIncrement = o->oTTC2DRotatorSpeed = sTTC2DRotatorSpeeds[o->oBehParams2ndByte];
struct SyncObject* so = network_init_object(o, 4000.0f);
so->minUpdateRate = 5.0f;
network_init_object_field(o, &o->oTTC2DRotatorMinTimeUntilNextTurn);
network_init_object_field(o, &o->oTTC2DRotatorTargetYaw);
network_init_object_field(o, &o->oTTC2DRotatorIncrement);
network_init_object_field(o, &o->oTTC2DRotatorRandomDirTimer);
network_init_object_field(o, &o->oFaceAngleYaw);
network_init_object_field(o, &o->oAngleVelYaw);
}
/**