for the ProjectileData::Damage function, it is not announcing that the bank has been robbed. Here is the code:
function TimeBombFinalExplosionProjectile::damage(%projectile,%obj,%col,%fade,%pos,%normal)
{
%damageType = $DamageType::Direct;
if(%this.DirectDamageType)
%damageType = %this.DirectDamageType;
%scale = getWord(%obj.getScale(), 2);
%directDamage = mClampF(%this.directDamage, -100, 100) * %scale;
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
%col.damage(%obj, %pos, %directDamage, %damageType);
}
else if(%col.getDatablock().uiName $= "Bank Brick")
{
messageAll('', "\c3The bank has been robbed!");
}
else
{
%col.damage(%obj, %pos, %directDamage, %damageType);
}
}
Maybe I have the parameters wrong or something?