Skip to content

Commit

Permalink
bloodhound should tag worldspawn as group
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Mar 7, 2023
1 parent 0d3111d commit 3b364e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bloodhound.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def id_ent(omega_entity: OmegaEntity, fgd: valvefgd.Fgd) -> Dossier:
# NOTE: og_classname is the fgd entity classname we want; editorclasses wouldn't appear in fgds afaik
if og_classname not in [e.name for e in fgd.entities]:
out["origin"] = "Titanfall"
if any([v.startswith("*") for v in omega_entity.get("model", list())]): # brush entity
# identify brush entities
if out["classname"] == "worldspawn":
out["type"] = "group"
if any([v.startswith("*") for v in omega_entity.get("model", list())]):
out["new"].remove("model")
out["type"] = "group"
if any([k.startswith("*coll") or k.startswith("*trigger") for k in omega_entity.keys()]):
Expand Down

0 comments on commit 3b364e1

Please sign in to comment.