• View unanswered postsView active topics

  • Wolf3d SDL coding tutorials (?)

    Discuss Wolf3D and Wolf3D modding/ports

    Postby Tricob1974 09 Dec 2011, 02:49

    WolferCooker wrote:How do you change the firing speed of the weapons?
    In WL_AGENT.CPP, you'll find a group of numbers in threes, which look like this:
    Code: Select all
    {6,0,1}
    The first number of this trio is the speed. The smaller the number, the faster the speed.

    I don't recommend setting the number lower than 2, as that will make the weapon act strangely when the game skips even just than one frame.
    Tricob1974

     
    Posts: 1383
    Location: Huntsville, Alabama

        

    Postby WolferCooker 09 Dec 2011, 05:00

    Okay thanks!

    EDIT: I already know off the bat that adding a rocket launcher, flamethrower, or any weapon that fires projectiles is gonna be different than adding a regular bullet-type weapon. How hard could it be?
    WolferCooker
    User avatar

     
    Posts: 164
    Location: Bethlehem, Pennsylvania

        

    Postby Tricob1974 09 Dec 2011, 08:00

    It's not hard at all; when I enabled the Rocket Launcher in WolfDX, I just Copyed and Pasted the line of numbers from the Pistol weapon, and the control worked fine. The weapon still had problems afterwards, but that was for reasons that had nothing to do with the weapon code. :)
    Tricob1974

     
    Posts: 1383
    Location: Huntsville, Alabama

        

    Postby WolferCooker 09 Dec 2011, 08:26

    Sounds easy enough there, but if I just do that, the rocket launcher will fire like it's a bullet-type weapon would it? How do you actually get your weapon to fire projectiles?
    WolferCooker
    User avatar

     
    Posts: 164
    Location: Bethlehem, Pennsylvania

        

    Postby Tricob1974 09 Dec 2011, 18:21

    The rest of the code is written by Richter Belmont. He posted a tutorial on it many months back.
    Tricob1974

     
    Posts: 1383
    Location: Huntsville, Alabama

        

    Postby WolferCooker 09 Dec 2011, 21:09

    Okay I see the tutorial. I'll try this out later.
    WolferCooker
    User avatar

     
    Posts: 164
    Location: Bethlehem, Pennsylvania

        

    Postby Tricob1974 10 Dec 2011, 00:08

    It looks like BrotherTank already posted an Add Additional Weapons tutorial to DHWs, but - again - it isn't 100% compatible with Wolf4SDL. While this does cover more ground than Brian's tutorial did, it's - IMO - a bit heavy-handed for a beginner. WolferCooker said it well in that I should just go and make an Add Additional Weapons tutorial of my own. I'll probably post something basic to start with, and elaborate its functions in a later post. I suppose this gives the topic a chance to take on a life of its own, and cover ground that BT wasn't able to get to. When I first joined the forum, I never would have predicted that happening. :)
    Tricob1974

     
    Posts: 1383
    Location: Huntsville, Alabama

        

    Postby WolferCooker 10 Dec 2011, 01:23

    I'm sure you'll get good feedback Tricob. I think you're like WSJ in terms of explaining things clearly in tutorials and outlining necessary steps without confusing someone.
    WolferCooker
    User avatar

     
    Posts: 164
    Location: Bethlehem, Pennsylvania

        

    Postby Tricob1974 10 Dec 2011, 05:00

    Thanks for the encouragement. :)
    Tricob1974

     
    Posts: 1383
    Location: Huntsville, Alabama

        

    Postby WolferCooker 10 Dec 2011, 05:26

    No prob. Gotta give that to people like you that have helped change Wolf3d.

    BTW, it seems you need to have the separate ammo feature in the code as well in order for a new weapon to shoot projectiles. I just hope that the tutorial on DHW is correct for 4SDL before I can begin on that.
    WolferCooker
    User avatar

     
    Posts: 164
    Location: Bethlehem, Pennsylvania

        

    PreviousNext

    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 1 guest

    cron