![[MetaHook] R_SparkShower [MetaHook] R_SparkShower](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
By hzqst
void R_SparkShower(float *pos)
{
TEMPENTITY *tent; tent = efx.CL_TempEntAllocNoModel(pos);
if ( tent )
{
tent->entity.baseline.origin[] = RandomFloat(-300.0, 300.0);
tent->entity.baseline.origin[] = RandomFloat(-300.0, 300.0);
tent->flags |= FTENT_SPARKSHOWER | FTENT_COLLIDEWORLD | FTENT_SLOWGRAVITY;
tent->entity.baseline.angles[] = ;
tent->entity.baseline.angles[] = ;
tent->entity.baseline.angles[] = ;
tent->entity.baseline.origin[] = RandomFloat(-200.0, 200.0);
tent->die = cl.time + 0.5;
tent->entity.curstate.framerate = RandomFloat(0.5, 1.5);
tent->entity.curstate.scale = ei.time;
}
}