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] Animated dead guard body

    Share

    ronwolf1705
    Hardcore Wolfer
    Hardcore Wolfer

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

    [code] Animated dead guard body

    Post by ronwolf1705 on 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
    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] Animated dead guard body

    Post by Dark_wizzie on 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 Sun Dec 04, 2016 4:13 am