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 : 5087
    Age : 22
    Location : USA or Tawain
    Job : Student, Part time Cactuar fanatic
    Hobbie : Planting Cactuars.
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    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!

    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Mon Oct 24, 2016 4:35 pm