The entire code might even be the wrong way, there's no documentation so i've been trying to figure it out myself.
Code: Select all
FTranslatedLineTarget t;
if (t.linetarget)
{
ClawFocus.Angle = t.angleFromSource;
}
int newdam = ClawFocus.Target.DamageMobj (ClawFocus, ClawFocus, ClawDrainDamage, 'Drain');
ClawFocus.Target.SpawnLineAttackBlood(ClawFocus, ClawFocus.Vec3To(ClawFocus.Target), t.angleFromSource, ClawDrainDamage, newdam);