View Single Post
GAARA54
Veteran Member
Join Date: Oct 2009
Location: Everywhere
Old 12-07-2011 , 14:23   Re: Zombie plague 4.3 new frost effect :)
Reply With Quote #6

standart zp in create_blast using 3 TE_BEAMCYLINDER
here i think added TE_SPRITE
here no change sprite, here added sprite


PHP Code:
new g_frostexp 
PHP Code:
public plugin_precache()
{
    
g_frostexp precache_model("sprites/blabla.spr")
...
blabla... 
PHP Code:
// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{

        
// Frost Sprite
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte (TE_SPRITE// TE ID
    
engfunc(EngFunc_WriteCoordoriginF[0]) // Position X
    
engfunc(EngFunc_WriteCoordoriginF[1]) // Y
    
engfunc(EngFunc_WriteCoordoriginF[2] + 50.0// Z
    
write_short(g_frostexp// Sprite index
    
write_byte(100// Size of sprite
    
write_byte(15// Framerate
    
message_end()

...
blablabla... 
__________________

Last edited by GAARA54; 12-07-2011 at 14:33.
GAARA54 is offline