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

Function addscorchmark

source/src/renderparticles.cpp:647–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645VARP(scorchttl, 0, 10000, 30000);
646
647bool addscorchmark(vec &o, float radius)
648{
649 if(!scorchttl || !scorch) return false;
650 if(OUTBORD((int)o.x, (int)o.y)) return false;
651 sqr *s = S((int)o.x, (int)o.y);
652 if(s->type!=SPACE || o.z-s->floor>radius) return false;
653 newparticle(vec(o.x, o.y, s->floor+0.02f), vec(0, 0, 1), scorchttl, 9);
654 return true;
655}
656
657VARP(shotline, 0, 1, 1);
658VARP(shotlinettl, 0, 75, 10000);

Callers 1

splashMethod · 0.85

Calls 2

newparticleFunction · 0.85
vecClass · 0.85

Tested by

no test coverage detected