Raised This Month: $ Target: $400
 0% 

Need help with sprite plugin for TS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-12-2005 , 15:33  
Reply With Quote #10

Code:
 #define TE_BEAMCYLINDER 21 // cylinder that expands to max radius over lifetime  // coord coord coord (center position)  // coord coord coord (axis and radius)  // short (sprite index)  // byte (starting frame)  // byte (frame rate in 0.1's)  // byte (life in 0.1's)  // byte (line width in 0.1's)  // byte (noise amplitude in 0.01's)  // byte,byte,byte (color)  // byte (brightness)  // byte (scroll speed in 0.1's)  new shockwave_sprite; public plugin_precache() {    shockwave_sprite = precache_model("sprites/shockwave.spr"); } public function(id) {    new origin[3];    get_user_origin(id,origin);    // beams of light!    message_begin(MSG_PAS,SVC_TEMPENTITY,origin);    write_byte(TE_BEAMCYLINDER);    write_coord(origin[0]); // start X    write_coord(origin[1]); // start Y    write_coord(origin[2] - 16); // start Z    write_coord(origin[0]); // something X    write_coord(origin[1]); // something Y    write_coord(origin[2] - 16 + 50); // something Z    write_short(shockwave_sprite); // sprite    write_byte(0); // startframe    write_byte(0); // framerate    write_byte(10); // life    write_byte(60); // width    write_byte(0); // noise    write_byte(255); // red    write_byte(255); // green    write_byte(255); // blue    write_byte(255); // brightness    write_byte(0); // speed    message_end(); }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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:53.


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