Thanks Nick, the page you linked to might help. I'll check it in detail
later.

Jan

-----Ursprüngliche Nachricht-----
Von: hlcoders-boun...@list.valvesoftware.com
[mailto:hlcoders-boun...@list.valvesoftware.com] Im Auftrag von Nick
Gesendet: Freitag, 30. November 2012 17:50
An: Discussion of Half-Life Programming
Betreff: Re: [hlcoders] Show a model on the player

i am not sure... but someone did a mod where weapons were added on the
player back.

Also, I knew of amodeler named Flare and who was able to set the
attachment point on the prop.. And that attachment point on the prop
determined where the model was attached to the player.

If the prop is setup correctly, it should be perfectly setup when
attached to a player with HLMV, no code would be required.
http://www.halfwit-2.com/?page=resources&action=view&item=14

On Sat, Nov 24, 2012 at 11:19 AM, Jan Hartung <jan.hart...@gmx.de>
wrote:
> I’ve been trying different things now, but none of them work as they 
> are supposed to.
>
>
>
> A combination of LookupAttachment and GetAttachment and setting the 
> origin and angles of the entity I want to attach to the player to what

> GetAttachment returned followed by a call to FollowEntity does not 
> help. The entity seems to be glued to the players feet then.
>
> Calling SetParent and afterwards SetParentAttachment yields better
results.
> The entity is shown on the attachment point and moves completely 
> relative to the player. The problem here is, that the weapon is no 
> longer in the player’s hands and the whole player model jerks around. 
> Additionally the console prints the error message “*** ERROR: Bone 
> access not allowed (entity 1:player)”. I tried to solve that by 
> calling PushAllowBoneAccess on the player (client side). Doesn’t help,

> the error message does not disappear and the player keeps on jerking
around.
>
>
>
> Any ideas?
>
>
>
> Jan
>
>
>
>
>
> Von: hlcoders-boun...@list.valvesoftware.com
> [mailto:hlcoders-boun...@list.valvesoftware.com] Im Auftrag von Cale 
> Dunlap
> Gesendet: Mittwoch, 3. Oktober 2012 20:21
> An: Discussion of Half-Life Programming
> Betreff: Re: [hlcoders] Show a model on the player
>
>
>
> I haven't personally done what you're trying to do, but perhaps 
> looking at bone followers would provide some insight. I'm not sure if 
> they'll address what you're asking. Other members of the list can
correct me if I'm wrong.
> I've actually been curious about this myself.
>
>
>
> Cale
>
> On Thursday, September 27, 2012, Jan Hartung wrote:
>
> Hi,
>
>
>
> I’m trying to render different items (models) on the player model. The

> player model has been set up with various attachments where I could 
> render the items. My problem is that I couldn’t find a way to attach 
> an item to any of the attachment points. The net doesn’t really help 
> with this and I couldn’t find the code used to show the weapons on the

> player models. Any hints on how to render models on attachment points?
>
>
>
> Jan
>
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,

> please visit:
> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to