Hi, I want to add a melee weapon to my mod and I want it to be affected by berserk power up. It has both a melee and a secondary ranged attack.
Is it possible to do it? I remember a friend of mine doing this for Edge but dunno if it's possible here.
I want a custom weapon to be affected by berserk
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!)
- Vegeta(dw)
- Posts: 366
- Joined: Fri May 09, 2008 10:23 am
Re: I want a custom weapon to be affected by berserk
Check the last example on the A_CustomPunch wiki page.
Berserk gives the player a powerup called PowerStrength.
You can check for that powerup using A_JumpIfInventory and jump to a berserked state.
Berserk gives the player a powerup called PowerStrength.
You can check for that powerup using A_JumpIfInventory and jump to a berserked state.