View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0020913 | AI War 2 | Bug - Gameplay | Feb 7, 2019 1:47 am | Feb 19, 2019 10:05 am | |
Reporter | wm46 | Assigned To | Chris_McElligottPark | ||
Status | resolved | Resolution | fixed | ||
Product Version | 0.811 Transport Ships | ||||
Fixed in Version | 0.813 Tractor Tentacles | ||||
Summary | 0020913: Black Widow Golem tractors ships outside of its own range | ||||
Description | The tractor range on the BWG is 8000 and the attack range is also 8000, but somehow ships are getting tractored outside of the range of its own cannons. I double checked the XML and there's no sneaky extra range per mark that gets added, and the C# looks fine: if ( !TractorPlanning.NonClosure_TractorSource.GetIsWithinRangeOf( otherEntity, TractorPlanning.NonClosure_TractorRange ) ) continue; I don't know what's going on in GameEntity_Squad, but it seems like its searching a greater area than what you pass to it, so it'd be better if the weapon range was strictly larger than the tractor range. | ||||
Tags | No tags attached. | ||||
|
Second option: change: GetIsWithinRangeOf( otherEntity, TractorPlanning.NonClosure_TractorRange ) to something like: GetIsWithinRangeOf ( otherEntity, TractorPlanning.NonClosure_TractorRange - TractorPlanning.NonClosure_TractorSource.DataForMark.Radius ) (Note: I don't know if TractorPlanning.NonClosure_TractorSource.DataForMark.Radius is the proper way to access the source entity radius, not my fault if the code explodes.) |
|
Mission accomplished, my fix works. Double check on your end. |
|
Forgot to mention just in case it wasn't clear, I was modifying line 114 of TractorPlanning.cs |
|
Chris, I don't know this logic |
|
That fix is included now. |
Date Modified | Username | Field | Change |
---|---|---|---|
Feb 7, 2019 1:47 am | wm46 | New Issue | |
Feb 7, 2019 2:09 am | wm46 | Note Added: 0050781 | |
Feb 7, 2019 2:16 am | wm46 | Note Added: 0050782 | |
Feb 7, 2019 2:21 am | wm46 | Note Added: 0050783 | |
Feb 7, 2019 11:20 am | BadgerBadger | Assigned To | => Chris_McElligottPark |
Feb 7, 2019 11:20 am | BadgerBadger | Status | new => assigned |
Feb 7, 2019 11:20 am | BadgerBadger | Note Added: 0050788 | |
Feb 19, 2019 10:05 am | RocketAssistedPuffin | Status | assigned => resolved |
Feb 19, 2019 10:05 am | RocketAssistedPuffin | Resolution | open => fixed |
Feb 19, 2019 10:05 am | RocketAssistedPuffin | Fixed in Version | => 0.813 Tractor Tentacles |
Feb 19, 2019 10:05 am | RocketAssistedPuffin | Note Added: 0050819 |