- MBF21: added projectile group.

This commit is contained in:
Christoph Oelckers 2021-06-29 17:33:16 +02:00
commit cc801a7efa
3 changed files with 45 additions and 1 deletions

View file

@ -1038,6 +1038,19 @@ DEFINE_PROPERTY(infightinggroup, I, Actor)
info->ActorInfo()->infighting_group = i;
}
//==========================================================================
// MBF21
//==========================================================================
DEFINE_PROPERTY(projectilegroup, I, Actor)
{
PROP_INT_PARM(i, 0);
if (i < -1)
{
I_Error("Projectile groups must be >= -1.");
}
info->ActorInfo()->projectile_group = i;
}
//==========================================================================
// [BB]
//==========================================================================