Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Beacon Damage Radius
Re: Beacon Damage Radius [message #474133 is a reply to message #474015] Sun, 09 September 2012 06:09 Go to previous messageGo to previous message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma:
General (2 Stars)

We fixed it (actually, SH did Smile ).

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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Crash
Next Topic: Congratulations
Goto Forum:
  


Current Time: Fri Nov 22 05:14:57 MST 2024

Total time taken to generate the page: 0.01319 seconds