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 }
时间: 2024-10-01 06:45:06