barney.cpp
from the source code, then renamed everything to the name of my custom monster. I took care to make sure that everything was using the right case (i.e. CBarney
vs. BARNEY_AE_DRAW
vs. monster_barney
), that the file paths were correct, and that the code still made sense. Even though it compiles fine and I can't see what I did wrong, I get the error message Can't init monster_custom
in the console. This is the code I used (you can see at this point I've just replaced "barney" with the name of the monster): https://pastebin.com/gicA49DR (using pastebin because the code was too long)
models/custom.mdl
and sound/custom/...
are real files and directories and have the expected contents.EDIT: I am a moron. The solution was to actually compile the DLL and fix all the errors. I forgot I didn't even try to recompile first.