Raised This Month: $ Target: $400
 0% 

create a flame for few seconds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DavidJr
Senior Member
Join Date: Apr 2012
Old 05-21-2014 , 09:49   Re: create a flame for few seconds
Reply With Quote #5

Try with TE_BEAMFOLLOW:

PHP Code:
new const EntityName[] = "flame";
new const 
Mdl[] = "models/bullet.mdl";

new 
Sprite;

public 
plugin_precache()
{
    
Sprite precache_model("sprites/flame.spr");
}

CreateFlame()
{
    new 
iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString));
    
    
set_pev(iEntpev_classnameEntityName);
    
engfunc(EngFunc_SetModeliEntMdl);
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(TE_BEAMFOLLOW);
    
write_short(iEnt);
    
write_short(Sprite);
    
write_byte(10);
    
write_byte(5);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_byte(200);
    
message_end();

__________________
What are you looking for here?
DavidJr 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 09:47.


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