Wolf3d Haven Forum

Please log in or register. Smile
Wolf3d Haven Forum

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

    adding death artifaact

    I am Death Incarnate!
    I am Death Incarnate!

    Number of posts : 5109
    Age : 26
    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 on Sun Apr 29, 2007 1:53 pm


    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:


    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);

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

      Current date/time is Thu Jan 23, 2020 12:44 am