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] Adding the SoD Ammo Box to Wolf

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


Joined: 17 Jan 2005
Posts: 36
Location: United States

PostPosted: Mon Jan 17, 2005 3:56 pm    Post subject: [Code] Adding the SoD Ammo Box to Wolf Reply with quote

Hello, welcome to my third tutorial here at WolfPlanet Forums
In this tutorial, I will be showing you how to add the Spear of Destiny 25 Ammo Box

You may need to adjust this tutorial based on your Game.

Read on.

Step 1: Open up WL_AGENT.C and do a search for: bo_25clip

You should see this:
Code:
#ifdef SPEAR
   case   bo_25clip:
      if (gamestate.ammo == 99)
        return;

      SD_PlaySound (GETAMMOBOXSND);
      GiveAmmo (25);
      break;
#endif


Modify it to look like this:
Code:
//#ifdef SPEAR
   case   bo_25clip:
      if (gamestate.ammo == 99) // or your ammo limit
        return;

      SD_PlaySound (BONUS1SND); // Valid Wolf Snd
      GiveAmmo (25); // or to your likings
      break;
//#endif


Remember to change the sound to a valid wolfenstein one, GETAMMOBOXSND is not in Wolf.
#ifdef SPEAR and #endif are commented out

Step 2: Open WL_ACT1.C and pick a static sprite to be the ammo box
I chose the Puddle to be the Ammo Box, you can choose what ever you want or you can add a object if you know how.

Code:
{SPR_STAT_0},   // puddle

becomes
Code:
{SPR_STAT_0,bo_25clip},          // puddle


Compile and Link up! The puddle should now be an ammo box object.
_________________
~Kyle Albert
Check out my TC: Click Here and Forum: Click Here
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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.