[Solved] PowerUp protecting from custom damge type?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

[Solved] PowerUp protecting from custom damge type?

Post by Tormentor667 »

Hey guys, currently having some trouble to find out how to make a powerup that protects against custom damage types, e.g. a custom protective suite that only protects against "CustomDamage". How can I do that?
Last edited by Tormentor667 on Fri Dec 16, 2016 2:38 pm, edited 1 time in total.
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

Re: [HowTo?] PowerUp protecting from custom damge type?

Post by Blue Shadow »

You use [wiki=Classes:PowerProtection]PowerProtection[/wiki]:

Code: Select all

actor PowerSpecProtection : PowerProtection
{
    DamageFactor "CustomDamage", 0
} 
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: [HowTo?] PowerUp protecting from custom damge type?

Post by Tormentor667 »

Thanks kindly Blue Shadow
Locked

Return to “Editing (Archive)”