hover=1 units with turret = 1 weapons are broken
Moderator: Moderators
Re: hover=1 units with turret = 1 weapons are broken
I think I found it, the UpdateTargetLostTimer function seems to check if the target is in radar but doesn't care about LOS.
Re: hover=1 units with turret = 1 weapons are broken
Yay, one problem down...
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: hover=1 units with turret = 1 weapons are broken
That actually answers a lot of questions... Thanks KDR.KDR_11k wrote:I think I found it, the UpdateTargetLostTimer function seems to check if the target is in radar but doesn't care about LOS.
What would be a temp solution to stuff like this? Apply an equal amount of radar as los to the unit?
I'm a little scared of sticking radar on something that is majorly mass produced. Wouldn't that eat a decent bit of performance?
Re: hover=1 units with turret = 1 weapons are broken
Didn't read entire thread but IIRC LOS_INLOS implies LOS_INRADAR, so checking for just radar is normally the same as checking for radar || los.KDR_11k wrote:I think I found it, the UpdateTargetLostTimer function seems to check if the target is in radar but doesn't care about LOS.
Re: hover=1 units with turret = 1 weapons are broken
That's interesting. Guess it handles cloaked units differently then?
Anyway, changing that code didn't fix it it seems.
Anyway, changing that code didn't fix it it seems.
Re: hover=1 units with turret = 1 weapons are broken
Cloaked units are never in LOS. (their losStatus for all enemy allyteams doesn't have LOS_INLOS)
(See LosHandler.h, it contains a if (unit->isCloaked) return false;)
That means the LOS updates in CUnit check the radarHandler (radarHandler isn't checked at all if unit is in LOS), so it can possibly still be in radar.
(See LosHandler.h, it contains a if (unit->isCloaked) return false;)
That means the LOS updates in CUnit check the radarHandler (radarHandler isn't checked at all if unit is in LOS), so it can possibly still be in radar.
Re: hover=1 units with turret = 1 weapons are broken
Bump to see if anyone has made any progress with this.
Re: hover=1 units with turret = 1 weapons are broken
is anyone looking into this bug?