quick question about targetting

quick question about targetting

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

quick question about targetting

Post by Tribulex »

People were being jerks in the lobby as usual. i doubt the forum will be any different, but here goes....

Is there a way to make a unit automatically target a certain category of unit automatically, as a preference to other units? For example antiswarm prefers small little hermit crabs and human beings and big fucking lazor of doom shoots at mega giant crabs instead of trying to kill little pathetic naked humans?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: quick question about targetting

Post by FLOZi »

Combinations of onlytargetcategory and badtargetcategory with clever assignments of categories. c.f. S44. Tanks will fire first at other heavy armour, then light armour / open topped vehicles, then soft targets (N.B. though the this is partly the way weapons are handled in the unit scripts too :regret: )
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

Re: quick question about targetting

Post by SpikedHelmet »

S44 has so many categories its ridiculous.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: quick question about targetting

Post by CarRepairer »

FLOZi wrote:Tanks will fire first at other heavy armour, then light armour / open topped vehicles, then soft targets
How do you define these three levels? I know with onlytargetcategory and badtargetcategory you can define two levels (onlytartgetcategory="A", badtargetcategory="A B :arrow: shoot A first, then B). What else are you using?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: quick question about targetting

Post by FLOZi »

What else are you using?
FLOZi wrote:(N.B. though the this is partly the way weapons are handled in the unit scripts too :regret: )[/size]
Also, remember springs default priority system; higher power (or metalcost if power isn't defined) units are targeted first.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: quick question about targetting

Post by Tribulex »

Yeah but spring sucks :D


k thx i think that will work ill start messing with it.
Post Reply

Return to “Game Development”