[Customize] Weapon range finding in cylinder
Range finding in cylinder
- In vanilla, technos in air will ignore the distance in Z axis when checking if the target is in range. Now you can use the following flags to make technos always range finding like that.
-
[General]->AlwaysCylinderRangefindingcontrols this globally, and can be customized per weapon type. - Mind that set the flags to
falsemeaning "use default" rather than "disable". Technos in air will always range finding in cylinder like vanilla, despite what you set.
In rulesmd.ini:
[General] ; WeaponType
AlwaysCylinderRangefinding=false ; boolean
[SOMEWEAPON] ; WeaponType
AlwaysCylinderRangefinding= ; boolean
Todo:
- check if there is any Phobos function that has its own range-finding impl.
- check if
GuardRangeis checked in spherical. - check if
MouseOverCellandMouseOverObjectis checked in spherical. I was working on the DamageArea-related works last day and found that Phobos has its own cellspread function for some effects. Need to check if this is happening on weapon range finding.
Perhaps we don't need to add an Always to the tag name. CylinderRangefinding would be clear enough I think
Changed.
Looks fine logically. Also, can be named
UseCylinderRangefindingfor weapontypes
Renamed to CylinderRangefinding
Only handles the vanilla weapon rangefinding, at least for now. Other rangefinding operations should be considered later, if necessary.
There is currently a bug suspected to be caused by this feature, which can cause misbehavior in judging the distance when the firing unit is located on the bridge.
Nightly build for this pull request:
- compiled-dll-8c693efb40463ae5936cfb9502bf3561736cf658.zip These artifacts will expire in 90 days and will not be available for download after that time.
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.
There is currently a bug suspected to be caused by this feature, which can cause misbehavior in judging the distance when the firing unit is located on the bridge.-----------谷歌翻译-----------当前有一个错误怀疑是由此功能引起的,这可能会导致行为不当,以判断射击单元位于桥上时的距离。
The bug mentioned here should have been resolved. Now this pr is ready for review.