CS:GO Weapon Magazine Attachment Problem

Check that screenshot out. I’m working on Asuka here, but whenever she holds an AK47 the magazine appears floating on the ground between her feet.

Additionally, she doesn’t appear to hold the magazine of any gun when reloading. Look at her reload the G3SG1:

You can see that her left hand is empty and the magazine is still in the rifle.

Is this a .qc problem? Here is the .qc file:


$cd "C:\Source Stuff\Modeling\Player Models\Evangelion\asuka"
$modelname "player
atalya\evangelion\asuka\asuka-dress.mdl"
$model "Natalya" "asuka-dress.smd"
$poseparameter move_yaw -180.00 180.00
$poseparameter body_pitch -90.00 90.00
$poseparameter body_yaw -90.00 90.00
$cdmaterials "models\player
atalya\evangelion\asuka\"

// -3 -5 -7 3 5 7  0 and 3 are Z(height), 1 and 4 are front-back
$hboxset "cstrike"
$hbox 3 "ValveBiped.Bip01_Pelvis" -3.000 -7.000  -7.000  5.000  2.000  7.000
$hbox 6 "ValveBiped.Bip01_L_Thigh" 1.000  -6.200  -3.000  20.000  1.400  4.000
$hbox 6 "ValveBiped.Bip01_L_Calf" -0.00  -5.000  -1.800  18.000  1.200  3.400
$hbox 6 "ValveBiped.Bip01_L_Foot" 1.000  -3.000  -1.800  6.000  8.000  2.800
$hbox 7 "ValveBiped.Bip01_R_Thigh" 1.000  -6.200  -4.000  20.000  1.400  3.000
$hbox 7 "ValveBiped.Bip01_R_Calf" -0.00  -5.000  -3.400  18.000  1.200  1.800
$hbox 7 "ValveBiped.Bip01_R_Foot" 1.000  -3.000  -2.800  6.000  8.000  1.800
$hbox 3 "ValveBiped.Bip01_Spine1" -3.000  -4.600 -5.600  7.000  3.000  5.600

$hbox 2 "ValveBiped.Bip01_Spine2" 2.000  -6.400  -6.000  10.000  4.600  6.000
$hbox 1 "ValveBiped.Bip01_Neck" 0.000  -2.000  -2.400  5.000 3.000  2.400
$hbox 1 "ValveBiped.Bip01_Head" -1.250  -4.500  -3.400  7.750  3.900  3.400
$hbox 4 "ValveBiped.Bip01_L_UpperArm" -3.000  -2.000  -2.000  12.000  2.000  2.000
$hbox 4 "ValveBiped.Bip01_L_Forearm" -1.600  -1.600  -1.800  12.000  1.600  1.600
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.000  -1.000  -1.600  5.000  1.500  1.000
$hbox 5 "ValveBiped.Bip01_R_UpperArm" -3.000  -2.000  -2.000  12.000  2.000  2.000
$hbox 5 "ValveBiped.Bip01_R_Forearm" -1.600  -1.600  -1.600  12.000  1.600  1.800
$hbox 5 "ValveBiped.Bip01_R_Hand" 0.000  -1.000  -1.600  5.000  1.500  1.000

