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

    changing speed doors open and close

    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

    changing speed doors open and close Empty changing speed doors open and close

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


    Code Editing Tutorials
    Changing the speed of doors open & close

    This tutorial is more Basic than Advanced, but it's very unknown in the community so I placed it here Very Happy. The same's with next Kuki's tutorial. Okay, let's get to work.

    Step 1. Open WL_ACT1.C

    Step 2. In function void_DoorOpening (int door) there's written:

    position += tics<<10;

    Change the number '10' to number from 0 to 10. When the number's higher, the door will open faster. If the number will be higher than 15, the doors won't open at all.

    Step 3. In the same file, in function void_DoorClosing (int door) there's written:

    position -= tics<<10;

    Rule is the same as above, but now we are changing the door close speed.


      Current date/time is Wed Jan 22, 2020 11:43 pm