Skip to content

Instantly share code, notes, and snippets.

@lioncash

lioncash/sm64.md Secret

Last active January 28, 2021 15:08
Show Gist options
  • Save lioncash/5e8b476f1d08c2fa861f829491c6aa2f to your computer and use it in GitHub Desktop.
Save lioncash/5e8b476f1d08c2fa861f829491c6aa2f to your computer and use it in GitHub Desktop.
SM64 FPS

Table of Contents

Stage IDs

ID Name
3 Castle Lobby
4 Castle Courtyard
5 Castle Basement
6 Castle Upstairs
7 Bob omb Battlefield
8 Whomp's Fortress
9 Jolly Roger's Bay
11 Cool Cool Mountain
15 Big Boo's Haunt
16 Shifting Sand Land
18 Lethal Lava Land
20 Hazy Maze Cave
21 Dire Dire Docks
24 Wet Dry World
25 Tiny Huge Island
26 Tiny Huge Island
27 Tiny Huge Island
28 Tall Tall Mountain
30 Snowman's Land
32 Tick Tock Clock
33 Rainbow Ride
36 Star Select

Bowser Pathing

A follow counter gets set to 10 seconds immediately after Bowser is done talking and gets decremented during each game update cycle.

Once the timer reaches zero there is a random chance for Bowser to either attempt to breathe fire or slash

If Random.value (the global RNG value) < 0.5, then Bowser will breathe fire. If >= 0.5, then Bowser will slash.

Ideal case is for Bowser to breathe fire, as he stands still longer.

Bowser HP Values

World HP
Dark World 300 HP
Fire Sea 600 HP
Sky 1000 HP

Weapon Damage Values On Bowser

Weapon Damage Value
M16 -2 HP
Mine -15 HP
Pistol -1 HP
Rocket Launcher -8 HP
Shotgun -6 HP
Sniper -5 HP

No other weapons damage Bowser at all.

Enemy Damage Values

Note: Mario only has 100 HP

Enemy Value
Amp -20 HP (Contact) (Electric thingies in Bowser in the Dark World)
Bob'omb Explosion -20 HP
Boo -20 HP (Contact)
Bowser -70 HP (Contact or Slash)
Bullet Bill Explosion -30 HP
Chain Chomp -30 HP
Cheep Chomp -1000HP (Fishes that OHKO you in Tiny Huge Island)
Chuck-ya -45 HP (In 15 HP increments over its grab duration)
Fire -25 HP (Contact)
Fire Blowers -40 HP (Flamethrower thingies in Bowser worlds)
Goomba -15 HP (Contact)
Heave Ho -20 HP (Contact) (The wind-up thingies in Wet Dry World)
Lava -20 HP (Contact)
Maw-Ray -30 HP (Contact)
Monty Mole -20 HP (Contact)
Mr I -20 HP (Contact)
Piranha Plant -25 HP (Contact)
Pokey -30 HP (Contact)
Rock Mines (in JRB) -40 HP
Rolling Chomp -30 HP (Contact)
Scuttle Bug -20 HP (Contact)
Skeeter -20 HP (Contact)
Sushi -40 HP (Contact) (Sharks in Dire Dire Docks)
Thwomp -1000 HP
Toxic Maze Gas -10 HP
Whomp -1000 HP

Misc Values

Name Value
Big Bully Knockback Timeout 2 seconds
Bully Knockback Timeout 0.75 seconds
Chuck-ya Grab Duration 3 seconds

Built-in Cheat Code

In version 1.0 of SM64 FPS, if you press P and V on your keyboard at the same time, then the game will proceed to give you every weapon in the game. It's possible to see if the key presses worked, as activating the key combination will deal 5 HP worth of damage to mario, so you'll see a slight red tint on the HUD.

Bugs (in v1.0)

  • Goomba's cannot be killed with either the M16 or Sniper Rifle. This is because a Goomba starts with 20HP. However, the M16 does 7 HP of damage, and the Sniper Rifle does 8 HP of damage.

    The check internally for deciding whether or not a Goomba dies is "if (health == 0f)" rather than "if (health <= 0)", so if you try to kill a Goomba with an M16 or Sniper Rifle, then its health will go negative and never execute the code to die.

  • When collecting 100 coin stars, ensure that you do not pick up a red coin if you have 99 coins. Also don't pick up a blue coin if you have anywhere between 96–99 coins. Doing so will cause the 100 coin star to not spawn, as the game internally checks if your coin count is equal to 100, not greater-than or equal to 100.

  • Bowser world red coin stars don't work at all.

  • Tick Tock Clock stars also don't work at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment