Wolf Planet Forum Index Wolf Planet
We want you here!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[code] Display Mapname at beginning of Level - Darkone

 
Post new topic   Reply to topic    Wolf Planet Forum Index -> Coding Alliance
View previous topic :: View next topic  
Author Message
Deathshead
Corporal


Joined: 18 Feb 2005
Posts: 87

PostPosted: Wed Apr 06, 2005 11:36 am    Post subject: [code] Display Mapname at beginning of Level - Darkone Reply with quote

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
_________________
Myspace
VampireFreaks
Music4Life
Wolfing Time
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Conner94
Moderator


Joined: 15 Jan 2005
Posts: 249
Location: ???

PostPosted: Sat Jul 23, 2005 1:10 am    Post subject: Reply with quote

So, not while it is loading, but at the begining of each level? Cool! Very Happy
_________________
My Wolfenstein Website:
http://www.wolf94.cjb.net

Status: Falling apart over a product I ordered that is taking forever to arrive.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Wolf Planet Forum Index -> Coding Alliance All times are GMT
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Chronicles phpBB2 theme by Jakob Persson (http://www.eddingschronicles.com). Stone textures by Patty Herford.