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


    [Code] Thrust player when hit by a shot

    Share

    ronwolf1705
    Hardcore Wolfer
    Hardcore Wolfer

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

    [Code] Thrust player when hit by a shot

    Post by ronwolf1705 on 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
    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

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

    Post by Dark_wizzie on 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
    Veteran
    Veteran

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

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

    Post by PicNic on 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
    Hardcore Wolfer
    Hardcore Wolfer

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

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

    Post by ronwolf1705 on 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

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

    Post by Sponsored content Today at 12:20 pm


      Current date/time is Sat Dec 10, 2016 12:20 pm