Skip to content

Commit

Permalink
Add hammer_model entity
Browse files Browse the repository at this point in the history
  • Loading branch information
vrad-exe committed Dec 14, 2024
1 parent 29eb4c5 commit e33f770
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fgd/point/hammer/hammer_model.fgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@PointClass appliesto(-engine)
// TODO: add an icon sprite?
studioprop()
= hammer_model: "Fake model entity that only appears in Hammer. Useful for scale references or the like."
[
model(studio) : "World Model" : : "The model to display."
skin(integer) : "Skin" : 0

@resources [] // Doesn't exist.
]
1 change: 1 addition & 0 deletions src/hammeraddons/bsp_transform/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def strip_ents(ctx: Context) -> None:
'func_instance_parms',
'func_instance_origin',
'comp_player_input_helper',
'hammer_model',
]:
for ent in ctx.vmf.by_class[clsname]:
ent.remove()
Expand Down

0 comments on commit e33f770

Please sign in to comment.