I want a custom weapon to be affected by berserk

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
User avatar
Vegeta(dw)
Posts: 366
Joined: Fri May 09, 2008 10:23 am

I want a custom weapon to be affected by berserk

Post by Vegeta(dw) »

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

Re: I want a custom weapon to be affected by berserk

Post by Jarewill »

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.
Post Reply

Return to “Scripting”