Raised This Month: $ Target: $400
 0% 

Insane creating entity time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 02-13-2009 , 16:53   Insane creating entity time
Reply With Quote #1

PHP Code:
public make_shield(const Float:vOrigin[3])
{
    new 
i_Ent engfunc(EngFunc_CreateNamedEntity,g_EntMine);

    
engfunc(EngFunc_SetModel,i_Ent,model_aura_shield);

    
set_pev(i_Ent,pev_solid,SOLID_NOT);
    
set_pev(i_Ent,pev_movetype,MOVETYPE_FLY);

    
set_pev(i_Ent,pev_frame,0);
    
set_pev(i_Ent,pev_body,3);
    
set_pev(i_Entpev_originvOrigin );
    
fm_set_rendering(i_Ent,kRenderFxGlowShell,255,255,255,kRenderTransAlpha,70)
    
set_task(6.0"remove_shield"i_Ent)

it takes near 1.5 secs until i can see the model, what is actually insane for what im using it
Speed! is offline
Reply


Thread Tools
Display Modes

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 16:54.


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