Wings of Wrath that expires in Hexen

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
Xyzzy01
Posts: 15
Joined: Tue Dec 01, 2015 12:44 am
Location: Entrance to the Hall of Unpleasantness

Wings of Wrath that expires in Hexen

Post by Xyzzy01 »

I'm not at all experienced with using the likes of DECORATE or whatnot, though I imagine that's what it takes and am willing to learn how to use it. :mrgreen: How does one make the wings of wrath powerup in Hexen last for a limited time like it does in Heretic?
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm
Contact:

Re: Wings of Wrath that expires in Hexen

Post by Arctangent »

As far as I can tell, there's no MAPINFO option that allows for turning off InfiniteFlightPowerup, so you're going to have to use ZScript and make a new Powerup class that inherits from PowerFlight and overrides its DoEffect function with a replacement that increments EffectTics regardless of the map's flags. Afterwards, you'd just need to make a replacement of ArtiFly ( the internal name for the Wings ) that both inherits from it and swaps out its Powerup.Type for your new Powerup class.

If you need some step-by-step guidance on how to do some basic ZScript stuff, well, someone other than me will do it a lot better.
User avatar
Xyzzy01
Posts: 15
Joined: Tue Dec 01, 2015 12:44 am
Location: Entrance to the Hall of Unpleasantness

Re: Wings of Wrath that expires in Hexen

Post by Xyzzy01 »

Ah, ok; I'll look into ZScript then. Thanks for pointing me in the right direction!
Post Reply

Return to “Scripting”