Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How to Add Footsteps in Baldi's Basics Classic - A Tutorial for Baldi's Basics.

Footsteps in Baldi's Basics (Base Game and Decompile)

Don't like how you're traversing the halls, You don't hear anything and you start to feel like your just floating your way around? Me neither. Today I'm going to show you how to add Footsteps in BOTH Base Game AND Decompile.

DEMONSTRATION VIDEO:



WHAT YOU WILL NEED:


Let's get started.

STEP 1: Setting Up

Open Up dnSpy and open up your Assembly-CSharp.dll. (It should be in the Managed Folder in "BALDI_Data")

Go to "-" and look for "GameControllerScript"

Once you find it open it.

STEP 2: Basics

Right click on anything and click "Edit Class", Make a void.

Let's start by making 4 public floats. The Accumulated Distance, The Step Distance, and The Walk and Run Distance. (for the Step Distance)

Set the Assigned Walk and Run Distance to the number of your choice. (0.5 for the Walk Distance and 0.3 for the Run Distance is recommended)

Now paste in this code in your void.

if (this.player.cc.velocity.sqrMagnitude > 0f) // NOTE: Change the "cc" to "rb" if you're using 1.3.2 or under.
        {
            this.accumulatedDistance += Time.deltaTime;
            if (this.accumulatedDistance > this.stepDistance)
            {
                this.audioDevice.PlayOneShot(YOUR AUDIO HERE);
                this.accumulatedDistance = 0f;
                return;
            }
        }
        else
        {
            this.accumulatedDistance = 0f;
        }

Now, Go to PlayerScript and in the PlayerMove Method, in the "if (stamina > 0f)" Statement, add in this. (REMINDER, MAKE SURE YOU'VE SAVED FOR THIS TO WORK)

this.gc.stepDistance = this.gc.walkDistance;
this.gc.stepDistance = this.gc.runDistance;

If done correctly, it should look like this.



OPTIONAL STEP: Footsteps Audio Source

Basegame: Make a Private AudioSource variable, add "this.audioSourceVar = base.gameObject.AddComponent<AudioSource>();" to the Start Method of GameControllerScript. Replace the AudioSource in your footstep void with the desired footsteps audio source you just made.

Decompile: Make a New AudioSource component in either the GameController GameObject or the Player. Go to GameControllerScript and add in a new Public AudioSource variable, assign the New AudioSource to the Variable, and Replace the AudioSource in the Footstep Void with the desired footsteps Audio Source you just made.

Make sure to Trigger the Footstep Void in the GameControllerScript in the Update Method.

Then save, and you're done! You can now roam the halls like a normal person!

NOTE

If you didn't understand this tutorial and are having problems with it, Here's an Assembly download link for you.

v1.4.3
v1.3.2

  • SadColoredMods avatar
    SadColoredMods Joined 1y ago
    got bored of it
    SadColoredStudios Flag Affiliation: SadColoredStudios
    682 points Ranked 51,678th
    10 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 6 months a member Medal icon
    • Submitted 1 Tool Medal icon
    • 1 year a member Medal icon
    SadColoredMods SadColoredStudios Flag
    Affiliation
    SadColoredStudios
    23d
    Trying to add this into a 1.4.3. decompile sucks, cuz Porky Powers removed the playerInput part of the scripts because Rewired Inputs in Baldi Classic is a Paid thing, so what do i do now?
    The Understanding Guy avatar
    Mantra
    The Understanding Guy
    URL to post:
  • but i start walk, sound is weird
    URL to post:
  • Kayipkuxt avatar
    Kayipkuxt username pic Joined 2y ago
    Offline
    618 points Ranked 53,235th
    8 medals 1 rare
    • Returned 1000 times Medal icon
    • Returned 100 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • Reached 10 subscribers Medal icon
    • 1 year a member Medal icon
    2y
    can you add a download to the assembly for non-pro coders?
    g avatar
    Mantra
    g
    URL to post:
  • Ghost1732784 avatar
    Ghost1732784 Joined 2y ago
    Offline
    3,025 points Ranked 5,809th
    16 medals 1 legendary 1 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • Returned 100 times Medal icon
    • One month a member Medal icon
    • Became a Studio Leader Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    2y
    how do i make this work in 1.3.2?
    URL to post:
  • Slimemoreno17 avatar
    Slimemoreno17 username pic Joined 3y ago
    Drunk or moding
    2,567 points Ranked 22,078th
    20 medals 1 legendary 4 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • Submitted 15 Mods Medal icon
    • Thanked 50 submitters Medal icon
    • Submitted 20 Mods Medal icon
    • One month a member Medal icon
    2y
    Help Please. Everytime i paste the code in the void, everything gets red and with error
    Mommy Milkers
    URL to post:
  • CyndaquilDAC avatar
    CyndaquilDAC username pic Joined 4y ago
    :no:
    7,670 points Ranked 1,302nd
    30 medals 3 legendary 5 rare
    • Became a Ripe Supporter Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Gamefiles Medal icon
    • Thanked 50 submitters Medal icon
    2y
    There's a bug in this I figured out how to fix. you have to add
    this.gc.stepDistance = this.gc.walkDistance;
    to the beginning of the player move void as well as the place the tutorial tells you to add it to not have it playing rapidly and loudly until you run for the first time. Hope this helps!
    yea
    URL to post:
  • SirOofy90 avatar
    SirOofy90 username pic Joined 3y ago
    i am not online
    4,757 points Ranked 2,345th
    19 medals 2 legendary 2 rare
    • Became a Ripe Supporter Medal icon
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • Thanked 50 submitters Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    2y
    I need some help.
    These are the errors I'm getting:
    1. Operator '+=' cannot be applied to operands of type 'Player' and 'float'.
    2. Operator '>' cannot be applied to operands of type 'Player' and 'float'.
    3. Cannot implicity convert type to 'Rewired.Player'.

    Also, here is screenshots of the code, the 1st picture has the 'if (this.player.cc.velocity.sqrMagnitude > 0f)        {

                this.accumulatedDistance += Time.deltaTime;

                if (this.accumulatedDistance > this.stepDistance)

                {

                    this.audioDevice.PlayOneShot(YOUR AUDIO HERE);' part. 

    And the second picture has the stuff added to it to make the text not red.
    baldi basic gaming avatar
    Mantra
    baldi basic gaming
    URL to post:
  • Slimemoreno17 avatar
    Slimemoreno17 username pic Joined 3y ago
    Drunk or moding
    2,567 points Ranked 22,078th
    20 medals 1 legendary 4 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • Submitted 15 Mods Medal icon
    • Thanked 50 submitters Medal icon
    • Submitted 20 Mods Medal icon
    • One month a member Medal icon
    2y
    How do i add the step sound?
    Mommy Milkers
    URL to post:
  • GZOONK avatar
    GZOONK username pic Joined 4y ago
    Playin Fortnite
    Ruler Productions Flag Affiliation: Ruler Productions
    10,471 points Ranked 871st
    29 medals 3 legendary 7 rare
    • Became a Ripe Supporter Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • Received thanks 50 times Medal icon
    • Reached 50 subscribers Medal icon
    • Returned 1000 times Medal icon
    GZOONK avatar
    GZOONK
    Ruler Productions Flag
    Affiliation
    Ruler Productions
    2y
    God like activity! Good Job!
    Yes avatar
    Mantra
    Yes
    URL to post: