model attachment

model attachment

Re: model attachment Posted by thehalflifeman33 on Sat Feb 9th 2008 at 9:14pm
thehalflifeman33
127 posts
Posted 2008-02-09 9:14pm
thehalflifeman33
super banned
127 posts 13 snarkmarks Registered: Feb 4th 2008 Occupation: Battlefield Studios, Hl2Goldsrc. Location: Canada, BC
<DIV class=forumtext>how do you add a attachment to a bone? i made a bone, and added this to the qc: "$attachment 0 "stun" 0.000000 0.000000 0.000000" and it gives me the error "************ ERROR ************
unknown attachment link 'stun'". what am i doing wrong? </DIV>
Re: model attachment Posted by Le Chief on Sun Feb 10th 2008 at 12:29am
Le Chief
2605 posts
Posted 2008-02-10 12:29am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
You have to make the bones in the model editor, you can't add in a line in the qc file. Well you can, but you shouldn't, the odds are you're going to make some small mistake.
Aaron's Stuff
Re: model attachment Posted by thehalflifeman33 on Sun Feb 10th 2008 at 1:26am
thehalflifeman33
127 posts
Posted 2008-02-10 1:26am
thehalflifeman33
super banned
127 posts 13 snarkmarks Registered: Feb 4th 2008 Occupation: Battlefield Studios, Hl2Goldsrc. Location: Canada, BC
uh, i said i allready made a bone
Re: model attachment Posted by Naklajat on Sun Feb 10th 2008 at 3:48am
Naklajat
1137 posts
Posted 2008-02-10 3:48am
Naklajat
member
1137 posts 384 snarkmarks Registered: Nov 15th 2004 Occupation: Baron Location: Austin, Texas
"$attachment 0 "stun" 0.000000 0.000000 0.000000"
I might be completely wrong here, but I think the quotes around 'stun' are the problem, causing the compiler to get the commands

$attachment 0
stun
0.000000 0.000000 0.000000


When it should be

$attachment 0 stun 0.000000 0.000000 0.000000

But like I said I could be completely wrong, I haven't compiled models for HL1 but I think the qc syntax is mostly the same as with Source.

o

Re: model attachment Posted by thehalflifeman33 on Sun Feb 10th 2008 at 4:42am
thehalflifeman33
127 posts
Posted 2008-02-10 4:42am
thehalflifeman33
super banned
127 posts 13 snarkmarks Registered: Feb 4th 2008 Occupation: Battlefield Studios, Hl2Goldsrc. Location: Canada, BC
hmm, you might be right, i'll try it. nope. it didn't work

EDIT: gah, thats why it didn't work. it didn't have its own hitbox. (the bone) also, it had nothing to do with the quotes.
Re: model attachment Posted by Le Chief on Sun Feb 10th 2008 at 10:40am
Le Chief
2605 posts
Posted 2008-02-10 10:40am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Ahhhhhhhh. You know there is a command that you can add that makes studiomdl generate hitboxs for your model.
Aaron's Stuff