Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions | Variables
activated_bf_plat.inc.c File Reference

Functions

void bhv_activated_back_and_forth_platform_init (void)
 Activated back-and-forth platform initialization function. More...
 
void bhv_activated_back_and_forth_platform_update (void)
 Activated back-and-forth platform update function. More...
 

Variables

static voidsActivatedBackAndForthPlatformCollisionModels []
 Behavior for bhvActivatedBackAndForthPlatform. More...
 

Function Documentation

◆ bhv_activated_back_and_forth_platform_init()

void bhv_activated_back_and_forth_platform_init ( void  )

Activated back-and-forth platform initialization function.

◆ bhv_activated_back_and_forth_platform_update()

void bhv_activated_back_and_forth_platform_update ( void  )

Activated back-and-forth platform update function.

Variable Documentation

◆ sActivatedBackAndForthPlatformCollisionModels

void* sActivatedBackAndForthPlatformCollisionModels[]
static
Initial value:
= {
}
u8 bitfs_seg7_collision_07015124[]
u8 bitfs_seg7_collision_070157E0[]
Definition: obj_behaviors_2.c:104
u8 bits_seg7_collision_0701AD54[]

Behavior for bhvActivatedBackAndForthPlatform.

There are only 2 of these in the game; the BitFS gray elevator and the BitS arrow platform. Note: The filename is abbreviated to avoid compiler seg fault on long paths Table of activated back-and-forth platform collision models. The second entry is unused. It corresponds to the mesh platform at the beginning of BitFS. In the game, it's a bhvPlatformOnTrack, which allows for more complex movement; its path is mostly a straight line except for where it dips into the lava. It seems the programmers had it as a bhvActivatedBackAndForthPlatform initially, which moves in a straight line, and wanted it to dip into the lava to make Mario have to move off of it. To do this, they changed it to a bhvPlatformOnTrack, but forgot to remove its entry in this table.