function HorseArmor::onDriverLeave(%obj, %player)
{
%obj.Mounted = 0;
}
function armor::onMount(%this,%obj,%col,%slot)
{
Parent::onMount(%this,%obj,%col,%slot);
if(%col.getDataBlock() == HorseArmor.getId())
{
%col.Mounted = 1;
}
}
function armor::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);
if(%obj.dataBlock.getName() $= "HorseArmor" && %obj.getState() !$= "Dead")
{
if(%this.Mounted == 1)
{
if(%col.getType() & $Typemasks::PlayerObjectType)
{
if(%col.getState() $= "Dead")
{
return;
}
else
{
tumble(%col, 7000);
}
}
}
}
else
echo("NOO");
}
};
activatePackage(overwritecrap2);
It echoes NOO in the console when I try ramming.