Multiantag Gamemode (#37783)

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Co-authored-by: Southbridge <7013162+southbridge-fur@users.noreply.github.com>
Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
This commit is contained in:
Nemanja
2025-08-15 10:06:51 -04:00
committed by GitHub
parent b2c505df6a
commit f23e8c2861
19 changed files with 787 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ public sealed partial class GroupSelector : EntityTableSelector
children.Add(child, child.Weight);
}
if (children.Count == 0)
return Array.Empty<EntProtoId>();
var pick = SharedRandomExtensions.Pick(children, rand);
return pick.GetSpawns(rand, entMan, proto, ctx);