![]() Now, let’s move on to the inventory item. Jack that up if you want more cans per pickup. The variable to change in the pickup defaults is AmountToAdd. You get 10 bucks by default with each pickup. So when you pick up a single can, you’ll see one in your inventory. Wer’e going to only have one pickup equal one spray paint can. A ‘book dropping’ noise is so specific, we can probably pick something more generic or better fitting.īounceSound=Sound'MiscSounds. ![]() PickupMessage="You picked upa Spray Paint can."Īnd finally, let’s pick a different dropping noise. Next we need to link our new pickup to the new inventory item like this:Īlso let’s make the pickup text message more appropriate: StaticMesh=StaticMesh' Timb_mesh.janitorial_supply.aerosol_timb' Let’s change the static mesh of the our new pickup to this: I found this by simply looking through the static meshes in the various packages that come with POSTAL 2. Since we’re making this a spray paint can, let’s use a model already from the game. StaticMesh=StaticMesh''īounceSound=Sound'' PickupMessage="You picked up your Library Book." Here’s the hierarchy of our new powerup:Įngine.Pickup> Postal2Game.P2PowerupPickup> Postal2Game.OwnedPickup> SuperPack.SprayPaintPickup For the most part all powerup pickups extend from this. Paste it into SuperPack\Classes and rename it to SprayPaintPickup.uc. We’re not going to extend from this file-we’ll extend from its parent, but it’s a good simple template to start from. Let’s copy something simple like Inventory\Classes\BookPickup.uc. If you want better assets you’ll have to make them! There will be two parts to this object-the pickup and the inventory item. Again, all the art assets used here will be from the game even though some of them won’t make perfect sense. The new item we’ll be making is an aerosol can of spray paint or the SprayPaint for short. I call it a pickup, but the basics of this could easily be followed for adding a new errand pickup also. Following each one in order should greatly improve your learning experience.Įven though we’ve already added a whole new weapon in the past three tutorials, I thought it’d be fun and useful to add a new powerup pickup. If you jump ahead to a later tutorial, I will be discussing things from earlier tutorials that you may not recognize. These tutorials are to be completed in succession with one another. ![]() Using these tutorials with older code may cause you problems. You must be running the new Share the Pain version of POSTAL 2 for any of this to be relevant. Tutorial originally released on Running With Scissor's Postal website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |