Well, now I am trying to use:
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
%objA = %obj.sourceObject;
%damageType = $DamageType::Direct;
if(%this.DirectDamageType)
%damageType = %this.DirectDamageType;
if(%objA.canFriDamage)
{
%col.damage(%objA,%pos,%this.directDamage,%damageType);
%objA.client.centerPrint("Dmg: It works",1);
return;
}
return Parent::damage(%this,%obj,%col,%fade,%pos,%normal);
}
function ProjectileData::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt)
{
%objA = %obj.sourceObject;
%damageType = $DamageType::Radius;
if(%this.RadiusDamageType)
%damageType = %this.RadiusDamageType;
if(%objA.canFriDamage)
{
%col.damage(%objA, %pos, %damageAmt, %damageType);
%objA.client.centerPrint("it works",1);
return;
}
return Parent::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt);
}
No idea why it is not working..
I also packaged minigameCanDamage, and it says 1 when I try.