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

[MetaHook] R_RicochetSprite

时间:2015-08-04 22:24:11      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:

By hzqst

 1 void R_RicochetSprite(float *pos, model_t *pmodel, float duration, float scale)
 2 {
 3     TEMPENTITY *tent;
 4 
 5     tent = efx.CL_TempEntAlloc(pos, pmodel);
 6     if( tent )
 7     {
 8         tent->entity.curstate.rendermode = kRenderGlow;
 9         tent->entity.curstate.renderfx = kRenderFxNoDissipation;
10         tent->entity.curstate.renderamt = 200;
11         tent->entity.baseline.renderamt = 200;
12         tent->flags = FTENT_FADEOUT;
13         VectorClear(tent->entity.baseline.origin);
14         tent->entity.curstate.scale = scale;   
15         VectorCopy(pos, tent->entity.origin);
16         tent->fadeSpeed = 8.0;
17         tent->die = cl.time;
18         tent->entity.curstate.frame = 0;
19         tent->entity.angles[2] = 45 * RandomLong(0, 7);
20     }
21 }

 

[MetaHook] R_RicochetSprite

标签:

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

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