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


3 posters

    [Code] Thrust player when hit by a shot

    ronwolf1705
    ronwolf1705
    Hardcore Wolfer
    Hardcore Wolfer


    Male
    Number of posts : 1252
    Age : 33
    Registration date : 2007-03-26

    [Code] Thrust player when hit by a shot Empty [Code] Thrust player when hit by a shot

    Post by ronwolf1705 Sun May 20, 2007 11:47 am

    This will push the player backwards, when hit by a shot.

    In WL_ACT2.C search for:

    Code:

    void T_Shoot (objtype *ob)

    Then add underneath TakeDamage (damage,ob); in that function:

    Code:

    Thrust(player->angle,-0x500);

    You can change the 500 to your likings.
    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

    [Code] Thrust player when hit by a shot Empty Re: [Code] Thrust player when hit by a shot

    Post by Dark_wizzie Sun May 20, 2007 6:48 pm

    interetsting. its like you get hit my rocket you move back a lot, and bullets a bit. like doom.
    interesting. i noticed it on doom, but enver thought of implenting it in wolf3d.



    Wolf3d Haven
    Minute Logic Blog
    PicNic
    PicNic
    Veteran
    Veteran


    Male
    Number of posts : 1584
    Age : 31
    Registration date : 2007-04-16

    [Code] Thrust player when hit by a shot Empty Re: [Code] Thrust player when hit by a shot

    Post by PicNic Sun May 20, 2007 11:27 pm

    Admin wrote:interetsting. its like you get hit my rocket you move back a lot, and bullets a bit. like doom.
    interesting. i noticed it on doom, but enver thought of implenting it in wolf3d.

    yeh I wanted to say that heh, its like doom/wolfendoom
    ronwolf1705
    ronwolf1705
    Hardcore Wolfer
    Hardcore Wolfer


    Male
    Number of posts : 1252
    Age : 33
    Registration date : 2007-03-26

    [Code] Thrust player when hit by a shot Empty Re: [Code] Thrust player when hit by a shot

    Post by ronwolf1705 Mon May 21, 2007 5:30 am

    Admin wrote:interetsting. its like you get hit my rocket you move back a lot, and bullets a bit. like doom.
    interesting. i noticed it on doom, but enver thought of implenting it in wolf3d.

    You can do this by adding the same Thrust line in T_GiftThrow, but changing the 500 into a higher number.

    Sponsored content


    [Code] Thrust player when hit by a shot Empty Re: [Code] Thrust player when hit by a shot

    Post by Sponsored content


      Current date/time is Thu Nov 21, 2024 4:08 am