View Full Version: [Code] Adding the SoD Ammo Box to Wolf

wolfers >>Coding Alliance >>[Code] Adding the SoD Ammo Box to Wolf


<< Prev | Next >>

KyleRTCW- 01-17-2005
[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: #ifdef SPEAR case bo_25clip: if (gamestate.ammo == 99) return; SD_PlaySound (GETAMMOBOXSND); GiveAmmo (25); break; #endif Modify it to look like this: //#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. {SPR_STAT_0}, // puddle becomes {SPR_STAT_0,bo_25clip}, // puddle Compile and Link up! The puddle should now be an ammo box object.


Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.