From 7433f0f3b97e535b865bb71af8b81eabe47bc979 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 11 Oct 2020 14:39:21 -0700 Subject: [PATCH] Synchronized TTC rotating solid --- src/game/behaviors/ttc_rotating_solid.inc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/behaviors/ttc_rotating_solid.inc.c b/src/game/behaviors/ttc_rotating_solid.inc.c index 238a8835..dbca3bdd 100644 --- a/src/game/behaviors/ttc_rotating_solid.inc.c +++ b/src/game/behaviors/ttc_rotating_solid.inc.c @@ -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); } /**