Specific damagetype actor not working!

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
Squishybrick
Posts: 190
Joined: Sat Jan 22, 2011 7:11 pm

Specific damagetype actor not working!

Post by Squishybrick »

I'm working on a special switch that can only be activated via killing an invisible "Switch button" actor, that can only be killed by one kind of damagetype..
Basically it's like a class-specific switch to open up a door, that only a certain class can open/use.

But for some reason the darned thing won't die!.. I can't tell if there's something wrong with the button, or how I did the damagetype, check for yourselves..

The weapon/projectile [Note that I tried using both a projectile AND a custommelee attack and neither worked..]
Spoiler:
The "Switch button" data

Spoiler:
I'm trying to make it to where the switch only dies by the "Tank" damagetype property, but there's something wrong I can't figure out here..
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49232
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Specific damagetype actor not working!

Post by Graf Zahl »

DamageFactor for 'Normal' applies to all unspecified damage types - and you didn't specify a damage factor for 'Tank' so it gets substituted by the one for 'Normal'.
User avatar
Squishybrick
Posts: 190
Joined: Sat Jan 22, 2011 7:11 pm

Re: Specific damagetype actor not working!

Post by Squishybrick »

Thank you, I was waiting all morning for an answer.. (I'm pulling an all-dayer to correct my sleeping schedule)
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Specific damagetype actor not working!

Post by Blue Shadow »

You can use [wiki]CheckWeapon[/wiki] to achieve this, I believe.
User avatar
Squishybrick
Posts: 190
Joined: Sat Jan 22, 2011 7:11 pm

Re: Specific damagetype actor not working!

Post by Squishybrick »

New problem, how do I give a melee weapon a damagetype without having to use A_Custommelee, which makes the player forcefully turn towards the first "Guard" he killed.. (For some reason this isn't effected towards personnel, just the first GUARD he kills)

Is it a problem with the weapon, or the guard/personnel?

And if all else fails, the invisible melee projectile can still be used as a backup, but I was wondering if there was a better way..
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Specific damagetype actor not working!

Post by Ryan Cordell »

I think you can give the puff a specific damagetype. Should work well.
User avatar
Squishybrick
Posts: 190
Joined: Sat Jan 22, 2011 7:11 pm

Re: Specific damagetype actor not working!

Post by Squishybrick »

But puffs don't damage the monster, plus they only appear AFTER the WALL has been hit.. The blood sprite appears for the monster.. .. Unless.. .. Is a blood sprite just a different looking puff?..

... .... Am I missing something obvious?..
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Specific damagetype actor not working!

Post by InsanityBringer »

Even if the puff isn't spawned, properties are still read from it as normal and all of that.
User avatar
Squishybrick
Posts: 190
Joined: Sat Jan 22, 2011 7:11 pm

Re: Specific damagetype actor not working!

Post by Squishybrick »

Soo... Are you saying if I change the damagetype of the puff, that will somehow change the damagetype of the punch that uses it?..
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Specific damagetype actor not working!

Post by InsanityBringer »

yes, exactly.
User avatar
Squishybrick
Posts: 190
Joined: Sat Jan 22, 2011 7:11 pm

Re: Specific damagetype actor not working!

Post by Squishybrick »

Wierd... .. ... Well it worked, so problem solved I guess.

Thanks!
Locked

Return to “Editing (Archive)”