AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Attach Sprites to a Model (https://forums.alliedmods.net/showthread.php?t=99818)

Drak 08-09-2009 15:57

Attach Sprites to a Model
 
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.

Drak 12-21-2010 16:42

Re: Attach Sprites to a Model
 
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?


All times are GMT -4. The time now is 18:27.

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