How do I go about changing the damage caused by a melee custom weapon? I have a melee weapon that get upgraded to iron later on and is meant to cause extra damage than its plastic earlier version. How do I change the damage the melee weapon causes in DECORATE?
Thanks in advance.
Damage by custom Melee Weapon?
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!)
-
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
-
- Posts: 41
- Joined: Wed Mar 29, 2017 7:05 am
Re: Damage by custom Melee Weapon?
You need to have an inventory item for the upgrade, then use A_JumpIfInventory in the beginning of the regular attack state to check if have the upgrade and then jump to the upgraded attack state.