码迷,mamicode.com
首页 > Web开发 > 详细

[MetaHook] R_SparkShower

时间:2015-08-04 22:23:01      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

By hzqst

 1 void R_SparkShower(float *pos)
 2 {
 3     TEMPENTITY *tent;
 4 
 5     tent = efx.CL_TempEntAllocNoModel(pos);
 6     if ( tent )
 7     {
 8         tent->entity.baseline.origin[0] = RandomFloat(-300.0, 300.0);
 9         tent->entity.baseline.origin[1] = RandomFloat(-300.0, 300.0);
10         tent->flags |= FTENT_SPARKSHOWER | FTENT_COLLIDEWORLD | FTENT_SLOWGRAVITY;
11         tent->entity.baseline.angles[0] = 0;
12         tent->entity.baseline.angles[1] = 0;
13         tent->entity.baseline.angles[2] = 0;
14         tent->entity.baseline.origin[2] = RandomFloat(-200.0, 200.0);
15         tent->die = cl.time + 0.5;
16         tent->entity.curstate.framerate = RandomFloat(0.5, 1.5);
17         tent->entity.curstate.scale = ei.time;
18     }
19 }

 

[MetaHook] R_SparkShower

标签:

原文地址:http://www.cnblogs.com/crsky/p/4703059.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!