struct HazardWeaponDescriptor { float maxHazardDistance; float hazardRadius; float startPosNudgeOffset; float maxHazardApproxPosDeviation; float maxHazardApproxAngleDeviationDeg; };
IAgent.h
The description of the various hazardous areas related to the weapon.
float hazardRadius;
The radius of the hazard warning area (>= 0.0f) (in meters).
float maxHazardApproxAngleDeviationDeg;
How much we allow the hazard area approximation deviate from the actual movement direction of its source (>= 0.0f) (in degrees).
float maxHazardApproxPosDeviation;
How much we allow the hazard area approximation to deviate from the actual position of its source (>= 0.0f) (in meters).
float maxHazardDistance;
The maximum look ahead distance for constructing the waring area (>= 0.0f) (in meters).
float startPosNudgeOffset;
How far to nudge the start of the warn area in the forwards direction from the pivot position (in case the gun sticks out quite a bit for example) (in meters). Negative values will nudge backwards.
void GetMemoryUsage(ICrySizer * pSizer) const;
HazardWeaponDescriptor();