FollowEntity(pPlayer, false) produces no different effect, and using 'true' 
puts the flag at the base of the player, and it still rotates with the player's 
view, albeit around that point (the player's feet).

I would try the SetParentAttachment thing, but I have no idea what any of the 
skeleton's bones are called :(.  Do you know where I could get info on the 
skeleton bone names?

-Kohan

Yaakov Smith <[email protected]> said:
> Try
> pFlag->FollowEntity(pPlayer, false);
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Jay Stelly
> Sent: Sunday, 5 July 2009 4:13 PM
> To: 'Discussion of Half-Life Programming'
> Subject: Re: [hlcoders] Unintended Rotation of Parented Props
> 
> I'm not looking at the code at the moment but as I recall you can add an
> attachment to the player and use SetParentAttachment() to put it in
> hierarchy with any of the player's skeleton's coordinate systems.  There's
> also an example prop with behavior like you want: prop_dynamic_ornament or
> prop_ornament as I recall.
> 
> Jay
> 
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[email protected]] On Behalf Of 
> > Kohan Venets
> > Sent: Saturday, July 04, 2009 10:57 PM
> > To: hlcoders
> > Subject: Re: [hlcoders] Unintended Rotation of Parented Props
> > 
> > 
> > Uh...  How would I do that?  To clarify, I mean that the flag 
> > rotates *around the player*.  As in, it hovers 100 units 
> > above the player's head when the player is looking forward, 
> > and if the player is looking straight down it hovers 100 
> > units directly in front of the player.  It rotates with the 
> > player as its center.
> > 
> > -Kohan
> > 
> > 
> > Jorge Rodriguez <[email protected]> said:
> > > 
> > > You can override the render angles on the client.
> > > 
> > > --
> > > Jorge "Vino" Rodriguez
> > > 
> > > 
> > > Kohan Venets <[email protected]> said:
> > > > I have a flag prop which, when picked up by the player, 
> > is supposed 
> > > > to
> > hover over their head. Unfortunately, setting the player as 
> > the parent of the flag causes the flag to rotate with the 
> > player's view. Is there any way to attach it to the player's 
> > position without preserving the player's rotation? Thanks.
> > > > 
> > > > -Kohan
> > _________________________________________________________________
> > Lauren found her dream laptop. Find the PC that's right for you.
> > http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list 
> > archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > 
> > 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> 

_________________________________________________________________
Windows Liveā„¢: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to