MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / PointInSpread

Method PointInSpread

src/game/server/ai_basenpc.cpp:1232–1274  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Checks if point is in spread angle between source and target Pos Used to prevent friendly fire Input : Source of attack, target position, spread angle Output : -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

CalcDistanceToLine2DFunction · 0.85
CalcDistanceToLineFunction · 0.85
VectorNormalizeFunction · 0.50
DotProductFunction · 0.50
GetHullTypeMethod · 0.45

Tested by

no test coverage detected