MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / lightningTweakStart

Function lightningTweakStart

src/SB/Game/zLightning.cpp:532–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532static void lightningTweakStart(const tweak_info& t)
533{
534 xVec3 s, e;
535 xVec3Add(&s, (xVec3*)&globals.player.ent.model->Mat->pos, &sTweakStart);
536 xVec3Add(&e, (xVec3*)&globals.player.ent.model->Mat->pos, &sTweakEnd);
537 gLightningTweakAddInfo.start = &s;
538 gLightningTweakAddInfo.end = &e;
539 zLightningAdd(&gLightningTweakAddInfo);
540}
541
542void zLightningUpdate(F32 dt)
543{

Callers

nothing calls this directly

Calls 2

xVec3AddFunction · 0.85
zLightningAddFunction · 0.70

Tested by

no test coverage detected