Re: Beacon Damage Radius [message #474133 is a reply to message #474015] |
Sun, 09 September 2012 06:09 |
StealthEye
Messages: 2518 Registered: May 2006 Location: The Netherlands
Karma:
|
General (2 Stars) |
|
|
We fixed it (actually, SH did ).
There were several issues: stock was overapproximating the distance, leading to the "beacon on airstrip does not kill the building" bug, and TT's version was underapproximating the distance by using bounding boxes unintentionally. A correct distance calculation gives results somewhere in between the TT and stock versions. To keep stock behavior as much as possible, we chose to revert to the stock algorithm (and not fix the issue properly), but if the beacon is placed on the building (i.e. touches it), the building is always killed.
I made some nice screenshots that show the issue. The red markers show places where a beacon would kill a building, the green markers show where it'd damage it. The different files show different algorithms:
correct - exact "triangle to point" distance calculation
stock - broken "centroid of triangle to point" distance calculation
tt-rc1 - broken "mesh bounding box to point" distance calculation as in RC1 and some previous versions
tt-final - stock "centroid of triangle to point" distance calculation unless placed on building, as will be used in the next release
BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
[Updated on: Sun, 09 September 2012 06:10] Report message to a moderator
|
|
|