This is originally from knifa, the original creator of sourceforts:
(done inside flag prop) SetAbsOrigin( pPlayer->GetAbsOrigin() + Vector( 0, 0, 100 ) ); SetParent( pPlayer ); SetMoveType( MOVETYPE_NONE ); On Mon, Jul 6, 2009 at 2:40 AM, Harry Pidcock<haz...@tpg.com.au> wrote: > You can change your settings so you receive individual emails for each post > rather than a giant email everyday. By changing your settings @ > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -------------------------------------------------- > From: "Kohan Venets" <idr...@hotmail.com> > Sent: Monday, July 06, 2009 11:45 AM > To: "hlcoders" <hlcoders@list.valvesoftware.com> > Subject: Re: [hlcoders] Unintended Rotation of Parented Props > >> >> (Sorry, forgot to rename the reply ^^;) >> >> 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 <m4ngr...@gmail.com> said: >>> Try >>> pFlag->FollowEntity(pPlayer, false); >>> >>> -----Original Message----- >>> From: hlcoders-boun...@list.valvesoftware.com >>> [mailto:hlcoders-boun...@list.valvesoftware.com] 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: hlcoders-boun...@list.valvesoftware.com >>> > [mailto:hlcoders-boun...@list.valvesoftware.com] 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 <bs.v...@gmail.com> said: >>> > > >>> > > You can override the render angles on the client. >>> > > >>> > > -- >>> > > Jorge "Vino" Rodriguez >>> > > >>> > > >>> > > Kohan Venets <idr...@hotmail.com> 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 >>> >> _________________________________________________________________ >> Hotmail® has ever-growing storage! Don’t worry about storage limits. >> http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009 >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> > > > >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.5.375 / Virus Database: 270.13.5/2220 - Release Date: 07/05/09 >> 17:54:00 >> > > _______________________________________________ > 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