Raised This Month: $ Target: $400
 0% 

How to change the sound of new weapon?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Joker.
Member
Join Date: Mar 2011
Old 06-23-2011 , 07:16   Re: How to change the sound of new weapon?
Reply With Quote #6

I have decompiled my model .
The qc file of the model

Code:
/*
==============================================================================
QC script generated by Half-Life MDL Decompiler 1.2 
2003, Kratisto. Based on code from Valve's HL SDK.
v_p90.mdl
Original internal name:
"v_p90.mdl"
==============================================================================
*/
$modelname "v_p90.mdl"
$cd ".\"
$cdtexture ".\"
$scale 1.0
$cliptotextures
 
$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 mesh(es)
$body "hands" "v_hands"
$body "studio" "v_reference_hp_f90-d"
$body "studio" "v_reference_hp_f90-d_sight"
$texrendermode "v_reference_hp_f90-d_sight.bmp" "additive" 
// 2 attachment(s)
$attachment 0 "p90_body" 9.800000 1.250000 0.000000
$attachment 1 "p90_body" -1.500000 -1.000000 0.000000
// 6 hit box(es)
$hbox 0 "base" -1.613417 -63.200001 -6.783877 12.420000 0.000000 7.580000
$hbox 0 "Bone L hand" -3.980000 -1.800000 -6.900000 5.500000 1.830000 1.540000
$hbox 0 "Bone R hand" -2.660000 -0.890000 -1.500000 0.000000 1.190000 1.480000
$hbox 0 "R wrist rotate" -2.280000 -1.810000 -1.080000 5.970000 1.350000 1.540000
$hbox 0 "p90_body" -6.190000 -2.230000 -1.220000 9.870000 4.910000 1.170000
$hbox 0 "p90_mag" -4.100000 -0.690000 -1.070000 5.090000 0.670000 0.970000
// 6 animation sequence(s)
$sequence "idle" "idle" fps 30 
$sequence "reload" "reload" fps 40 {
  { event 5004 13 "weapons/f90d_unlock.wav" } 
  { event 5004 30 "weapons/f90d_magout.wav" } 
  { event 5004 56 "weapons/f90d_magin.wav" } 
  { event 5004 95 "weapons/f90d_cock.wav" } 
 }
$sequence "draw" "draw" fps 30 { event 5004 1 "weapons/p90d_ready.wav" } 
$sequence "shoot1" "shoot1" fps 20 { event 5001 0 "21" } 
$sequence "shoot2" "shoot2" fps 20 { event 5001 0 "21" } 
$sequence "shoot3" "shoot3" fps 20 { event 5001 0 "21" } 
// End of QC script.
When I compiled then i open server to test it. It have just change the shoot sound. When I reload there not any sound. Is that any things wrong of the qc file?

Last edited by Joker.; 06-23-2011 at 07:44. Reason: correction
Joker. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode