Raised This Month: $ Target: $400
 0% 

Sprite animations


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 07-15-2011 , 03:45   Re: Sprite animations
Reply With Quote #1

PHP Code:
    g_playerenth[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_sprite"));        
    
    if(
pev_valid(ent))
        return
    
    
engfunc(EngFunc_SetModelg_playerenth[id], "sprites/zombihealer.spr");
    
set_pev(g_playerenth[id], pev_aimentid);
    
set_pev(g_playerenth[id], pev_movetypeMOVETYPE_FOLLOW);
    
set_pev(g_playerenth[id], pev_ownerid);
    
    
set_pev(g_playerenth[id], pev_scale1.0);
    
    
set_pev(g_playerenth[id], pev_rendermodekRenderTransAlpha);
    
set_pev(g_playerenth[id], pev_renderamt255.0);    
    
    
set_pev(g_playerenth[id], pev_animtimeget_gametime())
    
set_pev(g_playerenth[id], pev_framerate1.0)
    
set_pev(g_playerenth[id], pev_spawnflagsSF_SPRITE_STARTON)
    
    
dllfunc(DLLFunc_Spawng_playerenth[id]) 
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-15-2011 , 03:50   Re: Sprite animations
Reply With Quote #2

Quote:
Originally Posted by bogdyuttzu View Post
PHP Code:
    if(pev_valid(ent))
        return 
So if entity is valid, just cancel the whole thing =) ... add a NOT logic operator ( ! ) before pev_valid().
__________________
Hunter-Digital is offline
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 00:51.


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