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

    doors not closing automatically

    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

    doors not closing automatically Empty doors not closing automatically

    Post by Dark_wizzie on Sun Apr 29, 2007 1:51 pm


    Code Editing Tutorials
    Making non-closing doors

    This tutorial is more Basic than Advanced, but it's very unknown in the community so I placed it here Very Happy.

    Step 1. Open WL_ACT1.C

    Step 2. In 270 line you should find:

    #define OPENTICS 300

    Step 3. Delete this line.

    Step 4. In lines 538-542 of the same file you should find the void OpenDoor (int door) function:

    void DoorOpen (int door)


    if ( (doorobjlist[door].ticcount += tics) >= OPENTICS)

    CloseDoor (door);


    Delete it.

    Step 5. In lines 696-698 of the same file you should find function void_MoveDoors (void). Find this:

    case dr_open:

    DoorOpen (door);


    And delete these lines.

    Step 6. Compile the program and have fun with non-automatically closing doors.

      Current date/time is Thu Jan 23, 2020 1:11 am