(float[] origin)
| 495 | // stack variable |
| 496 | // dir |
| 497 | static void MonsterPlasma_Shell(float[] origin) { |
| 498 | cparticle_t p; |
| 499 | |
| 500 | for (int i = 0; i < 40; i++) { |
| 501 | if (CL_fx.free_particles == null) |
| 502 | return; |
| 503 | p = CL_fx.free_particles; |
| 504 | CL_fx.free_particles = p.next; |
| 505 | p.next = CL_fx.active_particles; |
| 506 | CL_fx.active_particles = p; |
| 507 | Math3D.VectorClear(p.accel); |
| 508 | |
| 509 | p.time = ClientGlobals.cl.time; |
| 510 | |
| 511 | p.alpha = 1.0f; |
| 512 | p.alphavel = CL_fx.INSTANT_PARTICLE; |
| 513 | p.color = 0xe0; |
| 514 | |
| 515 | dir[0] = Lib.crandom(); |
| 516 | dir[1] = Lib.crandom(); |
| 517 | dir[2] = Lib.crandom(); |
| 518 | Math3D.VectorNormalize(dir); |
| 519 | |
| 520 | Math3D.VectorMA(origin, 10, dir, p.org); |
| 521 | // VectorMA(origin, 10*(((rand () & 0x7fff) / ((float)0x7fff))), |
| 522 | // dir, p.org); |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | private static int[] wb_colortable = { 2 * 8, 13 * 8, 21 * 8, 18 * 8 }; |
| 527 |
no test coverage detected