New Weapon tdf tag - Page 2

New Weapon tdf tag

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

Moderator: Moderators

Uberleechen
Posts: 36
Joined: 22 Nov 2006, 23:48

Post by Uberleechen » 07 Feb 2007, 17:20

Doesn't commandfire=1 mean that things only shoot once per order to attack? (Eg. nukes)

If so, then bombers would not circle around to bomb the target you have designated (unless I'm just off my rocker. If so please feel free to denigrate me as you please.).
0 x

User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle » 07 Feb 2007, 17:22

Bombers aren't neccessarily "fire and forget" weapons.
0 x

User avatar
smartie
NOTA Developer
Posts: 146
Joined: 23 Jun 2005, 19:29

Post by smartie » 26 May 2007, 10:58

Sorry to bring back an old post, but has anyone gotten this to work? I was trying out a recent build and this tag doesn't seem to do anything. It sounds like fighters should completely ignore ground targets if all their weapons are set to canAttackGround=0;

I set the tag and put both of their weapons as toairweapon=1; but fighters still swoop down at peewee's and stuff, even though they don't fire their missiles.
0 x

User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname » 26 May 2007, 11:06

canAttackGround simply stops units firing that weapon when directly ordered to (in FPS mode or outside of it). It doesn't prevent units shooting at ground targets by it's own.
0 x

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

Post by KDR_11k » 26 May 2007, 11:09

Ground refers to the terrain here, i.e. an attack order on unoccupied terrain.
0 x

User avatar
smartie
NOTA Developer
Posts: 146
Joined: 23 Jun 2005, 19:29

Post by smartie » 26 May 2007, 13:37

Ah, I misunderstood. This would be a nice thing to have though. As it is there's no good way to prevent fighters from going after ground units.
0 x

Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi » 26 May 2007, 16:54

There's onlyTargetCategory for that right?
0 x

User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle » 26 May 2007, 17:07

Was there a tag for an exception like target everything but this group?
0 x

User avatar
smartie
NOTA Developer
Posts: 146
Joined: 23 Jun 2005, 19:29

Post by smartie » 26 May 2007, 20:34

onlyTargetCategory doesn't affect fighters. They will still sloop down at units and act like they are trying to attack them.
I've also tried NoChaseCategory=NOTAIR; and that doesn't affect them either.
0 x

User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle » 26 May 2007, 21:08

NoChase means they won't go after them.

A solution would be to add to everything which isn't a ground unit NOTGROUND as category and set onlyTargetCategory to NOTGROUND.
0 x

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

Post by KDR_11k » 26 May 2007, 21:11

Tobi wrote:There's onlyTargetCategory for that right?
It gets ignored for me when I try to set it for the whole unit, only per-weapon works.
0 x

User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger » 26 May 2007, 21:43

Rattle it doesnt matter what you do to fighters they will still attempt to attack targets, even if their weapons cant fire at them, and they are ordered not to chase that.. least in the current version..
0 x

User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch » 26 May 2007, 21:43

KDR_11k wrote:It gets ignored for me when I try to set it for the whole unit, only per-weapon works.
OnlyTargetCategory is a per-weapon tag (e.g. there is a OnlyTargetCategory1, OnlyTargetCategory2, ..., OnlyTargetCategory16, but no OnlyTargetCategory). But, when applied to fighters, it doesn't work properly: the fighter properly cannot fire at units outside of its OnlyTargetCategory, but it still tries to attack them (it makes attack runs, dives at ground units, but fires no shots). This messes up some of my setups. I want fighters to have so high CruiseAlt that they are out of reach of light AA weapons, but when executing those useless dives at ground units, they come into range of everything.
0 x

User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger » 26 May 2007, 21:45

Thats not a mess up Yuritch, by Target, it means can fire, so that tag really should read onlyfireatcatagory.. the fighters will still target that, in fact any unit will act this way with this tag, not just fighters, usually however nochase catagory sorts this out, however for fighters this does not apply..
0 x

Post Reply

Return to “Engine”