- MBF21: infighting groups.

This commit is contained in:
Christoph Oelckers 2021-06-29 01:34:14 +02:00
commit bca8d01ab3
5 changed files with 54 additions and 15 deletions

View file

@ -1025,6 +1025,19 @@ DEFINE_PROPERTY(designatedteam, I, Actor)
defaults->DesignatedTeam = val;
}
//==========================================================================
// MBF21
//==========================================================================
DEFINE_PROPERTY(infightinggroup, I, Actor)
{
PROP_INT_PARM(i, 0);
if (i < 0)
{
I_Error("Infighting groups must be >= 0.");
}
info->ActorInfo()->infighting_group = i;
}
//==========================================================================
// [BB]
//==========================================================================