Author Topic: Ftech Question  (Read 1265 times)

Offline Spanner

  • Posts: 30
  • Cookies: 0
Ftech Question
« on: April 19, 2009, 07:16:09 PM »
Is there anyway of giving certain ships an immunity to the Phased Torpedoes in ftech and possibly having a phaser beam that ignores sheilds? Sorry if this had been brought up before.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ftech Question
« Reply #1 on: April 19, 2009, 07:36:14 PM »
Both have been brought up, in my mind (and in Dashers' mind). ;)


For the first, most, if not all torpedo technologies that can be countered fall either into a "draining" category or in the "phasing" category.
For this purpose Dasher added the "IsPhaseYield" and "IsDrainYield" methods on techs.

Also, if a "On___Defense" method returns something other than 0, None or empty list/dictionary then no yield is done.

So, if you create a shield tech, that returns 1 if the yield is phasing, then it won't execute the yield.
It should be noted, nothing afterwards will be done either (which is why it works).



For your other question.
Yes, it's a long standing feature that I would really want to do, but I haven't yet found a proper solution to this.
One of the niceties of projectiles is that they can be created at any point with any speed with any module with or without a parent (ship).
And even better, if, on impact, the remaining lifetime is 0, then no damage is done, while the effect is played. Meaning you can "remove" damage. Which also means that, for instance, phased projectiles can work without damaging the shields. The tech simply creates a new projectile of the same time just beyond the shields perimiter, with the same course and speed (and target), meaning it will then go on to the hull and do a lot of damage.

Phasers, on the other hand, we can't (yet) create out of thin air, nor can we yet prevent damage done by their impact.
Solutions I've been playing with involve invisible shuttles/probes with a single phaser on them. Not very resource friendly, meaning hick-ups while playing.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Spanner

  • Posts: 30
  • Cookies: 0
Re: Ftech Question
« Reply #2 on: April 19, 2009, 08:12:31 PM »
If anybody could, you could :D. One more question if I made the shield tech would the torpedo act like a normal torpedo when it hits the shield and drain them or would it nullify the torp altogether?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Ftech Question
« Reply #3 on: April 20, 2009, 12:26:12 PM »
Normally, it wouldn't do anything, you have the explicitly set the lifetime of the projectile to 0 to nullify the damage.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.