HazardWeaponDescriptor

C++
struct HazardWeaponDescriptor {
  float maxHazardDistance;
  float hazardRadius;
  float startPosNudgeOffset;
  float maxHazardApproxPosDeviation;
  float maxHazardApproxAngleDeviationDeg;
};
File

IAgent.h

Description

The description of the various hazardous areas related to the weapon.

HazardWeaponDescriptor::hazardRadius Data Member
C++
float hazardRadius;
Description

The radius of the hazard warning area (>= 0.0f) (in meters).

HazardWeaponDescriptor::maxHazardApproxAngleDeviationDeg Data Member
C++
float maxHazardApproxAngleDeviationDeg;
Description

How much we allow the hazard area approximation deviate from the actual movement direction of its source (>= 0.0f) (in degrees).

HazardWeaponDescriptor::maxHazardApproxPosDeviation Data Member
C++
float maxHazardApproxPosDeviation;
Description

How much we allow the hazard area approximation to deviate from the actual position of its source (>= 0.0f) (in meters).

HazardWeaponDescriptor::maxHazardDistance Data Member
C++
float maxHazardDistance;
Description

The maximum look ahead distance for constructing the waring area (>= 0.0f) (in meters).

HazardWeaponDescriptor::startPosNudgeOffset Data Member
C++
float startPosNudgeOffset;
Description

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.

HazardWeaponDescriptor::GetMemoryUsage Method
C++
void GetMemoryUsage(ICrySizer * pSizer) const;
HazardWeaponDescriptor::HazardWeaponDescriptor Constructor
C++
HazardWeaponDescriptor();