Weapon Mod Add-On
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Weapon Mod Add-On
I'm still pretty new at the programming side of all this, and I'm trying to figure out how to create a .pk3 that changes the appearances and some functions of the weapons. Do I only need to have the new images and modified decorate files in their proper directories in the .pk3 and then make sure the load order is correct?
Re: Weapon Mod Add-On
When making a .pk3, you should create a structure.
For example: Create a "sprites" and "actors" folders in the .pk3
In the "sprites" folder you can place your sprites and in the "actors" folder you can place your weapon DECORATE files.
However, those DECORATE files won't load by themselves, so you will have to create a DECORATE file outside of any folders that contains "includes":
And so on.
Here is an example file structure:
For example: Create a "sprites" and "actors" folders in the .pk3
In the "sprites" folder you can place your sprites and in the "actors" folder you can place your weapon DECORATE files.
However, those DECORATE files won't load by themselves, so you will have to create a DECORATE file outside of any folders that contains "includes":
Code: Select all
#include "actors/pistol.txt"
#include "actors/shotgun.txt"
Here is an example file structure:
Spoiler:
-
- Posts: 407
- Joined: Fri Feb 07, 2014 6:45 am
Re: Weapon Mod Add-On
This is very well put together and succinct. Is there a wiki page with this information? I think it would make a great little article there.