[Fixed] [Recently?] DamageFactor "Normal" not working

Bugs that have been investigated and resolved somehow.

Moderator: Developers

[Recently?] DamageFactor "Normal" not working

Postby Xtyfe » Wed Jan 25, 2012 5:14 pm

If I use DamageFactor "Normal" 0.0 on armor, I still get damaged by stuff without a damagetypes in my mod, such as monster melee attacks and lostsouls but not hitscans.

I swear this used to work, any willing to test?
Last edited by Xtyfe on Wed Jan 25, 2012 9:12 pm, edited 1 time in total.
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Re: [Recently?] DamageFactor "Normal" not working

Postby Xtyfe » Wed Jan 25, 2012 9:11 pm

I fixed my problem for both melee attacks and lost souls buy giving my armor the damagefactor "melee"
It seems that i misunderstood what "normal" does, or is that infact still a bug?
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Re: [Recently?] DamageFactor "Normal" not working

Postby NeuralStunner » Thu Jan 26, 2012 2:52 pm

"Normal" only applies to attacks that have no type.

Have you tried using DamageFactor without a type specificed at all?
User avatar
NeuralStunner
O'Neill with it.
 
Joined: 21 Jul 2009
Location: The Colonies

Re: [Recently?] DamageFactor "Normal" not working

Postby Xtyfe » Thu Jan 26, 2012 2:55 pm

I thought about it, but i wondered if that would cancel out the other damagetypes.
Xtyfe
 
Joined: 14 Dec 2007
Location: Kitchener, Ontario

Re: [Recently?] DamageFactor "Normal" not working

Postby DBThanatos » Wed Feb 01, 2012 3:35 am

NeuralStunner wrote:"Normal" only applies to attacks that have no type.


As far as I understood, that is not correct. "Normal" should protect against all damagetypes not included in the definition of the armor.

Source
User avatar
DBThanatos
Guns, explosions, gore.
 
Joined: 14 Apr 2006
Location: in "the darkness that lurks in our mind"

Re: [Recently?] DamageFactor "Normal" not working

Postby ChronoSeth » Wed Feb 01, 2012 1:27 pm

In the same thread, it's explained that "Normal" does in fact only apply to attacks with no damage type.

Though clarification from someone who knows exactly how this stuff works would be nice.
User avatar
ChronoSeth
You are totally unique... just like everyone else.
 
Joined: 05 Jul 2010

Re: [Recently?] DamageFactor "Normal" not working

Postby FDARI » Thu Feb 02, 2012 8:20 am

Graf states very clearly that
---
DamageFactors "Normal", 0
DamageFactors "AllowedDamageTypeForThisMonster", 1.0 or whatever
---
means that the only damage type that does damage is "AllowedDamageTypeForThisMonster", while all other types are caught by the "Normal" type, and he says that he updated the code to make it actually work that way. While it is explained/asserted otherwise at locations in the thread, the aggregate of anecdotes, guesses, zdoom updates, assertions, corrections and counter-corrections is that "Normal" applies to any damage type that does not have a specific factor assigned.

You can always create a test (an actor that receives damage only from fire -- DamageFactor "Fire", 1.0 -- DamageFactor "Normal", 0 -- , a weapon that does fire damage and a weapon that does ice damage - and a fist or similar generic damage source to test untyped damage).
User avatar
FDARI
Bronies eunt domus
 
Joined: 03 Nov 2009

Re: [Recently?] DamageFactor "Normal" not working

Postby DBThanatos » Fri Feb 03, 2012 4:06 am

ChronoSeth wrote:In the same thread, it's explained that "Normal" does in fact only apply to attacks with no damage type.

Not really. That's wrong. I wasnt linking to the thread. Instead, I was linking to the specific post...

ChronoSeth wrote:Though clarification from someone who knows exactly how this stuff works would be nice.

...where Graf Zahl (a certified developer (as in "Hi, Im purple")) clarifies how it should work. Just like FDARI did.

And to be more specific
Graf Zahl wrote:DamageFactor "Normal" is supposed to protect against all types of damage that don't have a specific factor assigned.
User avatar
DBThanatos
Guns, explosions, gore.
 
Joined: 14 Apr 2006
Location: in "the darkness that lurks in our mind"

Re: [Recently?] DamageFactor "Normal" not working

Postby randi » Thu Mar 22, 2012 6:07 pm

Fixed. Apparently, it was deliberate that this did not work with armor, though I don't understand the justification, since it's counter to everything else that uses damage factors.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest