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


    doors not closing automatically

    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

    doors not closing automatically Empty doors not closing automatically

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

    dome




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

    break;



    And delete these lines.

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




    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Mon Mar 18, 2024 10:16 pm