MCPcopy Create free account
hub / github.com/assaultcube/AC / expdist

Function expdist

source/src/weapon.cpp:640–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640float expdist(playerent *o, vec &dir, const vec &v)
641{
642 vec middle = o->o;
643 middle.z += (o->aboveeye-o->eyeheight)/2;
644 float dist = middle.dist(v, dir);
645 dir.div(dist);
646 if(dist<0) dist = 0;
647 return dist;
648}
649
650void radialeffect(playerent *o, vec &v, int qdam, playerent *at, int gun)
651{

Callers 1

radialeffectFunction · 0.85

Calls 1

distMethod · 0.80

Tested by

no test coverage detected