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