[#modding] [Moddability] The ability to get a creature's accuracy, aim variance, or minimum...

Issue #6387 new
Freehold Games Bot Account created an issue

Marked for crossposting by: Noelle Lavenza (transgendeer)

Message (jump):

<Noelle Lavenza (transgendeer)> [Moddability] The ability to get a creature's accuracy, aim variance, or minimum and maximum firing angle with a given weapon and target prior to firing the weapon would be very useful, both for mods and the vanilla game—currently the logic to determine these variables (AimVariance, FlatVariance, and WeaponVariance) is spread throughout MissileWeapon.FireEvent, and events like ModifyAimVariance and ModifyMissileWeaponAngle have side effects like consuming charge or changing weapon state, which means it's unsuitable for use when only checking accuracy.
While certain components of aim/flat/weapon variance are RNG-based, like wild-firing, or unable to be determined prior to firing, like the spread-based inaccuracy when firing multiple shots, only including the known components would probably be sufficient. This would be useful for, among other things, making creatures check that their firing cone is clear before shooting, reducing friendly fire incidents drastically while still allowing things like friendly fire and infighting due to a shot going wild.

Comments (2)

  1. Log in to comment