Its best to just have the scope as a model group mentioned above. If you want the players hand to put the scope on, making the scopes verts part of bone and parent that bone to the hand during the animation and once attached unparent in the animation. Then just have the scope model group stay on until the player removed it again.
If you dont want to do this, parenting new models to the player v model is going to be an annoying task, but its possible. Just need to keep in mind that it is hidden to all players cept the local. Maybe having the model entirely client side would be wise? But maybe too much work to setup. On Mon, Oct 5, 2009 at 2:14 PM, Stephen Swires <[email protected]>wrote: > You could try using bodygroups on the weapon and view model > > On Mon, Oct 5, 2009 at 10:11 PM, Saul Rennison <[email protected] > >wrote: > > > Hey hlcoders, > > > > I'm wondering how I'd go about adding normal static props (i.e. a small > > scope) to an existing weapon. I've tried bone merging the viewmodel to a > > static prop I created to no avail, albeit I'm not sure I'm doing it > > correctly. I'm basically requesting: > > > > - How would I go about spawning a prop/another viewmodel, and where I > > should do this in the code; > > - How would I attach this newly spawned prop to my viewmodel (it's > > currently a bone, v_weapon.Scope.Attachment) > > - Has anyone tried this before and are they willing to release code > > [snippets]. > > > > > > Thanks so much in advance, > > - Saul. > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > -- > - Stephen Swires > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- ~Ryan ( skidz ) _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

