Author Topic: Events with delays of <1 second  (Read 1969 times)

0 Members and 1 Guest are viewing this topic.

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Events with delays of <1 second
Can it be done? If I wanted a rapid-firing sequence of events so each happens a fraction of a second after the previous one, how would I go about it? It seems that most of the SEXPs are based on INTs and not FLOATs. There are some hackish ways of doing it but none of them are reliable.

There are a couple other bugs with this mission (like the Vaporization not working and the Mjolnirs not being stealthy) but I think you can see pretty clearly what I'm trying to do.

This runs on FS2 SCP, with no mods.

[attachment deleted by ninja]
"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 Polpolion

  • The sizzle, it thinks!
  • 211
Re: Events with delays of <1 second
IIRC there was a way where you had a stealth ship moving at say 100m/s a ways away from the action area. Every 10 meters it traveled, 0.1 seconds went by, and that's how it would be measured.

like this:

When ( "Ship-has-traveled-meters (or correlating SEXP)", 10)
{
     event
     }
When ( "Ship-has-traveld-meters", 15)
{
     event 2
     }
When ( "Ship-has-traveld-meters", 21)
{
     event 3
     }

Actually, I think I screwed up the general method, but I don't really know how to re-phrase it without mucking around in FRED for a half an hour, so I hope you get the type of thing I'm saying.

EDIT: And this seems like it would be one of those hack-ish methods. Sorry I couldn't help.  :/

EDIT2: I hate you. Now I'm mucking around in FRED.
« Last Edit: February 21, 2008, 09:47:57 pm by thesizzler »

 
Re: Events with delays of <1 second
I believe Axem solved this particular problem:

It's in Karajorma's FRED Cookbook on his FAQ. Scroll down to the bottom of the link.
"You need to believe in things that aren't true. How else can they become?" -DEATH, Discworld

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Re: Events with delays of <1 second
"You're listening to member-supported Galactic Public Radio. Hello, you're on FRED Talk..."

Heh. No, but seriously, for the sake of this mission I fixed my problem by making new beam weapon entrys and altering the warmup time on each one. They now fire in sequence.

So, how about the other bugs? How do I get the Demon to blow up instantly without the death roll sequence?
"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 Axem

  • 211
Re: Events with delays of <1 second
Try greatly lowering the special explosion damage to the Demon. I believe that is one of the factors to the death roll time.

If you look at the Meson Bomb's explosion damage, its 50,000(!) (by comparison the Sath is only 800), and if you've ever tried to blow one up in a custom mission, you know they take a LONG time.

Another hacky way to do it would be setting the Kamikaze flag for the Demon and have something tiny ram into it.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Events with delays of <1 second
I think Kamikaze flag and self-destruct was a workaround for that too. 
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 Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Re: Events with delays of <1 second
Uh-huh, that sounds possible. Can you set 'kamikaze' and 'un-kamikaze' in case the ship gets destroyed by other means?
"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 FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Events with delays of <1 second
Actually you can un-kamikaze.  If there isn't a sexp for it just do another kamikaze with a damage of 0.   Found that "feature" the other day.
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