Synchronized TTC rotating solid

This commit is contained in:
MysterD 2020-10-11 14:39:21 -07:00
parent 6a44a34d73
commit 7433f0f3b9
1 changed files with 9 additions and 0 deletions

View File

@ -31,6 +31,15 @@ void bhv_ttc_rotating_solid_init(void) {
o->oTTCRotatingSolidNumSides = o->oBehParams2ndByte == TTC_ROTATING_SOLID_BP_CUBE ? 4 : 3;
o->oTTCRotatingSolidRotationDelay = sTTCRotatingSolidInitialDelays[gTTCSpeedSetting];
struct SyncObject* so = network_init_object(o, 4000.0f);
so->minUpdateRate = 5.0f;
network_init_object_field(o, &o->oTTCRotatingSolidNumTurns);
network_init_object_field(o, &o->oTTCRotatingSolidRotationDelay);
network_init_object_field(o, &o->oTTCRotatingSolidVelY);
network_init_object_field(o, &o->oTTCChangeDirTimer);
network_init_object_field(o, &o->oAngleVelRoll);
network_init_object_field(o, &o->oFaceAngleRoll);
}
/**