Actor that can only be harmed by rockets?

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
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Actor that can only be harmed by rockets?

Post by Gutawer »

Basically, I am trying to make a cracked wall that you fire a rocket at (or blow up a barrel near, etc.) to break it. I know how to code the cracking wall part, but I need to create an actor that can only take damage from explosions so that I can attach the script to this actor's death. Is there anyway to do this without modifying the weapons' DECORATE (as I want to keep mod compatibility)?

Thanks in advance.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: Actor that can only be harmed by rockets?

Post by DoomRater »

Go with the barrel idea. Make sure the barrel does a unique type of damage when it explodes, but the caveat is that you could use any weapon to detonate it really.

I took a quick peek at the weapons to see if rockets did a type of Explosive damage, but didn't see any tags for it.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Actor that can only be harmed by rockets?

Post by InsanityBringer »

+VULNERABLE on the actor taking damage is what you want. Do not flag them as +SHOOTABLE
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: Actor that can only be harmed by rockets?

Post by DoomRater »

So only radius damage injures it that way? I'll remember that one...
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Re: Actor that can only be harmed by rockets?

Post by Gutawer »

InsanityBringer wrote:+VULNERABLE on the actor taking damage is what you want. Do not flag them as +SHOOTABLE
This worked fantastically, thanks!
Locked

Return to “Editing (Archive)”