ReducedDamageType of UnrealI.Queen

Tutorials and discussions about Mapping - Introduce your own ones!
User avatar
SilverSound
Adept
Posts: 344
Joined: Fri Nov 06, 2015 10:12 am
Personal rank: Curious
Location: St. Cloud, Florida

Re: ReducedDamageType of UnrealI.Queen

Post by SilverSound »

Barbie wrote:
SilverSound wrote:The string supposed to be in there is this:

Code: Select all

 ReducedDamageType='shot'
Thanks for reply. May I ask from where you got this information?

I'll PM you the info.
"Woah what?! I wish I was recording that...."
Red_Fist
Godlike
Posts: 2166
Joined: Sun Oct 05, 2008 3:31 am

Re: ReducedDamageType of UnrealI.Queen

Post by Red_Fist »

Isn't this like for pawns that have shields, the amount of reduced damage while holding a shield ?
Binary Space Partitioning
User avatar
Barbie
Godlike
Posts: 2808
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: ReducedDamageType of UnrealI.Queen

Post by Barbie »

Red_Fist wrote:Isn't this like for pawns that have shields, the amount of reduced damage while holding a shield ?
Yes, the combination of ReducedDamageType and ReducedDamagePct reduces (or increases, if ReducedDamagePct<0) the damage a pawn takes. See function Pawn.TakeDamage:

Code: Select all

if ( [...] ReducedDamageType == damageType)
	actualDamage = float(actualDamage) * (1 - ReducedDamagePct);
The default Slith for example have 'Corroded' as ReducedDamageType and ReducedDamagePct==1 so that they are not hurt in a SlimeZone nor by shooting with UT_BioRifle.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply