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

Method FlashLight

client/src/main/java/jake2/client/V.java:264–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 }
263
264 private static void FlashLight() {
265
266 r_numdlights = 32;
267 for (int i = 0; i < r_dlights.length; i++)
268 r_dlights[i] = new dlight_t();
269
270 for (int i = 0; i < r_numdlights; i++) {
271 dlight_t dl = r_dlights[i];
272
273 float r = 64 * ((i % 4) - 1.5f);
274 float f = 64 * (i / 4) + 128;
275
276 for (int j = 0; j < 3; j++)
277 dl.origin[j] = ClientGlobals.cl.refdef.vieworg[j] + ClientGlobals.cl.v_forward[j] * f + ClientGlobals.cl.v_right[j] * r;
278 dl.color[0] = 1;
279 dl.color[1] = 1;
280 dl.color[2] = 0.7f;
281 dl.intensity = 150;
282 }
283 }
284
285 private static Command Gun_Next_f = (List<String> args) -> {
286 ClientGlobals.gun_frame++;

Callers 1

RenderViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected