Raised This Month: $ Target: $400
 0% 

Attaching a sprite to a moving entity.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-17-2007 , 18:50   Re: Attaching a sprite to a moving entity.
Reply With Quote #3

Was testing some more and got it working with this code...

PHP Code:
new sprite engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_sprite"));
if(!
sprite) return PLUGIN_CONTINUE;
set_pev(spritepev_classname"spritetest");
engfunc(EngFunc_SetModelsprite"sprites/glow01.spr");
engfunc(EngFunc_SetSizespriteFloat:{0.0,0.0,0.0}, Float:{0.0,0.0,0.0});
engfunc(EngFunc_SetOriginspriteorigin);
set_pev(spritepev_solidSOLID_NOT);
set_pev(spritepev_movetypeMOVETYPE_FLY);
set_pev(spritepev_aimentent); 
Still need to set some key/values to get it to look right ;p
hlstriker is offline
 



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 01:17.


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