I’m not entirely sure what I’m doing wrong here.
I have two entities - prop_dynamics.
One is barney ( models/barney.mdl )
The other is the hl2 pistol ( models/weapons/w_pistol.mdl )
I’m using this code:
pistol:SetParent( barney )
pistol:AddEffects( EF_BONEMERGE )
On either client or server, the result is the same - it teleports into his crotch like missing bones. I can change it to any weapon model or any hl2 character model that has the correct bones, but it does not appear to be merging with the correct bones. Given the pistol only has two bones ( Bip01_R_Hand and Weapon_Bone ), I’m confused here.
What am I doing wrong? Or does it just not work? Is there anything else I’m supposed to be doing in addition to what I am doing above?
Things I have tried:
Various models mixed ( css weapons and player models, etc )
Various entities ( prop_physics, dynamic, ragdolls )
Different effects ( EF_BONEMERGE_FASTCULL )
Placing the model before adding the effect
None of those work for me.