Bully: Difference between revisions

250 bytes added ,  6 October 2023
behav + init + file, also uses old template
(→‎Use in Challenges: added ETitV as a use and link to first instance of BitFS)
(behav + init + file, also uses old template)
Line 1: Line 1:
{{object_infobox
{{object_infobox
|title= Bully
|title= Bully<ref>[https://github.com/n64decomp/sm64/blob/master/src/game/behaviors/bully.inc.c Bully Behavior Code]</ref><ref>[https://github.com/n64decomp/sm64/blob/master/data/behavior_data.c#L4050 Bully Initialization Codes]</ref>
|gallery= <gallery>
|gallery= <gallery>
STROOP- Bully.png|Bully
STROOP- Bully.png|Bully
Line 34: Line 34:
The Bully enemy's knockback logic contains a step that involves dividing by the horizontal distance between Mario and the Bully. Thus, the game will crash from a divide by 0 error if the operation is performed while the distance between Mario and the Bully is 0. Causing this crash requires very specific conditions. Mario must be next to an area out-of-bounds so that he will not be moved away from the bully before the crash can occur and Mario must be in a state to receive knockback from the bully, making the exact movement needed to cause the crash very precise.
The Bully enemy's knockback logic contains a step that involves dividing by the horizontal distance between Mario and the Bully. Thus, the game will crash from a divide by 0 error if the operation is performed while the distance between Mario and the Bully is 0. Causing this crash requires very specific conditions. Mario must be next to an area out-of-bounds so that he will not be moved away from the bully before the crash can occur and Mario must be in a state to receive knockback from the bully, making the exact movement needed to cause the crash very precise.


==References==
<references/>
[[Category:Enemies]]
[[Category:Enemies]]
{{objects}}
{{objects}}
577

edits