Re: [hlcoders] Attaching Objects to a player

2005-05-06 Thread NuclearFriend
--
[ Picked text/plain from multipart/alternative ]
I too have been trying to do this. I started by looking at the p_ model
weapon attachment code. This uses EF_BONEMERGE, which calculates the
position of the attached entity in local space by merging the joints between
the p_ weapon model and the player. This works fine, but we want it to be
attachment based.

So I modified the CBaseEntity::FollowEntity function so you can pass an
attachment to it, then I passed that value into SetParent in FollowEntity.
It works as far as attaching the equipment entity/model to the player model
and deforms with the bones correctly, the only trouble I'm having is with
the players animations, they now twitch alot. He can't seem to fully duck
either, he keeps snapping back to standing up and then sitting again. It
seems like he is maybe colliding with the equipment model, but its set to
SOLID_NONE and a veczero size.

So if someone from Valve (or if anyone else has a clue) would be so nicely
kind as to point us in the direction of how they did this in CSS, I will
shower them with kisses. /me puckers up

On 4/29/05, British_Bomber [EMAIL PROTECTED] wrote:

 Is there anyway to Attach model to a players back that doesn't require
 recompiling the models? I have my object following the player and I
 am happy enough with it looking like they have a briefcase for
 trousers, it's just attaching it to their back (like the bomb in CS )
 would make the Test Team happy, I didn't plan on doing this for a
 while, (bigger fish to fry) but I couldn't spy a quick fix. Something
 like obj-AttachTo( pPlayer-GetBone( back ) ) Yea I know that would
 be way too simple and will never happen but I'm at school so I can't
 pull up any specifics right now and want to get it over and done with
 right when I get home.

 Thanks

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders




--
Programmer for RnL
www.resistanceandliberation.com http://www.resistanceandliberation.com
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] Attaching Objects to a player

2005-04-28 Thread British_Bomber
Is there anyway to Attach model to a players back that doesn't require
recompiling the models?  I have my object following the player and I
am happy enough with it looking like they have a briefcase for
trousers, it's just attaching it to their back (like the bomb in CS )
would make the Test Team happy, I didn't plan on doing this for a
while, (bigger fish to fry) but I couldn't spy a quick fix.  Something
like  obj-AttachTo( pPlayer-GetBone( back ) )  Yea I know that would
be way too simple and will never happen but I'm at school so I can't
pull up any specifics right now and want to get it over and done with
right when I get home.


Thanks

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders