KyleRTCW Moderator

Joined: 17 Jan 2005 Posts: 36 Location: United States
|
Posted: Mon Jan 17, 2005 3:56 pm Post subject: [Code] Adding the SoD Ammo Box to Wolf |
|
|
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 |
|