Author Topic: Ability to give Detectors targets  (Read 1308 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Ability to give Detectors targets
« on: 30 December 2010, 00:21:07 »
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:
Code: [Select]
<detector value="true">
  <unit value="stealth_bomber" />
</detector>
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Gabbe

  • Guest
Re: Ability to give Detectors targets
« Reply #1 on: 30 December 2010, 01:03:18 »
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

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Ability to give Detectors targets
« Reply #2 on: 30 December 2010, 11:49:40 »
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

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Ability to give Detectors targets
« Reply #3 on: 3 January 2011, 01:01:53 »
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

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Ability to give Detectors targets
« Reply #4 on: 9 February 2011, 03:11:23 »
Extraneous posts moved to the appropriate thread: https://forum.megaglest.org/index.php?topic=3802.0

Have a nice day.