AIWeaponDescriptor

C++
File

IAgent.h

AIWeaponDescriptor::bSignalOnShoot Data Member
C++
bool bSignalOnShoot;
AIWeaponDescriptor::burstBulletCountMax Data Member
C++
int burstBulletCountMax;
Description

Each burst is followed by a pause.

AIWeaponDescriptor::burstBulletCountMin Data Member
C++
int burstBulletCountMin;
Description

The burst bullet count is scaled between min and max based on several factors (distance, visibility).

AIWeaponDescriptor::burstPauseTimeMax Data Member
C++
float burstPauseTimeMax;
AIWeaponDescriptor::burstPauseTimeMin Data Member
C++
float burstPauseTimeMin;
Description

The burst pause is scale between min and max.

AIWeaponDescriptor::closeDistance Data Member
C++
float closeDistance;
Description

What to consider close distance during the slow_projectile prediction

AIWeaponDescriptor::coverFireTime Data Member
C++
float coverFireTime;
Description

How long the shooting should continue after the target is not visible anymore.

AIWeaponDescriptor::drawTime Data Member
C++
float drawTime;
Description

How long the AI will shoot around the target before aiming it precisely

AIWeaponDescriptor::fChargeTime Data Member
C++
float fChargeTime;
AIWeaponDescriptor::fDamageRadius Data Member
C++
float fDamageRadius;
Description

Explosion radius for rockets/grenades.

AIWeaponDescriptor::firecmdHandler Data Member
C++
string firecmdHandler;
AIWeaponDescriptor::fRangeMax Data Member
C++
float fRangeMax;
AIWeaponDescriptor::fRangeMin Data Member
C++
float fRangeMin;
AIWeaponDescriptor::fSpeed Data Member
C++
float fSpeed;
Description

Relevant for projectiles only.

AIWeaponDescriptor::lobCriticalDistance Data Member
C++
float lobCriticalDistance;
AIWeaponDescriptor::maxAcceptableDistanceFromTarget Data Member
C++
float maxAcceptableDistanceFromTarget;
Description

Maximum distance allowed to evaluate the landing of the projectile. If less than 0 it's not taken into account.

AIWeaponDescriptor::minimumDistanceFromFriends Data Member
C++
float minimumDistanceFromFriends;
Description

Minimum distance to agents of a friendly faction. For now it is only used in the lob fire command by overriding the default value.

AIWeaponDescriptor::preferredHeight Data Member
C++
float preferredHeight;
Description

Preferred height used to throw the bullet if using a slow_projectile prediction

AIWeaponDescriptor::preferredHeightForCloseDistance Data Member
C++
float preferredHeightForCloseDistance;
Description

Preferred height used to throw the bullet if using a slow_projectile prediction for close distance

AIWeaponDescriptor::pressureMultiplier Data Member
C++
float pressureMultiplier;
AIWeaponDescriptor::projectileGravity Data Member
C++
Vec3 projectileGravity;
Description

What's the gravity of the fired projectile - Used only for predicting grenade landing

AIWeaponDescriptor::singleFireTriggerTime Data Member
C++
float singleFireTriggerTime;
Description

Interval between single shot shots. Scale randomly between 70-125%. Set to -1 for continuous fire.

AIWeaponDescriptor::smartObjectClass Data Member
C++
string smartObjectClass;
AIWeaponDescriptor::spreadRadius Data Member
C++
float spreadRadius;
Description

Miss spread radius in meters.

AIWeaponDescriptor::sweepFrequency Data Member
C++
float sweepFrequency;
Description

How fast the sweep left/right around the target direction during

AIWeaponDescriptor::sweepWidth Data Member
C++
float sweepWidth;
Description

How wide is the sweep left/right around the target direction during

AIWeaponDescriptor::AIWeaponDescriptor Constructor
C++
AIWeaponDescriptor(const string& fcHandler = "instant", float chargeTime = -1.0f, float speed = -1.0f, float damageRadius = -1.0f);
AIWeaponDescriptor::GetMemoryUsage Method
C++
void GetMemoryUsage(ICrySizer * pSizer) const;