Help?
PFCNublar
Join Date: 2003-04-23 Member: 15792Members
<div class="IPBDescription">A wee bit of help with .qc files</div> Ok, after a good 15 minutes of attempting to get the thing to work, and trying some queer things, I dragged and dropped v_sg.mdl onto mdldec.exe in extreme desperation/frustration and...<i>it decompiled.</i> YAY!
Now, could somebody help me as to tell me which part of the .qc file I should edit to change the origins/position of the model on my screen. I have posted up the .qc file for easier reference. It's the Doom III Shotgun. I have heard of an xyz variable, but I can't seem to find which numbers will affect/are that variable.
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
$modelname "v_sg.mdl"
$cd ".\"
$cdtexture ".\"
$scale 1.0
$bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$cbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$eyeposition 0.000000 0.000000 0.000000
// reference meshes
$body body "shotgun_ref"
// 2 skin families
$texturegroup skinfamilies
{
{ "hands.bmp" }
{ "hands_black.bmp" }
}
// 1 attachments
$attachment 0 "Bone53" 0.000000 -2.000000 0.000000
// 0 bone controllers
// 6 hit boxes
$hbox 0 "Bone51" -3.970000 -18.342178 -1.400000 3.180000 6.910000 1.790000
$hbox 0 "Bone24" -2.150000 -0.020000 -1.980000 2.110000 7.580000 1.440000
$hbox 0 "Bone26" -1.420000 -1.040000 -5.868253 14.316846 9.377198 1.110000
$hbox 0 "Bone03" -1.550000 -2.140000 -1.000000 24.669785 10.358600 10.135379
$hbox 0 "Bone04" -2.330000 -1.360000 -1.260000 0.000000 0.830000 0.160000
$hbox 0 "Bone47" -2.200000 -0.030000 -1.440000 2.050000 10.520000 1.970000
// 8 animation sequences
$sequence "idle" "idle" fps 20
$sequence "idle2" "idle2" fps 10
$sequence "goto_reload" "goto_reload" fps 20
$sequence "reload" "reload" fps 20 loop { event 5004 5 "weapons/shotgun_reload.wav" }
$sequence "end_reload" "end_reload" fps 20 { event 5004 11 "weapons/shotgun_pump.wav" }
$sequence "shoot" "shoot" fps 20 { event 5001 0 "30" } { event 5004 10 "weapons/shotgun_pump.wav" }
$sequence "shoot_empty" "shoot_empty" fps 20
$sequence "draw" "draw" fps 20 { event 5004 0 "weapons/shotgun_draw.wav" }
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Now, could somebody help me as to tell me which part of the .qc file I should edit to change the origins/position of the model on my screen. I have posted up the .qc file for easier reference. It's the Doom III Shotgun. I have heard of an xyz variable, but I can't seem to find which numbers will affect/are that variable.
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
$modelname "v_sg.mdl"
$cd ".\"
$cdtexture ".\"
$scale 1.0
$bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$cbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$eyeposition 0.000000 0.000000 0.000000
// reference meshes
$body body "shotgun_ref"
// 2 skin families
$texturegroup skinfamilies
{
{ "hands.bmp" }
{ "hands_black.bmp" }
}
// 1 attachments
$attachment 0 "Bone53" 0.000000 -2.000000 0.000000
// 0 bone controllers
// 6 hit boxes
$hbox 0 "Bone51" -3.970000 -18.342178 -1.400000 3.180000 6.910000 1.790000
$hbox 0 "Bone24" -2.150000 -0.020000 -1.980000 2.110000 7.580000 1.440000
$hbox 0 "Bone26" -1.420000 -1.040000 -5.868253 14.316846 9.377198 1.110000
$hbox 0 "Bone03" -1.550000 -2.140000 -1.000000 24.669785 10.358600 10.135379
$hbox 0 "Bone04" -2.330000 -1.360000 -1.260000 0.000000 0.830000 0.160000
$hbox 0 "Bone47" -2.200000 -0.030000 -1.440000 2.050000 10.520000 1.970000
// 8 animation sequences
$sequence "idle" "idle" fps 20
$sequence "idle2" "idle2" fps 10
$sequence "goto_reload" "goto_reload" fps 20
$sequence "reload" "reload" fps 20 loop { event 5004 5 "weapons/shotgun_reload.wav" }
$sequence "end_reload" "end_reload" fps 20 { event 5004 11 "weapons/shotgun_pump.wav" }
$sequence "shoot" "shoot" fps 20 { event 5001 0 "30" } { event 5004 10 "weapons/shotgun_pump.wav" }
$sequence "shoot_empty" "shoot_empty" fps 20
$sequence "draw" "draw" fps 20 { event 5004 0 "weapons/shotgun_draw.wav" }
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Comments
<b>BUT</b>
$eyeposition 0.000000 0.000000 0.000000
^ X (Right - left) Y (up - down) Z (forwards - backwards)
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Q: How do I create ironsights, shoulder views, or other-wise reposition a v_model?</b>
A: This is done by using $origin in your QC file at compile time. Place it near the top of your QC file, before the $sequences.
FORMAT: $origin X Y Z
X is left/right. Positive values move to the right.
Y is in/out. Positive values move out, away from you.
Z is up/down. Positive values move down.
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Q: How do I create ironsights, shoulder views, or other-wise reposition a v_model?</b>
A: This is done by using $origin in your QC file at compile time. Place it near the top of your QC file, before the $sequences.
FORMAT: $origin X Y Z
X is left/right. Positive values move to the right.
Y is in/out. Positive values move out, away from you.
Z is up/down. Positive values move down.
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
touche.
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Q: How do I create ironsights, shoulder views, or other-wise reposition a v_model?</b>
A: This is done by using $origin in your QC file at compile time. Place it near the top of your QC file, before the $sequences.
FORMAT: $origin X Y Z
X is left/right. Positive values move to the right.
Y is in/out. Positive values move out, away from you.
Z is up/down. Positive values move down.
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
yep, that's it <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Q: How do I create ironsights, shoulder views, or other-wise reposition a v_model?</b>
A: This is done by using $origin in your QC file at compile time. Place it near the top of your QC file, before the $sequences.
FORMAT: $origin X Y Z
X is left/right. Positive values move to the right.
Y is in/out. Positive values move out, away from you.
Z is up/down. Positive values move down.
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd--> <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
<!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
just makin sure ^_^