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...


    adding death artifaact

    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

    adding death artifaact Empty adding death artifaact

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

    dome




    Code Editing Tutorials
    Adding a Death Artifact




    Open WL_ACT1.C and scroll down and pick a not-needed sprite. For example

    {SPR_STAT_##} // ## is the number of whatever object number you choose


    after ##, insert ", bo_death" so the code will look like this:

    {SPR_STAT_##, bo_death} // death artefact


    Now scroll down until you see a bunch of "case bo_" names. Before bo_spear, add "bo_death:" with no quotes.

    Now close WL_ACT1.C and open WL_DEF.H.

    Do a search for bo_spear and you should see a bunch of bo_ names. Now add a comma after bo_spear and then add bo_death so the code will look like this:

    bo_spear,
    bo_death
    }


    Now close WL_DEF.H and open WL_AGENT.C.

    Search for bo_spear and you should see a bunch of case's being defined. before bo_spear add:

    case bo_death:
    playstate = ex_died;
    StatusDrawPic (17,4,FACE8APIC);
    break;


    Save and Build All. When you move over the object you replaced, you should die!





    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Fri Apr 26, 2024 6:01 pm