Static turrets cannot guard

Static turrets cannot guard

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
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Static turrets cannot guard

Post by Jools »

It seems that static turrets are missing the guard function. Units such as HLT, Guardian and Big Bertha cannot guard. This despite of the fact that the mod has put a "canGuard = true"-tag in the Unitdef. So if that tag isn't followed, what determines if a unit can guard? Why does that tag exist at all?

In original TA, guard has many functions. It basically means "try to make sure that the target doesnt get killed". So you could order a Big Bertha to guard a peeper, let the peeper fly over enemy base, and the bertha would fire at whatever unit that killed the peeper. I think it's a nice functionality. I'm not sure what guard means in spring language, maybe it just means "follow that unit".

Would it be possible to enable gaurding units to defend the unit they are guarding? That's what was one big selling point of OTA, it was the first game where you could delegate tasks. It was way more complex that other RTS at the time, maybe because of this.

Edit: maybe this behaviour is intended, but why isnt the guard button then appearing for units that have canguard=true?
Post Reply

Return to “Game Development”