Guest User

Untitled

a guest
Feb 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1. void Psparks_think(gentity_t * ent)
  2. {
  3.     gentity_t      *tent;
  4.  
  5. //(SA) MOVE TO CLIENT!
  6.     return;
  7.  
  8.  
  9.     if(ent->spawnflags & 1)
  10.     {
  11.         tent = G_TempEntity(ent->r.currentOrigin, EV_SPARKS_ELECTRIC);
  12.     }
  13.     else
  14.     {
  15.         tent = G_TempEntity(ent->r.currentOrigin, EV_SPARKS);
  16.     }
  17.     VectorCopy(ent->r.currentOrigin, tent->s.origin);
  18.     VectorCopy(ent->r.currentAngles, tent->s.angles);
  19.     tent->s.density = ent->health;
  20.     tent->s.frame = ent->wait;
  21.     tent->s.angles2[0] = ent->start_size;
  22.     tent->s.angles2[1] = ent->end_size;
  23.     tent->s.angles2[2] = ent->speed;
  24.  
  25.     ent->nextthink = level.time + FRAMETIME + ent->delay + (rand() % 600);
  26. }
Add Comment
Please, Sign In to add comment