News:

Currently available MegaGlest gameservers are listed on Play.MG.

Main Menu

Ability to give Detectors targets

Started by Omega, 30 December 2010, 00:21:07

Omega

The ability to give detectors "targets" (meaning, they can only detect those specific units) would vastly expand the stealth function. In fact, to be honest, Military will eventually need this function, as there's more one type of "stealth". For example, the Stealth Bomber is stealth, but can only be detected by the AA Launcher. For now, that's the only stealth unit, so that's fine with the current system, but eventually, there will be an opposing faction and spy units, which will use a different stealth system, only detectable by each other. Thus, the need for detectors to specify what units they can detect.

This is best done by making the detector tag something like this:
<detector value="true">
  <unit value="stealth_bomber" />
</detector>
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

Yes, but make sure not to make it too complicated so it could make the game run slower, having the option would be cool yes. whata about air detector/ground detector?

John.d.h

I would think the budding tag system from the cast-spell command could come into play here.  For example, an infrared scanner could detect stealth units marked as "biological", or some such.

silnarm

This is how I actually imagined/intended it would be done, there would be cloak 'types' and detectors would detect certain types. Much more generic, and I fully expected someone to do exactly what Omega wants to do.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

John.d.h