toairweapon= 1, its set on weapon and target VTOL , even forcing the onlytargetcategory to land it will not shot on land units, cuz weapon has values over unit fbismoth wrote:target category is not done on a weapon level it is done on a unit level senna. You need to name the units in question
Onlytargetcategory being ignored
Moderator: Moderators
Re: Onlytargetcategory being ignored
Re: Onlytargetcategory being ignored
ToAir weapon has been deprecated, does any project even use it?
Re: Onlytargetcategory being ignored
Yeah ba used it, but its fixed in svn.
Re: Onlytargetcategory being ignored
good, that tag needed to go.
still left with:
still left with:
Again, name the units.Senna wrote:Did u tested that torpedo, ignores categorys? because ive tested them, and seems like torpedos keeps ignoring the forcing onlytargetcategory, or maybe a missing command in torpedo wich i didnt found on wiki
Re: Onlytargetcategory being ignored
what? onlyTargetCategory is per weapon, how else would you have, say a unit with one anti-ground weapon and one anti-air weapon.smoth wrote:target category is not done on a weapon level it is done on a unit level senna. You need to name the units in question
http://springrts.com/wiki/Units-UnitDefs
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Onlytargetcategory being ignored
I think he means it is in the unit def, not the weapon def.
Re: Onlytargetcategory being ignored
SanadaUjiosan wrote:I think he means it is in the unit def, not the weapon def.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Onlytargetcategory being ignored
toairweapon was necessary because it did not allow AA units to be fpsed and then force fired at anything the controller wanted. Tag has been replaced with.... ehh lemmie look it up...smoth wrote:good, that tag needed to go.
canAttackGround = false,
Re: Onlytargetcategory being ignored
canattackground determines if a weapon can be force fired at the ground forb.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Onlytargetcategory being ignored
Yes I know... You weren't listening. The main feature of toairweapon was that it made fps firing of weapons at ground and ground units impossible. Yes it did only target category vtol too, but that wasn't the reason to use toairweapon, it was the fps fire lock.
People who previously made use of toairweapon need to know to replace it with canattackground
People who previously made use of toairweapon need to know to replace it with canattackground
Re: Onlytargetcategory being ignored
that doesn't make any sense.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Onlytargetcategory being ignored
Forb is right. I will try to explain using a list.
Toairweapon did two things:
1) make onlytargetcategory=flying units
2) make canattackground=false
Both those defs are available separately now, so toairweapon is not needed.
Toairweapon did two things:
1) make onlytargetcategory=flying units
2) make canattackground=false
Both those defs are available separately now, so toairweapon is not needed.
Re: Onlytargetcategory being ignored
I know what it did, I was saying that his statement about the FPS stuff being the "main point"
Re: Onlytargetcategory being ignored
yeah it has no sense, but its an esample to smothknorke wrote:what? onlyTargetCategory is per weapon, how else would you have, say a unit with one anti-ground weapon and one anti-air weapon.smoth wrote:target category is not done on a weapon level it is done on a unit level senna. You need to name the units in question
http://springrts.com/wiki/Units-UnitDefs
Re: Onlytargetcategory being ignored
btw, looking at the commit that removed toairweapon, and noting the lack of results from grepping the source otherwise, I'm not sure if toairweapon doing part 2 hasn't been gone for some time.CarRepairer wrote:Forb is right. I will try to explain using a list.
Toairweapon did two things:
1) make onlytargetcategory=flying units
2) make canattackground=false
Both those defs are available separately now, so toairweapon is not needed.
Re: Onlytargetcategory being ignored
lol, glad I never used it .
Re: Onlytargetcategory being ignored
FYI, toAirWeapon has never had anything to do with canAttackGround between the latter's introduction (github.com/spring/spring/commit/4f00af09a8ca6978cdb30e2d00521bee9aec0d7a for 0.75b1) and the former's removal.
(this here be a fine example of conflation, like the persistent "negative sun directions caused crashes" claim...)
(this here be a fine example of conflation, like the persistent "negative sun directions caused crashes" claim...)
Re: Onlytargetcategory being ignored
How I read the postKloot wrote:FYI, toAirWeapon has never had anything to do with canAttackGround between the latter's introduction (github.com/spring/spring/commit/4f00af09a8ca6978cdb30e2d00521bee9aec0d7a for 0.75b1) and the former's removal.
(this here be a fine example of conflation, like the persistent "negative sun directions caused crashes" claim...)
thanks for clearing that up Kloot. What about the fps thing forb is talking about
Re: Onlytargetcategory being ignored
I got no clue, but let's analyze it.
So, this is what FA should have said:
Now given what toAirWeapon did (set a weapon's onlyTargetCategory to VTOL), it would have been true that "toAirWeapon made firing of weapons at ground units" impossible (if those units happened to be in a category other than VTOL, which would be expected), whether in FPS mode or not. I would not expect toAirWeapon=true to have also blocked "firing of weapons at ground", but looking at the code today that was probably true also: any weapon with a non-default onlyTargetCategory (or canAttackGround=false, for which a check was obviously added later) can not attack the ground, again whether in FPS mode or not."The main feature of toairweapon was that it made fps firing of weapons at ground and ground units impossible."
So, this is what FA should have said:
(and toAirWeapon did not literally "make canAttackGround=false" as CR's post might lead to you believe, but it had the same effect before canAttackGround existed)"toAirWeapon=true made firing of weapons at ground and ground units with category=VTOL impossible. the more recent canAttackGround tag lifted the inability of such weapons to fire at ground."
Last edited by Kloot on 08 Feb 2012, 18:15, edited 1 time in total.
Re: Onlytargetcategory being ignored
Kloot wrote:any weapon with a non-default onlyTargetCategory (or canAttackGround=false, for which a check was obviously added later) can not attack the ground, again whether in FPS mode or not.