I had this problem when I was compiling the Elephant Rifle from Hitman: Blood Money for the TF2 sniper rifle. It is possible - albeit a bit tricky. It involves using the $includemodel command. Modderfreak explained the process. If I remember correctly, this is how it goes:
-Extract the original v_model that you're trying to replace, and put it somewhere in the tf2 models directory. Rename it to something like "v_oldsmg.mdl".
-In your .qc, comment out or remove all of the $sequence lines. Multi-line comments in C-style, which studiomdl.exe seems to parse .qc files in, look like this:
[code]
This code will be read
/*
This code
will all be
ignored
*/
This will be read though
[/code]
-Then, add a line to your .qc:
[code]
$includemodel weapons/v_oldsmg.mdl
[/code]
or whatever you called it. When you compile it, it should appear and be visible.
THANK YOU VERY FUCKING MUCH!
It works! Well, sorta, [url]http://www.wegame.com/watch/Tony_atleast_I_can_see_something_this_time/[/url]
Oh, yeah. There was something else you were supposed to comment out or leave in. Hang on, I'll look at my elephant rifle .qc.
[editline]06:43PM[/editline]
Ah, looks like I got rid of the hunting rifle .qc a while ago. I'll just have to speculate.
I can't tell what's wrong with it. It seems the original SMG might be stuck in there somewhere. Did you remember to "Unhide all" before exporting the reference .smd?
Try leaving in this line:
[code]
$sequence ref "ref" fps 30.00
[/code]
You mean those two things on top that move in pace with the shooting?
I kinda juryrigged some bones to a couple of duped parts I moved behind the player you can't see it.
Sorry, you need to Log In to post a reply to this thread.