LandTargeting: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
!2{{yro}} | !2{{yro}} | ||
|LAND_SECONDARY | |LAND_SECONDARY | ||
|Can shoot land, but only with secondary | |Can shoot land, but only with secondary weapon² | ||
|} | |} | ||
¹ <small>'''Note:''' The rules at this point actually say "Land is OK". That is evidently ''wrong'', illustrated by the given game interpretation, supported by the fact that "0" already is "Land is okay", and proven in the wild a thousand times over.</small> | ¹ <small>'''Note:''' The rules at this point actually say "Land is OK". That is evidently ''wrong'', illustrated by the given game interpretation, supported by the fact that "0" already is "Land is okay", and proven in the wild a thousand times over.</small><br> | ||
² <small>'''Note:''' Has some hard coded effects, such as not actively attacking enemies on land.<br> | |||
*This sentence alone allows ships to use [[Secondary]] weapons to deal with land without the need for NavalTargeting=7, as detailed in the [[NavalTargeting]] entry.</small> | |||
==Primary/Secondary Land/Naval issues== | ==Primary/Secondary Land/Naval issues== | ||
NavalTargeting=1 | NavalTargeting=1 |
Revision as of 09:37, 12 July 2024
Flag: | LandTargeting |
File(s): | rules(md).ini |
Values: | 0, 1, 2 |
Default: | 0 |
Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes |
This flag determines whether an object can fire on land units (as opposed to naval units) or not. In YR, it additionally can allow land targeting only with the secondary weapon.
This flag, along with NavalTargeting, was likely introduced because technically, ships are ground-level units as well, and a simple AG=yes would have does allow Submarines, for example, to fire torpedoes through the water, over the ground, into a tank. This, of course, is not desired. Therefore, the additional target area distinction between "Land" and "Naval" was created. The originally intended AN and AS were probably dismissed because they were not "complex" enough, allowing only a simple "Can fire on submarines? Yes." rather than something like "Can fire on submarines? Yes, but only with it's Secondary.".
Value | Basic game interpretation | Explanation from rules |
---|---|---|
0 | LAND_OKAY | Land is okay |
1 | LAND_NOT_OKAY | Land is not okay¹ |
2 | LAND_SECONDARY | Can shoot land, but only with secondary weapon² |
¹ Note: The rules at this point actually say "Land is OK". That is evidently wrong, illustrated by the given game interpretation, supported by the fact that "0" already is "Land is okay", and proven in the wild a thousand times over.
² Note: Has some hard coded effects, such as not actively attacking enemies on land.
- This sentence alone allows ships to use Secondary weapons to deal with land without the need for NavalTargeting=7, as detailed in the NavalTargeting entry.
NavalTargeting=1 LandTargeting=2
NavalTargeting=3 LandTargeting=2
NavalTargeting=7 LandTargeting=1
NavalTargeting=4 LandTargeting=2
This section is just ment to show that Naval- & LandTargeting aren't mutually exclusive, and can confuse the hell out of you as well as the game. Apart from the usual checks, you should watch them double closely if you're doing any extended Primary/Secondary magic.
Bugs/Side-Effects/Unexpected Limitations
- Even withLandTargeting=2 But VehicleTypes and BuildingTypeswith the tag IsGattling=yes did not follow LandTargeting=2
See also
- NavalTargeting
- AA/AG's notes on paratroopers.