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


2 posters

    (help) Animated floor/ceiling in Wolf 3D SDL

    Officer-Michael John
    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer


    Male
    Number of posts : 332
    Age : 26
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    (help) Animated floor/ceiling in Wolf 3D SDL Empty (help) Animated floor/ceiling in Wolf 3D SDL

    Post by Officer-Michael John Tue Sep 06, 2016 10:17 am

    Hi members! I like to add Animated floor/ceiling to Wolf 3D SDL and don't work. What is problem?

    WL_FLOORCEILING.CPP:

    Code:
                    if(curtex)
                    {
                        unsigned curtoptex = curtex >> 8;
                        if(curtoptex > 0 && curtoptex < 64) curtoptex += 255;  //Note: change the 64 to match your last wall texture
                        if (curtoptex==250) // Whatever your wall ID is
                            curtoptex+= (frameon>>4)&4;
                        if (curtoptex != lasttoptex)
                        {
                            lasttoptex = curtoptex;
                            toptex = PM_GetTexture(curtoptex);
                        }
                        unsigned curbottex = curtex & 0xff;             
                        if(curbottex > 0 && curbottex < 64) curbottex += 255; //Note: change the 64 to match your last wall texture
                        if (curbottex==250) // Whatever your wall ID is
                            curbottex+= (frameon>>4)&4;
                        if (curbottex != lastbottex)   
                        {
                            lastbottex = curbottex;
                            bottex = PM_GetTexture(curbottex);
                        }

    250-253:Animated water
    Agent_Falcon93
    Agent_Falcon93
    Can I Play, Daddy?
    Can I Play, Daddy?


    Male
    Number of posts : 39
    Age : 38
    Location : subterranean caverns & catacombs
    Job : Entrepreneur
    Hobbie : Beach Days & Gardening
    Message : Author of Castle Erzengel Demo, and the upcoming Runes of North Castle Court, and the rest of the Series : Knights of the ᛋᛋ.
    Registration date : 2021-12-05

    (help) Animated floor/ceiling in Wolf 3D SDL Empty Re: (help) Animated floor/ceiling in Wolf 3D SDL

    Post by Agent_Falcon93 Sun Sep 17, 2023 11:34 am




    (help) Animated floor/ceiling in Wolf 3D SDL Right-arrow



    (help) Animated floor/ceiling in Wolf 3D SDL Right-arrow farao "Call Pizza Hut and say Ardwolf"  (help) Animated floor/ceiling in Wolf 3D SDL 1f355

      Current date/time is Tue Oct 08, 2024 1:58 pm