Discuz! Board
标题:
[代码|Code]白云特效|Cloud Sphere
[打印本页]
作者:
Jerry小坏
时间:
2017-7-13 16:54
标题:
[代码|Code]白云特效|Cloud Sphere
new CloudSphere
public CloudSphereFX( id )
{
for(new i; i < 30; i++)
{
new org[3];
get_user_origin(id, org);
message_begin( MSG_PVS, SVC_TEMPENTITY, org );
write_byte( TE_BEAMENTPOINT );
write_short( id ); //start entity
write_coord( org[0] + random_num(-200, 200)); //end position X
write_coord( org[1] + random_num(-200, 200)); //end position Y
write_coord( org[2] + random_num(-200, 200)); //end positon Z
write_short( CloudSphere ); //set spr file
write_byte( 3 ); //starting frame
write_byte( 5 ); //frame rate in 0.1's
write_byte( 30 ); //life in 0.1's
write_byte( 255 ); //line width in 0.1's
write_byte( 0 ); //noise amplitude in 0.01's
write_byte( 10 ); //R
write_byte( 10 ); //G
write_byte( 10 ); //B
write_byte( 250 ); //Brightness
write_byte( 20 ); //scroll speed in 0.1's
message_end( );
}
set_task(0.5, "CloudSphereFX", id)
}
public plugin_precache()
{
CloudSphere = precache_model( "sprites/stmbal1.spr" );
}
复制代码
Description:
[CN]
这个特效其实和CCI里的AddFx(Client, "fxSpriteRays", "sprites/stmbal1.spr", 0.1, 30, 255, 0, 10, 10, 10, 250, 20, 700, 0, 3)一样[]
[EN]
This effect is actually same as 'AddFx(Client, "fxSpriteRays", "sprites/stmbal1.spr", 0.1, 30, 255, 0, 10, 10, 10, 250, 20, 700, 0, 3)' in CCI.
欢迎光临 Discuz! Board (https://esfbbs.foxnyx.top/)
Powered by Discuz! X3.2