QC File Help


Swedish
02-29-2004, 05:27 PM
OK, so I have a G43 Sniper model and I want to change it's shooting sound from the 98K sound. How do I do this?

I've already made modifications to Malarkey's Springfield Garand, so that when it reloads it makes a ping sound and the reload sound from MoH. However, I don't know how to modify it with this QC file. Any help?

/*
================================================== ============================

QC script generated by Half-Life MDL Decompiler v1.01.
2002, Kratisto. Based on code from Valve's HL SDK.

v_scoped98k.qc
Original model name: v_scoped98k.mdl

================================================== ============================
*/

$modelname "v_scoped98k.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 gun "reference_scoped"

$bodygroup sleeve
{
studio "para_sleeve"
studio "brit_sleeve"
studio "axis_sleeve"
}

// 2 attachments
$attachment 0 "Bone67" 0.000000 -45.500000 2.000000
$attachment 1 "Bone67" 0.000000 -9.000000 2.000000

// 0 bone controllers

// 11 hit boxes
$hbox 0 "Bone04" -10.612760 0.000000 -13.685144 10.801794 9.412024 0.000000
$hbox 0 "Bone09" -1.630000 -0.530000 -0.990000 0.370000 1.270000 0.560000
$hbox 0 "Bone10" -0.920000 0.000000 -0.800000 0.110000 1.060000 0.450000
$hbox 0 "Bone40" -4.170000 -0.720000 -2.680000 3.970000 17.780001 3.310000
$hbox 0 "Bone42" -1.860000 -0.310000 -1.260000 2.320000 5.540000 1.150000
$hbox 0 "Bone43" -0.230000 -0.720000 -1.140000 1.972922 1.870000 0.870000
$hbox 0 "Bone44" -0.370000 -0.470000 -0.950000 1.630000 1.330000 0.600000
$hbox 0 "Bone45" -0.120000 0.000000 -0.730000 0.910000 1.060000 0.520000
$hbox 0 "Bone67" -0.940000 -46.139999 -2.730000 1.150000 6.530000 5.780000
$hbox 0 "Bone73" -0.710000 -0.280000 -0.490000 1.320000 4.160000 1.090000
$hbox 0 "Bone77" -0.670000 -3.040000 -3.880000 0.700000 1.950000 0.350000

// 7 animation sequences
$sequence "idle" "idle" fps 8
$sequence "shoot1" "shoot1" fps 23 { event 5001 1 "21" } { event 6002 1 "2" }
$sequence "reload" "reload" fps 33 {
{ event 5004 13 "weapons/tommy_reload_clipout.wav" }
{ event 5004 51 "weapons/tommy_reload_clipin.wav" }
{ event 5004 72 "weapons/tommy_draw_slideback.wav" }
}
$sequence "draw" "draw" fps 38 { event 5004 1 "weapons/rifleselect.wav" }
$sequence "stabslash" "stabslash" fps 30
$sequence "stab" "stab" fps 30
$sequence "outofway" "outofway" fps 30

// End of QC file.

Peril
03-01-2004, 08:32 AM
You can't change shoot sounds in the .qc. What you could theoretically do tho, is make the k98 shoot sound silent, and give the original another name, eg. kar_shoot2. Then, in your K43 sniper .qc, after each shoot anim add an event calling the k43 fire sound, like this:

$sequence "shoot1" "shoot1" fps 23 { event 5001 1 "21" } { event 6002 1 "2" } { event 5004 0 "weapons/k43_shoot.wav" }

Then, in your K98 model's .qc, add a similar event after each shoot anim, but have it call kar_shoot2 instead, or whatever you renamed the kar firing sound to. This will mean that the normal shoot sound for the K98 isn't there, and the shoot sounds added into the .qc will be played instead. I think that should work, not tried it out myself tho. ;)

DreadLord
03-01-2004, 05:13 PM
lmao, yea that should work, cept there might be a short pause before the shoot sound

Ikujinonai
03-01-2004, 07:56 PM
You wouldn't be able to hear 3rd person Kar sounds, though.

Cheeto
03-01-2004, 08:29 PM
Kinda odd how the K98 has one sound for both versions, but the Enfield has two shoot sounds, one for each version.

DreadLord
03-02-2004, 02:32 PM
Originally posted by Ikujinonai
You wouldn't be able to hear 3rd person Kar sounds, though.

i thought the same thing, cept i can hear people reload their tommy guns, which is 3rd person not shooting

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.