Deprecation?

Deprecation?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Deprecation?

Post by KDR_11k »

Are there any plans to deprecate old and redundant features? Stuff like the "toAirWeapon" tag (redundant because of onlyTargetCategory), Primary, Secondary and Tertiary instead of Weapon1, 2 and 3 and the HitByWeapon COB call (HitByWeaponId does everything that does and more) come to mind but I'm sure there's more.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Don't they cause unnecessary bloat? The only reason to keep them, I suppose, is to ensure compatibility with out of date content...
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

do not do away with toairweapon=1;

Categories work when the decide they feel like it. Toairweapon is at least consistent.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Categories always work for me. The internal handling of toAirWeapon is identical to onlyTargetCategory=VTOL anyway.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

Forboding Angel wrote:do not do away with toairweapon=1;

Categories work when the decide they feel like it. Toairweapon is at least consistent.
I've asked you before, what problems do you have?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: Deprecation?

Post by Guessmyname »

KDR_11k wrote:Are there any plans to deprecate old and redundant features? Stuff like the "toAirWeapon" tag (redundant because of onlyTargetCategory), Primary, Secondary and Tertiary instead of Weapon1, 2 and 3 and the HitByWeapon COB call (HitByWeaponId does everything that does and more) come to mind but I'm sure there's more.
As I recall, all HitByWeapon calls are automatically read as HitByWeaponID calls instead anyway
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Deprecation?

Post by Pxtl »

Threadsurrection here - would it actually make sense to update ToAirWeapon to be actually intelligent about targeting only-airborne units, instead of just using the unit-class? That is, target any unit that is currently off the ground (IE. ground units blasted into the air by impulse) and avoid targetting air units that are landed? That would make the tag far more useful than it's current redundant purpose.

Likewise, a ToLandWeapon tag could be provided for the reverse case.

I guess this is offtopic, and not really relevant to my current mod project, but it's always bothered me, since it the current approach generates ugly behavior in most mods with clear land/air weapon delineation.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Deprecation?

Post by REVENGE »

Yeah that would definitely make more sense. I think the old issues about consistency mainly involved mods having errors regarding classes.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re:

Post by smoth »

Forboding Angel wrote:Categories work when the decide they feel like it. Toairweapon is at least consistent.
WHAT? Um, check your tags.
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Re: Deprecation?

Post by LOrDo »

lol @ year late arguement starting.
Post Reply

Return to “Engine”