You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In X2Action_ApplyWeaponDamageToUnit, the following code runs which is responsible for feeding the damage type to the flyover:
//Set up a damage type
if (WeaponTemplate != none)
{
DamageTypeName = WeaponTemplate.BaseDamage.DamageType;
if (DamageTypeName == '')
{
DamageTypeName = WeaponTemplate.DamageTypeTemplateName;
}
}
else if (TickContext != none || WorldEffectsContext != none)
{
for (DmgIndex = 0; DmgIndex < UnitState.DamageResults.Length; ++DmgIndex)
{
if (UnitState.DamageResults[DmgIndex].Context == StateChangeContext)
{
LookupEffect = UnitState.DamageResults[DmgIndex].SourceEffect.EffectRef;
SourceEffect = class'X2Effect'.static.GetX2Effect(LookupEffect);
DamageEffect = SourceEffect;
if (SourceEffect.DamageTypes.Length > 0)
DamageTypeName = SourceEffect.DamageTypes[0];
m_iDamage = UnitState.DamageResults[DmgIndex].DamageAmount;
break;
}
}
}
else
{
DamageTypeName = class'X2Item_DefaultDamageTypes'.default.DefaultDamageType;
}
This code 'prioritises' the weapon's base damage type & if it isn't able to find one, then looks for the damage type of the effect. It would be useful, for the purposes of effects which apply pure fire/poison/psi damage for the effect damage types to be fed into the flyover even when the effect is directly bound to a weapon.
The text was updated successfully, but these errors were encountered:
For example something like this still visualises as 'base damage' in the flyover despite the damage type of the applying effect being forced differently:
In X2Action_ApplyWeaponDamageToUnit, the following code runs which is responsible for feeding the damage type to the flyover:
This code 'prioritises' the weapon's base damage type & if it isn't able to find one, then looks for the damage type of the effect. It would be useful, for the purposes of effects which apply pure fire/poison/psi damage for the effect damage types to be fed into the flyover even when the effect is directly bound to a weapon.
The text was updated successfully, but these errors were encountered: