Raised This Month: $ Target: $400
 0% 

Shockwaves


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-17-2007 , 16:10   Re: Shockwaves
Reply With Quote #2

PHP Code:
new g_shockwave;

public 
plugin_precache()
{
    
g_shockwave precache_model("sprites/shockwave.spr");
}

stock shockwave(origin[3], radiusrgb)
{
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(21);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2] + radius);
    
write_short(g_shockwave);
    
write_byte(0); // startframe
    
write_byte(0); // framerate in 0.1's
    
write_byte(2); // life
    
write_byte(64); // width
    
write_byte(255); // noise
    
write_byte(r); // red
    
write_byte(g); // green
    
write_byte(b); // blue
    
write_byte(255); //bright
    
write_byte(0); //scrollspeed
    
message_end();

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


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