Author Topic: Beam-protect destroyed ship  (Read 2558 times)

0 Members and 1 Guest are viewing this topic.

Beam-protect destroyed ship
Hi! I have a question:

Is it possible to prevent ships from firing their beams on already destroyed enemy vessel (enemy has 0% hull but hasn't exploded yet)? I was trying to do it by beam-protect SEXP (if is-destroyed-delay then beam-protect) but it seems to have no effect (maybe beam-protect doesn't work on destroyed ships?). I don't want to do it by locking beams of friendly ships, because there may be other targets for them. Any suggestions? :)

 
Re: Beam-protect destroyed ship
you could try an ignore order instead of beam protect *edit just make sure you give it higher priority than any attack orders

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Beam-protect destroyed ship
but if you get 0% hull then it's not the same ship... or is it? are you replacing it ?

maybe the (if-destroyed-delay then beam-protect) is not triggering because you never get a true on the destroyed-delay.
change that one to something else.
el hombre vicio...

 
Re: Beam-protect destroyed ship
i think there may be a is-hull-at sexp... im not sure off the top of my head. maybe that would work better (if it exists)

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Beam-protect destroyed ship
If the ship is a 0 hull it has been destroyed.  None of those sexps will do anything because they will check the logs and see that the ship is destroyed and not change anything. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: Beam-protect destroyed ship
When
<
-hits left
--ship
-1
ai-goals
-ai-ignore
--ship
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Re: Beam-protect destroyed ship
Not AI Ignore... then it might actually sit there at 1% hull and never be killed unless the player does something. Try beam-protect-ship instead.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Beam-protect destroyed ship
then you add a new line right after that one and set the hull to 0% and that's it, but it will not appear as destroyed by the beams in the events log.
el hombre vicio...

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: Beam-protect destroyed ship
Not AI Ignore... then it might actually sit there at 1% hull and never be killed unless the player does something. Try beam-protect-ship instead.

By the time the event triggers the ships will already be at 0 HP. HP goes down fast and the ordinance already fired won't stop.
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 
Re: Beam-protect destroyed ship
you could also remove the blow up times from the ship tables =p instant kaboom when hull hits 0

  
Re: Beam-protect destroyed ship
OK, big thanks guys :) I'll try some of this :)