w_model problem

im making a zapper swep but the world model is messed up how do i fix this??


Why the hell does no one answer my threads

I’m not a modeler, but I think you forgot about attachments.

i tryed using attachments but the stupid thing isnt working

need some help people

Decompile another world model and see what’s different.

Seems like the bone skeleton of the gun has no bone called “ValveBiped.Bip01_R_Hand”. Whenever a weapon is attached to a player/NPC the gun bones merge with the ones from the gun carrier. So if there’s no “ValveBiped.Bip01_R_Hand” bone, it probably attaches itself to the first bone on the carrier skeleton, which’d be the “ValveBiped.Bip01_Pelvis” bone.

Long text in short: Check your bones!

I’m having the same problem, however my bones are assigned etc.


$cd "E:\Users\Jasper\Modeling\w_models
$modelname "weapons/w_nukaweapon.mdl"
$cdmaterials "models
$attachment "0" "ValveBiped.Bip01_r_Hand" 0 0 0 rotate 0 0 0
$scale 1
$keyvalues { "prop_data" { "base" "glass.small" } }
$model w_m4a1 "w_nukaweapon.smd"
$sequence idle "w_nukaweapon" loop fps 30.00 rotate 90
$collisionmodel "w_nukaweapon.smd"
	$mass 1.0 // Mass in kilograms

$modelname "DC/Weapons/W_batarang.mdl"
$model "studio" "w_batarang.smd"
$cdmaterials "models\DC\Batman\Batarang"
$hboxset "default"
$hbox 0 "ValveBiped.Bip01_R_Hand" 0.000  -3.636  -25.478  7.125  0.000  8.861
$surfaceprop "weapon"
$illumposition -1.456 -0.510 0.723
$sequence idle "idle" loop ACT_VM_IDLE 1 fps 30.00
$sequence attack1 "idle" fps 30.00
$collisionmodel "w_batarang.smd" {

	$mass 8.0
	$inertia 1.00
	$damping 0.00
	$rotdamping 0.00

Thats my Batarang one that works (based off crowbar), make sure you’ve rigged your model slightly infront and to the side of the “ValveBiped.Bip01_R_Hand” bone and try using my above one to get yours working ^^ (also rotate 90 is only needed for view models).

patience is a virtue.

The ValveBiped.Bip01_R_Hand bone is definately the attachment used for melee weapons, however, i’ve been taking a look at some other HL2 weapons and they seem to use attachmets that I can only presume are defined on the playermodel (as they certainly arn’t on the bones of the playermodel).

Tried this? http://hl2smod.wikidot.com/converting-cs:s-world-models-for-smod

Interesting, but not that useful other than basics for non-3dmax users.