(Old code tutorial) Display Mapname at beginning of Level - Darkone from Wolf Planet forum

View previous topic View next topic Go down

(Old code tutorial) Display Mapname at beginning of Level - Darkone from Wolf Planet forum

Post by Officer-M. John (Admin) on Sat Mar 26, 2016 5:38 pm

Searching through Darkone's NewWolf Classic source, I stumbled upon this simple piece of code that displays the mapname at the beginning of each level.

First, you need to include my ingame messages variation tutorial. Then open WL_GAME.C and find the SetupGameLevel function. Look for this line at the bottom:

Code:

CA_LoadAllSounds ();

Add this underneath:

Code:

// display map name
  {
      char name[16];
      int n;
   
      for(n=0; n<16; n++)
        name[n]=mapheaderseg[mapon]->name[n];

      Msg_Printf(name);
  }

Save and compile. Credit goes to Darkone for this code.

There you go
-Deathshead

Writte by Deathshead on Wed Apr 06, 2005 11:36 am
avatar
Officer-M. John (Admin)
Admin

Posts : 323
Join date : 2015-10-02
Age : 19

View user profile http://wolf3dfanboys.usersboard.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum