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

    [code] Animated dead guard body

    ronwolf1705
    ronwolf1705
    Hardcore Wolfer
    Hardcore Wolfer


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

    [code] Animated dead guard body Empty [code] Animated dead guard body

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

    Here's how to make the dead guards body animated:

    In WL_DEF.H search for:

    Code:

    SPR_GRD_DEAD,

    After that add:

    Code:

    SPR_GRD_DEAD2,

    You have to add the sprite with an editor ofcourse.

    Then in WL_ACT2.C search for:

    Code:

    extern  statetype s_grddie1;
    extern  statetype s_grddie1d;
    extern  statetype s_grddie2;
    extern  statetype s_grddie3;
    extern  statetype s_grddie4;

    and add underneath that:

    Code:

    extern  statetype s_grddie5;

    Then search:

    Code:

    statetype s_grddie1 = {false,SPR_GRD_DIE_1,15,NULL,A_DeathScream,&s_grddie2};
    statetype s_grddie2 = {false,SPR_GRD_DIE_2,15,NULL,NULL,&s_grddie3};
    statetype s_grddie3 = {false,SPR_GRD_DIE_3,15,NULL,NULL,&s_grddie4};
    statetype s_grddie4 = {false,SPR_GRD_DEAD,0,NULL,NULL,&s_grddie4};

    And change that to this:

    Code:

    statetype s_grddie1 = {false,SPR_GRD_DIE_1,15,NULL,A_DeathScream,&s_grddie2};
    statetype s_grddie2 = {false,SPR_GRD_DIE_2,15,NULL,NULL,&s_grddie3};
    statetype s_grddie3 = {false,SPR_GRD_DIE_3,15,NULL,NULL,&s_grddie4};
    statetype s_grddie4 = {false,SPR_GRD_DEAD,15,NULL,NULL,&s_grddie5};
    statetype s_grddie5 = {false,SPR_GRD_DEAD2,15,NULL,NULL,&s_grddie4};

    You can always add more animations.
    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] Animated dead guard body Empty Re: [code] Animated dead guard body

    Post by Dark_wizzie Mon May 21, 2007 6:36 am

    like in drchainsaw's hitlers ark with tranquilized guards.



    Wolf3d Haven
    Minute Logic Blog

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