ApplyDamageFactor
Jump to navigation
Jump to search
Note: This should not be confused with ApplyDamageFactors |
native clearscope int ApplyDamageFactor(Name damagetype, int damage)
Contents
Usage
Calculates how much the given damage value should be modified if the specified damage type is applied to it, in accordance with the damage factor designated for that damage type.
Note, this function only performs calculations but does not deal or modify any damage. For that see DamageMobj and ModifyDamage.
Parameters
- Name damagetype
- The name of the damage type whose factor should be applied to damage.
- int damage
- The amount of damage that should be modified by the factor for the specified damagetype.
Examples
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |