Weapon Mod Add-On

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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!)
Post Reply
Ninlhil
Posts: 52
Joined: Mon Mar 02, 2015 11:47 pm

Weapon Mod Add-On

Post by Ninlhil »

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?
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: Weapon Mod Add-On

Post by Jarewill »

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":

Code: Select all

#include "actors/pistol.txt"
#include "actors/shotgun.txt"    
And so on.

Here is an example file structure:
Spoiler:
peewee_RotA
Posts: 407
Joined: Fri Feb 07, 2014 6:45 am

Re: Weapon Mod Add-On

Post by peewee_RotA »

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.
User avatar
m8f
 
 
Posts: 1464
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)
Contact:

Re: Weapon Mod Add-On

Post by m8f »

Ninlhil
Posts: 52
Joined: Mon Mar 02, 2015 11:47 pm

Re: Weapon Mod Add-On

Post by Ninlhil »

Thanks for the info
Post Reply

Return to “Scripting”