MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / HasClearShot

Function HasClearShot

scripts/AIGame3.cpp:574–580  ·  view source on GitHub ↗

Checks to see if object has a clear shot

Source from the content-addressed store, hash-verified

572
573// Checks to see if object has a clear shot
574int HasClearShot(tShotData *shot_data) {
575 // Traverse the shot trajectory, gathering data
576 TraverseShotPath(shot_data);
577
578 // Analyze the shot data
579 return (ShotIsClear(shot_data->risk_factor));
580}
581
582// ==========================
583// Script class definitions

Callers 1

HasAClearGrenadeShotMethod · 0.85

Calls 2

TraverseShotPathFunction · 0.85
ShotIsClearFunction · 0.85

Tested by

no test coverage detected