mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 14:03:01 +00:00
Synchronized blue coin switch
This commit is contained in:
parent
aaf521659e
commit
0ceba4b372
1 changed files with 10 additions and 0 deletions
|
@ -60,6 +60,15 @@ void bhv_hidden_blue_coin_loop(void) {
|
||||||
* Update function for bhvBlueCoinSwitch.
|
* Update function for bhvBlueCoinSwitch.
|
||||||
*/
|
*/
|
||||||
void bhv_blue_coin_switch_loop(void) {
|
void bhv_blue_coin_switch_loop(void) {
|
||||||
|
if (o->oSyncID == 0) {
|
||||||
|
network_init_object(o, SYNC_DISTANCE_ONLY_EVENTS);
|
||||||
|
network_init_object_field(o, &o->oAction);
|
||||||
|
network_init_object_field(o, &o->oVelY);
|
||||||
|
network_init_object_field(o, &o->oGravity);
|
||||||
|
network_init_object_field(o, &o->oTimer);
|
||||||
|
network_init_object_field(o, &o->oPosY);
|
||||||
|
}
|
||||||
|
|
||||||
// The switch's model is 1/3 size.
|
// The switch's model is 1/3 size.
|
||||||
cur_obj_scale(3.0f);
|
cur_obj_scale(3.0f);
|
||||||
|
|
||||||
|
@ -78,6 +87,7 @@ void bhv_blue_coin_switch_loop(void) {
|
||||||
o->oGravity = 0.0f;
|
o->oGravity = 0.0f;
|
||||||
|
|
||||||
cur_obj_play_sound_2(SOUND_GENERAL_SWITCH_DOOR_OPEN);
|
cur_obj_play_sound_2(SOUND_GENERAL_SWITCH_DOOR_OPEN);
|
||||||
|
network_send_object(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue