(Old code tutorial) Adding the SoD Ammo Box to Wolf from Wolf Planet forum
Page 1 of 1 • Share •
(Old code tutorial) Adding the SoD Ammo Box to Wolf from Wolf Planet forum
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:
Modify it to look like this:
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.
becomes
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
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
Officer-M. John (Admin)- Admin
- Posts : 377
Join date : 2015-10-02
Age : 20

» Pup Code
» "Handy Dandy" Tutorial
» Code Lyoko Holiday Collaboration 2011 - SUBMISSIONS
» Unpopular Code Lyoko opinions?
» Code Lyoko Facebook Game
» "Handy Dandy" Tutorial
» Code Lyoko Holiday Collaboration 2011 - SUBMISSIONS
» Unpopular Code Lyoko opinions?
» Code Lyoko Facebook Game
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum