[Tutorial] Random Projectile Shots and Remote Textures

Posts 1–11 of 11 · Page 1 of 1
[Tutorial] Random Projectile Shots and Remote Textures
Although it's very simple to do both of these things, I thought it would be cool to post how to since no one else has yet :P. First, we'll start with remote textures(Lazy way of adding sprites)
Step 1: Go to http://www.realmofthemadgod.com/draw.html to create your own sprite, you might've used this before, it's well known.
Step 2: Once you're done with the sprite save it and where it says tag you're going to want to type in anything, but I usually just take my hand and whack a few times at the keyboard and get random letters and numbers xD copy the tag then submit.
Step 3: Once you have the tag copied type this
Code:
<RemoteTexture>
<Instance>draw</Instance>
<Id>Type tag here</Id>
</RemoteTexture>
Replace that remote texture with your other code that looks something like this.
Code:
<Texture>
<File>lofiObj6</File>
<Index>0xd8</Index>
</Texture>
Done! You should now have a remote texture, no need to add another sprite in the client


Next is Random Projectile Shots.
Step 1: Go to your projectile that you want to have random shots in addition.xml
Step 2: Copy this code
Code:
<RandomTexture>
      <Texture>
        <File>lofiObj3</File>
        <Index>0x250</Index>
      </Texture>
      <Texture>
        <File>lofiObj3</File>
        <Index>0x251</Index>
      </Texture>
      <Texture>
        <File>lofiObj3</File>
        <Index>0x252</Index>
      </Texture>
    </RandomTexture>
Replace it with something that'll look like this
Code:
<Texture>
        <File>lofiObj3</File>
        <Index>0x252</Index>
      </Texture>
Step 3: Modify the random textures to your liking or add more textures in the random texture code by copying an pasting the code above.
You're done! You should now have random projectiles to appear when you shoot a weapon, remember the weapon's objectid has to be the name of the projectile or it won't work.
Hasn't this tutorial been done before? My memory's a bit foggy. Also, the title is a bit misleading; it should be "Random Projectile Textures", not "Random Projectiles", because this method doesn't actually allow for utilization of random effects, speed, and damage in which actually randomizing the projectiles does.
Quote Originally Posted by Stellar Spark View Post
Hasn't this tutorial been done before? My memory's a bit foggy. Also, the title is a bit misleading; it should be "Random Projectile Textures", not "Random Projectiles", because this method doesn't actually allow for utilization of random effects, speed, and damage in which actually randomizing the projectiles does.
No but it can be found in almost every source I believe
I've tried looking for a tutorial on it and the only one I found is marcelino's tut which is for hosting your own sprite instead of just using the default one but same thing anyway. Also, sorry for the title :P
Quote Originally Posted by Omniraptor View Post
I've tried looking for a tutorial on it and the only one I found is marcelino's tut which is for hosting your own sprite instead of just using the default one but same thing anyway. Also, sorry for the title :P
Thank's for this tutorial. Good Contribution.
Quote Originally Posted by marceliino View Post
Thank's for this tutorial. Good Contribution.
No problem
OMG, THANKS SOOO MUCH, this was so helpful.
Quote Originally Posted by Cokeacola296 View Post
OMG, THANKS SOOO MUCH, this was so helpful.
Your welcome .
lol //10 chars
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?