(Old code tutorial) Adding the SoD Ammo Box to Wolf from Wolf Planet forum

View previous topic View next topic Go down

(Old code tutorial) Adding the SoD Ammo Box to Wolf from Wolf Planet forum

Post by Officer-M. John (Admin) on Thu Dec 01, 2016 11:53 am

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.

Writte by KyleRTCW (Kyle Albert) on Mon Jan 17, 2005 3:56 pm
avatar
Officer-M. John (Admin)
Admin

Posts : 328
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