Wolf3d Haven Forum

Please log in or register. Smile

Join the forum, it's quick and easy

Wolf3d Haven Forum

Please log in or register. Smile

Wolf3d Haven Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Wolf3d Haven Forum

A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...


    ammo box in wolf3d

    Dark_wizzie
    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!


    Female
    Number of posts : 5120
    Age : 30
    Location : California, USA
    Job : Investor
    Hobbie : Computers, chess, computer chess, fashion, and philosophy
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    ammo box in wolf3d Empty ammo box in wolf3d

    Post by Dark_wizzie Sun Apr 29, 2007 1:41 pm

    dome




    Code Editing Tutorials
    Adding the 25 ammo box into Wolf




    Step 1:

    Open WL_ACT1.C and choose a sprite to edit, I chose Suit of Armor:


    {SPR_STAT_16,block}


    Step 2: (in this case) replace "block" with "bo_25clip"

    Save it DON'T COMPILE.


    Step 3: Open WL_AGENT.C and do a search for:"bo_25clip"

    (no quotes) and you should find this:



    #ifdef SPEAR

    case bo_25clip:

    if (gamestate.ammo == 99)

    return;



    SD_PlaySound (GETAMMOBOXSND);//NEED TO CHANGE

    GiveAmmo (25);//change this to your liking

    break;

    #endif


    First, remove "#ifdef SPEAR" and "#endif", NOW change "GETAMMOBOXSND" to a valid wolf3d sound!! (I used "BONUS1SND" because it is very similar. (GETAMMOBOXSND doesn't exist in Wolf 3D!)

    OPTIONAL: Change "25" to your liking!

    Step 3: Complie WL_AGENT.C first then WL_ACT1.C and link up!

    Now have fun with your new ammo Box!





    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Thu Nov 21, 2024 3:54 am