mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Synchronized swing platform
This commit is contained in:
parent
f2f5cf4955
commit
736fba54a2
1 changed files with 8 additions and 0 deletions
|
|
@ -1,9 +1,17 @@
|
|||
|
||||
void bhv_swing_platform_init(void) {
|
||||
o->oSwingPlatformAngle = 0x2000;
|
||||
|
||||
struct SyncObject* so = network_init_object(o, 4000.0f);
|
||||
so->minUpdateRate = 5.0f;
|
||||
network_init_object_field(o, &o->oSwingPlatformAngle);
|
||||
network_init_object_field(o, &o->oFaceAngleRoll);
|
||||
network_init_object_field(o, &o->oSwingPlatformSpeed);
|
||||
network_init_object_field(o, &o->oAngleVelRoll);
|
||||
}
|
||||
|
||||
void bhv_swing_platform_update(void) {
|
||||
|
||||
s32 startRoll = o->oFaceAngleRoll;
|
||||
|
||||
if (o->oFaceAngleRoll < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue