Jump to content
  • 0

Giving sprites to new weapons


0o0[ULTIM4TE]L1FE[F0RM]0o0

Question

Hi, earlier today I learned how to put new weapons in a WAD, someone teached me how to and the weapons functionality is perfectly working, it's pretty awesome, it's basically a chaingun with the only exception that it shoots shells instead of bullets, which is an unbelievably deadly weapon which is useful against giant hordes of really strong, evil and tanky demons. However, this is NOT the regular chaingun, it's actually on a new slot, however it uses the chainguns sprites which I don't really like. I made own sprites for this new weapon because this deadly weapon shouldn't just look like a weapon that's already in the game and that is also far weaker than it is.

 

We have used Decorate to do this, by the way, and Slade, if it helps. And here are the sprites just in case it's needed or something: (I'll make weapon lights if needed also)

My question is how I can apply these new sprites I made to the new weapon that is added to my Wad now.

CHSTA0.png

CHSTB0.png

Edited by 0o0[ULTIM4TE]L1FE[F0RM]0o0

Share this post


Link to post

28 answers to this question

Recommended Posts

  • 0
16 hours ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

My question is how I can apply these new sprites I made to the new weapon that is added to my Wad now

Assign these sprites the corresponding names you used in your DECORATE definition, then insert these sprites into your wad using SLADE.

Share this post


Link to post
  • 0

I don't really know how to "assign corresponding names" to anything and I don't know how to insert sprites into a WAD, I have inserted just normal textures before though. Do you have any resources like a tutorial or something? The Decorate text file was made for me by someone else

Share this post


Link to post
  • 0
7 hours ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

I don't really know how to "assign corresponding names" to anything and I don't know how to insert sprites into a WAD

What names have you used in your DECORATE definitions? Post your code and we can help you.

 

For (G)ZDooM, you simply insert your sprites anywhere into the wad using SLADE in the same way that you insert textures. However, for better resource management, it might be better to use folders in a pk3 format.

Share this post


Link to post
  • 0

CHGG and CHGF should be the sprite names, and A and B are the frames, since you're using .wad you'll need to place your sprites between S_START and S_END markers for GZDoom. Here's an example of how it's done, If something looks off ingame it'll most likely be the sprites offsets, you'll be able to fix it from within Slade if you use the Modify offsets option. pk3 format would be more convenient and easier to work with depending on what you're trying to do, as ReX suggested.

 

AutoShotgun.zip

Edited by sluggard

Share this post


Link to post
  • 0
4 hours ago, sluggard said:

CHGG and CHGF should be the sprite names, and A and B are the frames, since you're using .wad you'll need to place your sprites between S_START and S_END markers for GZDoom. Here's an example of how it's done, If something looks off ingame it'll most likely be the sprites offsets, you'll be able to fix it from within Slade if you use the Modify offsets option. pk3 format would be more convenient and easier to work with depending on what you're trying to do, as ReX suggested. 

 

AutoShotgun.zip

No, I don't want to replace the chaingun, I want to put new sprites for a new weapon inside the WAD. If the name would be CHGG, the chain gun would also look like the auto-shotgun which is utterly and completely fatal.

Share this post


Link to post
  • 0
13 minutes ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

No, I don't want to replace the chaingun, I want to put new sprites for a new weapon inside the WAD. If the name would be CHGG, the chain gun would also look like the auto-shotgun which is utterly and completely fatal.

Change the first 4 letters in both the DECORATE and the sprite lumps to something else

Share this post


Link to post
  • 0
6 minutes ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

No, I don't want to replace the chaingun, I want to put new sprites for a new weapon inside the WAD. If the name would be CHGG, the chain gun would also look like the auto-shotgun which is utterly and completely fatal.

Looks like nobody's explained how weapons work to you in DECORATE yet, so I'll try to explain it best I can. I don't know much about DECORATE, so hopefully my half-assed explanation will bring someone more experienced to explain it better. Give me a while please.

 

 

Share this post


Link to post
  • 0
Just now, thelazyqdude said:

Looks like nobody's explained how weapons work to you in DECORATE yet, so I'll try to explain it best I can. I don't know much about DECORATE, so hopefully my half-assed explanation will bring someone more experienced to explain it better. Give me a while please. 

 

 

Oh, alright, it's really awesome of you to do this for me dude! Much thanks!!

Share this post


Link to post
  • 0
4 minutes ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

