Translating a weapon to use the player's color

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!)
User avatar
PandaDoomer
Posts: 107
Joined: Sun Apr 12, 2015 9:05 pm
Location: USA

Translating a weapon to use the player's color

Post by PandaDoomer »

Just a little question, is there anyway to translate a weapons colors to use the same color that the player has chosen? I want to do this for some melee kick sprites. They already use the same colors as the base player sprite.
User avatar
Endie
Posts: 227
Joined: Thu Mar 16, 2017 7:34 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Somewhere in the void

Re: Translating a weapon to use the player's color

Post by Endie »

I guess no
i was reading the ZDoom's wiki page about the pallete lump, and there says that palletes aren't applied to hud-weapon sprites. So, you will need to recolor it by yourself, and then replace the old-color sprites with your new ones

Return to “Scripting”