rott/kf_sources/ScrnTestGroundsUtil/Classes/TriggerSE.uc
2026-07-14 20:27:09 +07:00

18 lines
645 B
Ucode

//=============================================================================
// TriggerSE: checks DamageType for ClassProximityType
//=============================================================================
class TriggerSE extends Trigger;
function TakeDamage( int Damage, Pawn instigatedBy, Vector hitlocation,
Vector momentum, class<DamageType> damageType, optional int HitIndex)
{
if ( ClassProximityType != none && !ClassIsChildOf(damageType, ClassProximityType) )
return;
super.TakeDamage(Damage, instigatedBy, hitlocation, momentum, damageType, HitIndex);
}
defaultproperties
{
}