What is a sprite lump?`Which first letters? The file name of the decorate document or the first letters in the text file?

The graphic lumps/entries when you open the wad in Slade, and CHGG and CHGF in DECORATE

Edited by sluggard

Share this post


Link to post
  • 0

Here you go.screenieshot.png.172caec92cf9190d1fc1ba71fe171f66.png

screenieshot2.png.2bda185cc978dd79763b821a2493119d.png

 

Probably got something wrong, so anyone who knows this better than I do (80% of the people on this site) feel free to come forth and share thee knowledge.

 

EDIT: I got something wrong. Sprite names can only be 4 characters long becuz angles, so CUSTOM would be a wrong referencing. Sorry!

 

You'll also want to see this article before you get confused on how actor sprites work: https://zdoom.org/wiki/Sprite

Any more questions, feel free to ask.

Edited by thelazyqdude

Share this post


Link to post
  • 0
3 minutes ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

Okay so I did it now like you did it and the sprite still looks like the normal chaingun

What commands are you doing? Unfortunately, you aren't automatically given all weapons asap. There's many ways to do it and even when you get the weapon into your inventory, you'd have to define what weaponslot it's actually in. Read this article and more: https://zdoom.org/wiki/Creating_new_player_classes

 

Yeah, more pain to go through. Sorry bud.

 

Ideally you could just make a new actor of the player, inherit from the OG one and add your custom stuff. You'd have to redefine all of the Player.WeaponSlot things, and you may want to change Player.StartItem to get it ASAP. This article looks like it'd be of use to you as well: https://zdoom.org/wiki/Classes:DoomPlayer

Edited by thelazyqdude

Share this post


Link to post
  • 0

You can download the exactly same wad that I gave to you from the thread where you asked for the custom chaingun. Other than that I really think that the answer from thelazyqdude is the best answer that you can possibly have when asking this specific question. By the way I am talking about this specific answer:

52 minutes ago, thelazyqdude said:

Probably got something wrong, so anyone who knows this better than I do (80% of the people on this site) feel free to come forth and share thee knowledge.

 

EDIT: I got something wrong. Sprite names can only be 4 characters long becuz angles, so CUSTOM would be a wrong referencing. Sorry!

 

You'll also want to see this article before you get confused on how actor sprites work: https://zdoom.org/wiki/Sprite

Any more questions, feel free to ask.

Simply import your sprites inside your wad using Slade, give them a name (Cugga0 - it's a dumb name for custom chaingun a0) and then modify the names of the sprites in my code changing them with the names of your own sprites.

 

If you don't see any changes it is probably because you have changed only the sprites name of the fire state, so the sprites will change only when you fire the weapon. If you want to change every sprite you have to modify every single sprite in the chaingun code that you can easily find by googling "chaingun zdoom wiki" and looking at the decorate section of that page. Just be sure to leave the fire code unchanged (other than the sprite names of course) or the weapon will not work anymore.

Simply copy anything else in the decorate lump that I gave to you and change the sprites names in such a way that they respect your own sprites names.

Share this post


Link to post
  • 0
4 hours ago, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

I deleted a bunch of files on my desktop because I had been kind of trippin' yesterday and the wad file was one of them

You can recover deleted files by looking inside your Recycle Bin. (Unless you've intentionally deleted them from your Recycle Bin.)

 

Also, based on your level of understanding of modding via DECORATE, it appears that you might not be ready to create custom weapons just yet. This is not a criticism, merely an observation. Study Wild Weasel's tutorials, especially the basics of gun-making and new sprites and how they work for guns.

Share this post


Link to post
  • 0

Oh. Well, I do use Windows so I'm not sure of on my Windows, it's possible to somehow undelete things, I've seen that before in Windows 3, they have a program called Undel there and I'm note sure if the newer versions have it. But I'm not that good with PC's anyway. Well, I also think that maybe I'm not ready for that complicated stuff yet, but I'm going to keep the two sprites I made because I like them. And also thanks for the resources, I bookmarked them all for later!

Share this post


Link to post
  • 0
On 2/22/2021 at 9:25 PM, 0o0[ULTIM4TE]L1FE[F0RM]0o0 said:

I do use Windows so I'm not sure of on my Windows, it's possible to somehow undelete things

Usually, the Recycle Bin icon is readily visible in the upper left corner of your computer's desktop. Double-click on the icon and it will open the Recycle Bin just like a Windows folder. You can search for your deleted files there. If you remember the date you deleted your files you can sort the deleted files by date and go straight to the date of your deletion.

Share this post


Link to post
  • 0

Yeah, that's what it also looks like for me except I have a slightly different position and sizes, like those icons are pretty giant. And the screenshot looks slightly distorted, like, it's kinda weird. But you probably already noticed by yourself. Well, I usually empty the waste bin so usually it's empty most of the time.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...