MCPcopy Create free account
hub / github.com/demoth/jake2 / SmokeAndFlash

Method SmokeAndFlash

client/src/main/java/jake2/client/CL_tent.java:366–384  ·  view source on GitHub ↗
(float[] origin)

Source from the content-addressed store, hash-verified

364 * ================= CL_SmokeAndFlash =================
365 */
366 static void SmokeAndFlash(float[] origin) {
367 explosion_t ex;
368
369 ex = AllocExplosion();
370 Math3D.VectorCopy(origin, ex.ent.origin);
371 ex.type = ex_misc;
372 ex.frames = 4;
373 ex.ent.flags = Defines.RF_TRANSLUCENT;
374 ex.start = ClientGlobals.cl.frame.servertime - 100;
375 ex.ent.model = cl_mod_smoke;
376
377 ex = AllocExplosion();
378 Math3D.VectorCopy(origin, ex.ent.origin);
379 ex.type = ex_flash;
380 ex.ent.flags = Defines.RF_FULLBRIGHT;
381 ex.frames = 2;
382 ex.start = ClientGlobals.cl.frame.servertime - 100;
383 ex.ent.model = cl_mod_flash;
384 }
385
386 /*
387 * =================

Callers 2

ParseMuzzleFlash2Method · 0.95
ParseTEntMethod · 0.95

Calls 2

AllocExplosionMethod · 0.95
VectorCopyMethod · 0.95

Tested by

no test coverage detected