$attachment "n_gun" "ValveBiped.Bip01_R_Hand" 0.00 0.00 0.00 rotate 0.00 0.00 -0.00
$attachment "forward" "ValveBiped.Bip01_Head" 0.00 0.00 0.00 rotate -0.00 0.00 0.00
$attachment "grenade0" "ValveBiped.Bip01_Pelvis" 1.40 -1.32 10.06 rotate 79.02 77.08 72.34
$attachment "grenade1" "ValveBiped.Bip01_Pelvis" 1.68 -4.26 9.35 rotate 62.97 95.66 87.46
$attachment "grenade2" "ValveBiped.Bip01_Pelvis" 1.33 0.6 -8.50 rotate -75.89 87.91 95.17
$attachment "grenade3" "ValveBiped.Bip01_Pelvis" 0.63 3.41 9.28 rotate 66.17 -98.20 -100.52
$attachment "grenade4" "ValveBiped.Bip01_Pelvis" 1.35 -3.50 -9.27 rotate -63.12 93.50 85.98
$attachment "pistol" "ValveBiped.Bip01_R_Thigh" -5 -5 5.0 rotate 5.00 8.06 -86.63
$attachment "primary" "ValveBiped.Bip01_Spine2" 5.26 8.84 -5.09 rotate -28.31 167.65 7.15
$attachment "primary_rifle" "ValveBiped.Bip01_Spine3" -4.00 -8.30 -1.77 rotate 2.64 179.10 170.54
$attachment "primary_sniper" "ValveBiped.Bip01_Spine3" -4.00 -8.30 -1.77 rotate 2.64 179.10 170.54
$attachment "primary_smg" "ValveBiped.Bip01_Spine2" 5.26 8.84 -5.09 rotate -28.31 167.65 7.15
$attachment "primary_shotgun" "ValveBiped.Bip01_Spine2" 9.68 -8.30 -1.77 rotate 2.64 179.10 170.54
$attachment "primary_mg" "ValveBiped.Bip01_Spine2" 9.68 -8.30 -1.77 rotate 2.64 179.10 170.54
$attachment "eholster" "ValveBiped.Bip01_L_Thigh" 7.15 1.31 -5.41 rotate -2.95 89.50 -91.74
$attachment "defusekit" "ValveBiped.Bip01_Pelvis" 1.06 -6.66 0.00 rotate 0.27 88.06 90.64
$attachment "lfoot" "ValveBiped.Bip01_L_Foot" -0.00 5.35 0.00 rotate 0.00 -0.00 0.00
$attachment "rfoot" "ValveBiped.Bip01_R_Foot" 0.00 5.35 0.00 rotate -0.00 -0.00 0.00
$attachment "muzzle_flash" "ValveBiped.Bip01_L_Hand" 0.00 0.00 0.00 rotate 0.00 0.00 -0.00
$attachment "weapon_bone" "ValveBiped.weapon_bone" 0.00 0.00 0.00 rotate -0.00 0.00 0.00
$includemodel "player/ct_animations.mdl"
$surfaceprop "metal"
$eyeposition -0.000 0.000 73.000
$illumposition 11.494 4.370 37.113
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$ikchain rhand ValveBiped.Bip01_R_Hand knee  0.753 0.658 -0.000
$ikchain lhand ValveBiped.Bip01_L_Hand knee  0.695 0.719 -0.000
$ikchain rfoot ValveBiped.Bip01_R_Foot knee  0.707 0.707 0.000
$ikchain lfoot ValveBiped.Bip01_L_Foot knee  0.707 0.707 0.000
$collisionjoints "phymodel.smd" {

	$mass 250.0
	$inertia 10.00
	$damping 0.01
	$rotdamping 4.00
	$rootbone "valvebiped.bip01_pelvis"
	$jointrotdamping "valvebiped.bip01_pelvis" 10.00

	$jointmassbias "valvebiped.bip01_r_thigh" 0.80
	$jointconstrain "valvebiped.bip01_r_thigh" x limit -12.00 12.00 0.00
	$jointconstrain "valvebiped.bip01_r_thigh" y limit -28.00 8.00 0.00
	$jointconstrain "valvebiped.bip01_r_thigh" z limit -24.00 60.00 0.00

	$jointmassbias "valvebiped.bip01_r_calf" 1.20
	$jointrotdamping "valvebiped.bip01_r_calf" 3.00
	$jointconstrain "valvebiped.bip01_r_calf" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_r_calf" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_r_calf" z limit -90.00 -15.00 0.00

	$jointmassbias "valvebiped.bip01_l_thigh" 0.80
	$jointconstrain "valvebiped.bip01_l_thigh" x limit -12.00 12.00 0.00
	$jointconstrain "valvebiped.bip01_l_thigh" y limit -28.00 8.00 0.00
	$jointconstrain "valvebiped.bip01_l_thigh" z limit -24.00 60.00 0.00

	$jointmassbias "valvebiped.bip01_l_calf" 1.20
	$jointrotdamping "valvebiped.bip01_l_calf" 3.00
	$jointconstrain "valvebiped.bip01_l_calf" x limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_calf" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_calf" z limit -90.00 -15.00 0.00

	$jointmassbias "valvebiped.bip01_l_foot" 0.75
	$jointrotdamping "valvebiped.bip01_l_foot" 7.00
	$jointconstrain "valvebiped.bip01_l_foot" x limit -10.00 22.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" y limit -15.00 15.00 0.00
	$jointconstrain "valvebiped.bip01_l_foot" z limit -17.00 24.00 0.00

	$jointrotdamping "valvebiped.bip01_spine1" 18.00
	$jointconstrain "valvebiped.bip01_spine1" x limit -20.00 20.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" y limit -10.00 10.00 0.00
	$jointconstrain "valvebiped.bip01_spine1" z limit -15.00 30.00 0.00

	$jointmassbias "valvebiped.bip01_spine2" 1.60
	$jointrotdamping "valvebiped.bip01_spine2" 12.00
	$jointconstrain "valvebiped.bip01_spine2" x limit -30.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_spine2" y limit -16.00 16.00 0.00
	$jointconstrain "valvebiped.bip01_spine2" z limit -15.00 20.00 0.00

	$jointmassbias "valvebiped.bip01_r_upperarm" 0.80
	$jointrotdamping "valvebiped.bip01_r_upperarm" 16.00
	$jointconstrain "valvebiped.bip01_r_upperarm" x limit -50.00 40.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" y limit -26.00 26.00 0.00
	$jointconstrain "valvebiped.bip01_r_upperarm" z limit -45.00 15.00 0.00

	$jointmassbias "valvebiped.bip01_r_forearm" 1.80
	$jointconstrain "valvebiped.bip01_r_forearm" x limit -45.00 45.00 0.00
	$jointconstrain "valvebiped.bip01_r_forearm" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_r_forearm" z limit -120.00 -45.00 0.00

	$jointmassbias "valvebiped.bip01_l_upperarm" 0.80
	$jointrotdamping "valvebiped.bip01_l_upperarm" 16.00
	$jointconstrain "valvebiped.bip01_l_upperarm" x limit -40.00 50.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" y limit -26.00 26.00 0.00
	$jointconstrain "valvebiped.bip01_l_upperarm" z limit -40.00 15.00 0.00

	$jointmassbias "valvebiped.bip01_l_forearm" 1.80
	$jointconstrain "valvebiped.bip01_l_forearm" x limit -45.00 45.00 0.00
	$jointconstrain "valvebiped.bip01_l_forearm" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_forearm" z limit -120.00 -45.00 0.00

	$jointmassbias "valvebiped.bip01_l_hand" 0.60
	$jointrotdamping "valvebiped.bip01_l_hand" 8.00
	$jointconstrain "valvebiped.bip01_l_hand" x limit -30.00 37.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" z limit -20.00 35.00 0.00

	$jointmassbias "valvebiped.bip01_r_hand" 0.60
	$jointrotdamping "valvebiped.bip01_r_hand" 8.00
	$jointconstrain "valvebiped.bip01_r_hand" x limit -37.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" z limit -35.00 20.00 0.00

	$jointmassbias "valvebiped.bip01_head" 1.50
	$jointrotdamping "valvebiped.bip01_head" 10.00
	$jointconstrain "valvebiped.bip01_head" x limit -45.00 45.00 0.00
	$jointconstrain "valvebiped.bip01_head" y limit -30.00 30.00 0.00
	$jointconstrain "valvebiped.bip01_head" z limit -40.00 20.00 0.00

	$jointmassbias "valvebiped.bip01_r_foot" 0.75
	$jointrotdamping "valvebiped.bip01_r_foot" 7.00
	$jointconstrain "valvebiped.bip01_r_foot" x limit -10.00 22.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" y limit -19.00 25.00 0.00
	$jointconstrain "valvebiped.bip01_r_foot" z limit -17.00 24.00 0.00
}

Have you checked if the attachment is fine inside HLMV ? Also, which attachment is supposed to be related to mag in your QC ?

TBH I don’t know which attachment is associated with weapon magazines. The attachments in my .qc come from a decompile I did of a default model.

Okay looks like I was missing some attachments:



$attachment "mag_eject" "ValveBiped.weapon_bone_Clip" 0.00 0.00 0.00 rotate -90.00 -90.00 0.00
$attachment "mag_eject2" "ValveBiped.weapon_bone_Clip2" 0.00 0.00 0.00 rotate -90.00 -90.00 0.00
$attachment "knife" "ValveBiped.Bip01_L_Thigh" 7.90 4.80 -2.50 rotate -1.94 -60.00 -90.40
$attachment "facemask" "ValveBiped.Bip01_Head" 3.17 3.98 -0.00 rotate -0.00 74.00 90.00

Note: I moved the knife attachment a lot to suit this model.