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

    Share

    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!

    Male
    Number of posts : 5090
    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

    doors not closing automatically

    Post by Dark_wizzie on 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 Tue Dec 06, 2016 1:59 pm