Haunted Chair: Difference between revisions

Jump to navigation Jump to search
1,405 bytes added ,  12 October 2023
behav + init + ref
(Created page with "{{object_infobox_2 |title= Haunted Chair |image= STROOP- Haunted Chair.png |group= |group2 = |tangibility= |draw= |gravity= |friction= |buoyancy= |interaction= Damage |damage=...")
 
(behav + init + ref)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
|title= Haunted Chair
|title= Haunted Chair
|image= STROOP- Haunted Chair.png
|image= STROOP- Haunted Chair.png
|group=
|group=Genactor
|group2 =
|group2 =Group 9
|modelID=0x56
|tangibility=
|tangibility=
|draw=
|draw=
Line 18: Line 19:
|offset=
|offset=
|coins=
|coins=
|related=[[Mad Piano]]
|foundIn= [[Big Boo's Haunt]]
|behaviorScript=[https://github.com/n64decomp/sm64/blob/master/data/behavior_data.c#L5692 Haunted Chair Initialization Script]
|behaviorCode=[https://github.com/n64decomp/sm64/blob/master/src/game/behaviors/haunted_chair.inc.c Haunted Chair Behavior Code]
}}
}}
'''Haunted Chair''' is an enemy appearing in [[Big Boo's Haunt]].
'''Haunted Chair''' is an enemy appearing in [[Big Boo's Haunt]].


==Behavior==
==Behavior==
The haunted chair behavior actually accounts for two different kinds objects: The chair in front of the Mad Piano, and the other haunted chairs. The two cases are distinguished by the distance from the chair to an object using the Mad Piano behavior.
The first case occurs if there exists an object with the mad piano behavior and that object is within 300 units of the chair. Then, the Mad Piano is set as the chair’s parent object. When the lateral distance between the chair and Mad Piano is less than 250 units, the chair will begin to fall. The chair can fall in one of four directions separated by 90-degree angles, with the direction being dependent on the angle from the Mad Piano to the chair. In three cases, the chair will fall being rotated 90-degrees, but if Mad Piano approaches behind the chair, the final angle will be 112.5-degrees. The chair falls by rotated toward its final angle at a rate of 8.24 degrees/frame. Thus, the full rotation will take either 11 or 14 frames. The chair will remain on the floor with no further actions.


==References==
==References==
 
<references/>


{{Objects}}
{{Objects}}


[[Category:Enemies]]
[[Category:Enemies]]
577

edits

Navigation menu