While working on a custom Demoman robot, i stumbled over an attribute called "Custom projectile model".
Naturally, i immediately set forth to implement it. This is what it looks like in the .pop file:
Now, this works for some models. Most notably, it works with the bomb model used for the flag in MvM.
The problem is that this model is turning the wrong way when it comes out of the barrel, so i went to try some other models (There's a plain bomb in the decker pack that happens to face the right direction). However, most models instantly crash my game when the demoman starts firing, leaving me with this error message:
My best hypothesis would be that it tries to use a model before the game has loaded it into memory, but i honestly have no clue. I tried placing the prop in my map in an attempt to cache it (whatever that means), but that didn't do anything.
Any idea how this may be solved?
Naturally, i immediately set forth to implement it. This is what it looks like in the .pop file:
Code:
ItemAttributes
{
"custom projectile model" "models/props_2fort/frog.mdl"
}
Now, this works for some models. Most notably, it works with the bomb model used for the flag in MvM.
The problem is that this model is turning the wrong way when it comes out of the barrel, so i went to try some other models (There's a plain bomb in the decker pack that happens to face the right direction). However, most models instantly crash my game when the demoman starts firing, leaving me with this error message:

My best hypothesis would be that it tries to use a model before the game has loaded it into memory, but i honestly have no clue. I tried placing the prop in my map in an attempt to cache it (whatever that means), but that didn't do anything.
Any idea how this may be solved?