--
[ Picked text/plain from multipart/alternative ]
Yea, I recall 0 is what it returns when it doesnt find an attachment
matching the name you gave it.
And if you want the attachment of the world model, you have to call the
GetAttachment function from the object that represents the world model
entity.

>From the C_SDKPlayer class, I have a line in one of my functions

C_WeaponSDKBase *pWeapon = this->GetActiveSDKWeapon();


And from there I can call pWeapon->GetAttachment
and it will return the attachment of my world model.


----- Original Message -----
From: "Keeper" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, July 26, 2007 12:44 PM
Subject: RE: [hlcoders] Muzzle Origin in Third Person vs ViewModel


>I did that and it comes back with 0.  Doesn't that mean not found?  I saw a
> comment about 0 being the network version of "not found".  Anyway, I'll
> see
> if that returns anything.
>
> Thanks,
> Keeper
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Michael Kramer
> Sent: Thursday, July 26, 2007 3:28 PM
> To: [email protected]
> Subject: Re: [hlcoders] Muzzle Origin in Third Person vs ViewModel
>
> --
> [ Picked text/plain from multipart/alternative ]
> Vector startPos;
>
> QAngle angles;
> GetAttachment( LookupAttachment("muzzle"), startPos, angles );
>
> Run that server side, and replace muzzle with whatever the attachment is
> called on the world model.
> --
>
> _______________________________________________
> 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
>

--

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

Reply via email to