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

    WOLF3D secret coding -read this!!!!

    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

    WOLF3D secret coding -read this!!!! Empty WOLF3D secret coding -read this!!!!

    Post by Dark_wizzie Tue Mar 27, 2007 7:13 pm

    does ANYBODY
    know how to make a secret level display ratios like normal levels and grant bounuses for getting100% ratios??? i need it!!! wl-hack, can you do it??
    if you want, you can make the bounus for the completeing the secret level +0 score insted of +15000? thanks a bundle
    btw wl-hack please try your best!!!



    Wolf3d Haven
    Minute Logic Blog
    avatar
    WLHack
    Senior Member
    Senior Member


    Male
    Number of posts : 800
    Age : 35
    Location : Finland
    Registration date : 2007-03-26

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by WLHack Tue Mar 27, 2007 11:16 pm

    That is easy one...
    I post the tutorial later today.
    avatar
    WLHack
    Senior Member
    Senior Member


    Male
    Number of posts : 800
    Age : 35
    Location : Finland
    Registration date : 2007-03-26

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by WLHack Wed Mar 28, 2007 12:28 am

    Okay... Here we go.
    Open WL_Inter.C and search LevelCompleted,
    now you should see this block:

    Code:

    #ifndef SPEAR
    LRstruct LevelRatios[8];
    #else
    LRstruct LevelRatios[20];
    #endif

    Change it to this:

    Code:

    #ifndef SPEAR
    LRstruct LevelRatios[9];  // Wolfenstein
    #else
    LRstruct LevelRatios[20]; // S.O.D
    #endif


    Then scroll down to Par Times table, and change
    them to this:
    Code:


    #ifndef SPEAR
      //
      // Episode One Par Times
      //
          {1.5,   "01:30"},
          {2,   "02:00"},
          {2,   "02:00"},
          {3.5,   "03:30"},
          {3,   "03:00"},
          {3,   "03:00"},
          {2.5,   "02:30"},
          {2.5,   "02:30"},
          {0,   "??:??"},   // Boss level
          {1,   "01:00"},   // Adjust to your liking

     //
     // Episode Two Par Times
     //
          {1.5,   "01:30"},
          {3.5,   "03:30"},
          {3,   "03:00"},
          {2,   "02:00"},
          {4,   "04:00"},
          {6,   "06:00"},
          {1,   "01:00"},
          {3,   "03:00"},
          {0,   "??:??"},
          {1,   "01:00"}, // Adjust to your liking

     //
     // Episode Three Par Times
     //
          {1.5,   "01:30"},
          {1.5,   "01:30"},
          {2.5,   "02:30"},
          {2.5,   "02:30"},
          {3.5,   "03:30"},
          {2.5,   "02:30"},
          {2,   "02:00"},
          {6,   "06:00"},
          {0,   "??:??"},
          {1,   "01:00"}, // Adjust to your liking

     //
     // Episode Four Par Times
     //
            {2,   "02:00"},
            {2,   "02:00"},
            {1.5,   "01:30"},
            {1,   "01:00"},
            {4.5,   "04:30"},
            {3.5,   "03:30"},
            {2,   "02:00"},
            {4.5,   "04:30"},
            {0,   "??:??"},
            {1,   "01:00"}, // Adjust to your liking

      //
      // Episode Five Par Times
      //
            {2.5,   "02:30"},
            {1.5,   "01:30"},
            {2.5,   "02:30"},
            {2.5,   "02:30"},
            {4,   "04:00"},
            {3,   "03:00"},
            {4.5,   "04:30"},
            {3.5,   "03:30"},
            {0,   "??:??"},
            {1,   "01:00"}, // Adjust to your liking

     //
     // Episode Six Par Times
     //
          {6.5,   "06:30"},
          {4,   "04:00"},
          {4.5,   "04:30"},
          {6,   "06:00"},
          {5,   "05:00"},
          {5.5,   "05:30"},
          {5.5,   "05:30"},
          {8.5,   "08:30"},
          {0,   "??:??"},
          {1,   "01:00"} // Adjust to your liking
    #else

    Then search for, these lines:
    Code:

    #ifdef SPEAR
    #ifndef SPEARDEMO
      switch(mapon)
      {
        case 4: Write(14,4," trans\n"
          " grosse\n"
                                    STR_DEFEATED); break;
        case 9: Write(14,4,"barnacle\n"
          "wilhelm\n"
                                    STR_DEFEATED); break;
        case 15: Write(14,4,"ubermutant\n"
                                    STR_DEFEATED); break;
        case 17: Write(14,4," death\n"
                         " knight\n"
          STR_DEFEATED); break;
        case 18: Write(13,4,"secret tunnel\n"
                         "area\n"
                         " completed!"); break;
        case 19: Write(13,4,"secret castle\n"
            "area\n"
            "completed!"); break;
      }
    #endif
    #else
          Write(14,4,"secret floor\n completed!");
    #endif

          Write(10,16,"15000 bonus!");

          VW_UpdateScreen();
          VW_FadeIn();

          GivePoints(15000);


    And change them to this:
    Code:

    #ifdef SPEAR
    #ifndef SPEARDEMO
      switch(mapon)
      {
        case 4: Write(14,4," trans\n"
          " grosse\n"
                                    STR_DEFEATED); break;
        case 9: Write(14,4,"barnacle\n"
          "wilhelm\n"
                                    STR_DEFEATED); break;
        case 15: Write(14,4,"ubermutant\n"
                                    STR_DEFEATED); break;
        case 17: Write(14,4," death\n"
                         " knight\n"
          STR_DEFEATED); break;
        case 18: Write(13,4,"secret tunnel\n"
                         "area\n"
                         " completed!"); break;
        case 19: Write(13,4,"secret castle\n"
            "area\n"
            "completed!"); break;
      }
          Write(10,16,"15000 bonus!");

          VW_UpdateScreen();
          VW_FadeIn();

          GivePoints(15000);
    #endif
    #endif

    Now search for these lines:
    Code:

    #ifndef SPEAR
      if (mapon<8)
    #else
      if (mapon != 4 &&
          mapon != 9 &&
          mapon != 15 &&
          mapon < 17)
    #endif

    And change them to this:
    Code:

    #ifndef SPEAR
      if (mapon != 8) // Boss level
    #else
      if (mapon != 4 &&
          mapon != 9 &&
          mapon != 15 &&
          mapon < 17)
    #endif

    And then find these lines:
    Code:

    kr /= 8;
    sr /= 8;
    tr /= 8;

    And change them to this:
    Code:

    kr /= 9; // Amount of regular levels.
    sr /= 9;
    tr /= 9;

    This should be all that you need to do...
    Hopefully I haven't forgotten anything.
    Oh, and you might have to edit those Par Time tables
    if you're using Chris' great memboost source.
    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

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by Dark_wizzie Wed Mar 28, 2007 3:14 pm

    brian said it was hard=) ou make it sound simple but it LOOKS hard. lol. maybe because i do not know the beans about coding but still..,



    Wolf3d Haven
    Minute Logic Blog
    Jonathan
    Jonathan
    Sturmgewehr
    Sturmgewehr


    Male
    Number of posts : 44
    Registration date : 2007-03-25

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by Jonathan Sun Apr 01, 2007 11:02 pm

    Well, You may ask your brother about these coding if you don't know
    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

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by Dark_wizzie Mon Apr 02, 2007 2:43 pm

    jonnathan, just tell me what to do...
    -.-
    and wlhack knows what he is doing (right?? i hope so=))



    Wolf3d Haven
    Minute Logic Blog
    avatar
    WLHack
    Senior Member
    Senior Member


    Male
    Number of posts : 800
    Age : 35
    Location : Finland
    Registration date : 2007-03-26

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by WLHack Mon Apr 02, 2007 2:44 pm

    Of course I do... Heh.
    Or Atleast I am supposed to do.

    That code above... I tested it with a unedited Source code
    and it worked.
    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

    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by Dark_wizzie Mon Apr 02, 2007 2:46 pm

    WLHack wrote:Of course I do... Heh.
    Or Atleast I am supposed to do.

    That code above... I tested it with a unedited Source code
    and it worked.
    supposed to??
    lol
    and it is good that it works. it proves that you (i hope) knows what you are doing. and are you on??? you replied to my post which i posted 2 sec ago



    Wolf3d Haven
    Minute Logic Blog

    Sponsored content


    WOLF3D secret coding -read this!!!! Empty Re: WOLF3D secret coding -read this!!!!

    Post by Sponsored content


      Current date/time is Thu Nov 21, 2024 6:32 am