Raised This Month: $51 Target: $400
 12% 

Attach Sprites to a Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 08-09-2009 , 15:57   Attach Sprites to a Model
Reply With Quote #1

I found this thread http://forums.alliedmods.net/showthread.php?t=53989 which helped abit. But because "TE_SMOKE" message doesn't have an attachment point/entity index (it goes by origin), I'm not sure what I can do. I have an attachment point on my p_ weapon model, is there any way to "emit" smoke from it?

I realize I can mess around with the player origin untill I get it right. But it would be so much easier if I can just make the smoke come from an attachment.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Drak
Veteran Member
Join Date: Jul 2005
Old 12-21-2010 , 16:42   Re: Attach Sprites to a Model
Reply With Quote #2

Bumping olldddd topic. I had this figured out long time ago, but now I lost the code.
I know I figured it out by looking at this piece of code: (From the HLSDK)

Code:
    inline void SetAttachment( edict_t *pEntity, int attachment )     {         if ( pEntity )         {             pev->skin = ENTINDEX(pEntity);             pev->body = attachment;             pev->aiment = pEntity;             pev->movetype = MOVETYPE_FOLLOW;         }     }

But converting this into pawn, it doesn't work. It always attaches at the center of the model.

Anybody have any idea's on how todo this?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode