All right, thanks for all the feedback! Space's sounds like what I want.
I kind of doubt I did it right, I really am new to scripting:
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
if(%this.directDamage <= 0)
return;
%damageType = $DamageType::Direct;
if(%this.DirectDamageType)
%damageType = %this.DirectDamageType;
%drop = serverCmdDropTool(%player.currtool);
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
%col.damage(%obj, %pos, %directDamage, %damageType);
}
else
{
%col.damage(%obj, %pos, %directDamage, %damageType);
}
}
Also, all this stuff about direct damage is confusing. Can I just...delete it or something? Sorry about being so clueless, but the most complex scripting I've done is all that (useless) message all stuff :/