Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2|回复: 0
打印 上一主题 下一主题

[代码|Code]白云特效|Cloud Sphere

[复制链接]

189

主题

189

帖子

580

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
580
跳转到指定楼层
楼主
发表于 2017-7-13 16:54:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

  1. new CloudSphere

  2. public CloudSphereFX( id )
  3. {
  4.     for(new i; i < 30; i++)
  5.     {
  6.         new org[3];
  7.         get_user_origin(id, org);
  8.         message_begin( MSG_PVS, SVC_TEMPENTITY, org );
  9.         write_byte( TE_BEAMENTPOINT );
  10.         write_short( id ); //start entity
  11.         write_coord( org[0] + random_num(-200, 200)); //end position X
  12.         write_coord( org[1] + random_num(-200, 200)); //end position Y
  13.         write_coord( org[2] + random_num(-200, 200)); //end positon Z
  14.         write_short( CloudSphere ); //set spr file
  15.         write_byte( 3 ); //starting frame
  16.         write_byte( 5 ); //frame rate in 0.1's
  17.         write_byte( 30 ); //life in 0.1's
  18.         write_byte( 255 ); //line width in 0.1's
  19.         write_byte( 0 ); //noise amplitude in 0.01's
  20.         write_byte( 10 ); //R
  21.         write_byte( 10 ); //G
  22.         write_byte( 10 ); //B
  23.         write_byte( 250 ); //Brightness
  24.         write_byte( 20 ); //scroll speed in 0.1's
  25.         message_end( );
  26.     }
  27.     set_task(0.5, "CloudSphereFX", id)  
  28. }

  29. public plugin_precache()
  30. {
  31.     CloudSphere = precache_model( "sprites/stmbal1.spr" );
  32. }  
复制代码
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.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.  

GMT+8, 2026-10-26 05:53 , Processed in 0.246288 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表