Page 1 of 2

Guardian/Ambusher problems

Posted: 18 Jul 2007, 14:41
by Klopper
Guardians and Ambushers on high trajectory seem to show some strange behavior for me when mountains are involved, maybe has something to do with the new spherical range. They seem to be unable to shoot over or onto some mountains from certain positions, and when built on mountains their range is reduced (occured in BA 5.4). You can try it well on Altored Divide: build one next to the mountain in right middle and try to shoot onto/over the mountain, or make one on the northern/southern high mountains (the ones bordering the starting territories), set it to high trajectory and compare its displayed and real range...

Posted: 18 Jul 2007, 15:54
by Pendrokar
Well the range in high trajectory is fine but firing isn't! They rly don't shoot over hills(Well one thing that could be the cause is that you can't fire over hills in FPS!!!)!
Image

Posted: 18 Jul 2007, 17:38
by Klopper
maybe that range reduction when they are on a mountain and on high trajectory doesn't happen always, i have a test replay where it occurs though...i tested it with a guardian on altored divide, built on a mountain and set to high trajectory afterwards, and it only was able to shoot at half or so of its displayed range...

Posted: 18 Jul 2007, 22:11
by miki
i think that spring calculates the hight as distance, so its reduced, and the other way around...

Posted: 19 Jul 2007, 01:26
by YokoZar
Pendrokar wrote:Well the range in high trajectory is fine but firing isn't! They rly don't shoot over hills(Well one thing that could be the cause is that you can't fire over hills in FPS!!!)!
Image
This is a good screenshot - a guardian there simply will not shoot at anything to the left or underneath it, even though it's well within range.

Posted: 19 Jul 2007, 08:17
by Klopper
Don't forget it's set to high trajectory so it usually would have been able to shoot there...

Posted: 19 Jul 2007, 23:44
by Spawn_Retard
i had this problem with my own mod seconds ago, where a guardian wouldnt fire off a mountain to a lower platform.

Posted: 20 Jul 2007, 01:08
by BigSteve
I had this problem too, a toaster wouldnt fire from a mountian onto a lab which was in range and not not obstructed.

Re: Guardian/Ambusher problems

Posted: 20 Jul 2007, 03:47
by VonGratz
Klopper wrote:Guardians and Ambushers on high trajectory seem to show some strange behavior for me when mountains are involved, maybe has something to do with the new spherical range. They seem to be unable to shoot over or onto some mountains from certain positions, and when built on mountains their range is reduced (occured in BA 5.4). You can try it well on Altored Divide: build one next to the mountain in right middle and try to shoot onto/over the mountain, or make one on the northern/southern high mountains (the ones bordering the starting territories), set it to high trajectory and compare its displayed and real range...
I think that could be the tsg highangle=1: in that mod...
VonGratz :wink:

Posted: 20 Jul 2007, 08:45
by imbaczek
Didn't look at the source or test it, but it may be that cannons use spherical range checking instead of, um, parabolic.

Posted: 20 Jul 2007, 09:23
by KDR_11k
ALL weapons use spherical range checking as a fdefault in 75b*, except for the MeleeWeapon.

Posted: 21 Jul 2007, 00:19
by imbaczek
this particular bug should be fixed in http://spring.clan-sy.com/mantis/view.php?id=565

Posted: 21 Jul 2007, 00:31
by Pendrokar
this particular bug should be fixed in http://spring.clan-sy.com/mantis/view.php?id=565
But what about high trajectory not shooting over hills???

Posted: 21 Jul 2007, 01:10
by imbaczek
will investigate.

edit: guardian is able to shoot to the other side of the hill on small divide. is there something else wrong?

Posted: 21 Jul 2007, 02:54
by Caydr
Just a wild idea:

Unless BA has adjusted them, the ambusher/guardian uses some fancy scripting (courtesy of Archangel Of Death) to give them that "huge damage on HT" "low damage on LT" effect... that might be what's confusing the game. The unit actually has two weapons, just different ones are allowed to fire under different circumstances... it was an unusual fix, I wouldn't be surprised if it causes problems in some circumstances.

Posted: 21 Jul 2007, 20:20
by Spawn_Retard
you can check it with island of war 1.0 if you take the mountain nearest right on the bottom side.

i tried a firing off it, and even though the island was well in range of the shot nothing happend, HT or LT didnt work.

Posted: 21 Jul 2007, 23:34
by Lippy
Yes, ive been having the same problem too. I think its connected to this: http://spring.clan-sy.com/phpbb/viewtopic.php?t=10493.
KDR said to enable old style you need to enable cylinder targetting... not that i know what that means.. neither does Noize to fix BA.

Posted: 22 Jul 2007, 13:08
by imbaczek
Lippy wrote:Yes, ive been having the same problem too. I think its connected to this: http://spring.clan-sy.com/phpbb/viewtopic.php?t=10493.
KDR said to enable old style you need to enable cylinder targetting... not that i know what that means.. neither does Noize to fix BA.
The problem is essentially unfixable now (as in "keep the old behaviour") - you can try setting cylinderTargetting to unit's weapon_range/unit_radius as something _somewhat_ viable. The real fix is in a patch I submitted, but Tobi being on vacation means no commit and no bugfix release.

Posted: 22 Jul 2007, 15:22
by KDR_11k
Tobi is necessary for releases but any dev can commit.

Posted: 22 Jul 2007, 20:31
by YokoZar
Caydr wrote:Just a wild idea:

Unless BA has adjusted them, the ambusher/guardian uses some fancy scripting (courtesy of Archangel Of Death) to give them that "huge damage on HT" "low damage on LT" effect... that might be what's confusing the game. The unit actually has two weapons, just different ones are allowed to fire under different circumstances... it was an unusual fix, I wouldn't be surprised if it causes problems in some circumstances.
Excuse me? What's the justification for having a guardian do more damage with high trajectory?