r/SourceEngine • u/TrevorPhillips_1953 • 16d ago
HELP does anyone know if it's possible to get custom entities to appear in Hammer++
i'm working on a HL2 Sourcemod for SDK Base 2013 Singleplayer, and all the guides are for Garry's Mod which has different files than HL2, i'm trying to get my custom added weapons to show up and i got the .fgd file mounted so they show up as error models instead of the "obsolete" icon and i wonder if there's a way to make them show up so i can position their spawn points better
19
Upvotes
7
u/doublecrossfan 16d ago
You'll need to edit (or create your own) FGD. Check up on VDC on how those work, it's difficult to explain in a single reply
5
u/Pinsplash 16d ago
sounds like you just put the wrong path in the model parameter. look at an existing entity definition so you can understand how to do it.
1
u/Assistant_Informal 15d ago
Check the path to the .mdl file. Also, verify the model itself to ensure it is installed correctly; the paths for materials and all other assets must match the parameters used during compilation.
In the .fgd file, make sure to add the key-value pair with the correct path, formatted as follows:
studio("models/<full path>/<model name>.mdl") = <target entity>
Note that paths for models are ALWAYS specified relative to the "models" folder, while paths for materials are specified relative to the "materials" folder.