Author Topic: Making a beam miss  (Read 5069 times)

0 Members and 1 Guest are viewing this topic.

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Well, I've been lurking for a while...and I haven't seen this asked, so:

1. Is there a way to make a direct-fire beam miss using SEXPs? (something like fire-beam, preferably without having to add a horridly inaccurate beam table entry.)
2. Is there a way to tell if a beam hit or miss its target?

Thanks.
(´・ω・`)
=============================================================

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
First part is easy if the battle is scripted.  If the mod you are working on has some type of target you can use it.  Asteroids also work if they are in the mission.  If it doesn't just put a small ship at the max range of the beam on the firing line you want. Have it arrive right before the beam fires with no warp, fire the beam at it, and have it jump out with no warp or possibly ship vanish.  Also make it invisible to sensors.  It shouldn't be noticeable if you time it right.  Haven't tried it since retail so I don't know if there is a better way now or not.
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

 
I think there should be a SEXP that makes a beam fire at a specific coordinates

and...
:welcomeblue:
enjoy your stay! ;)
Fun while it lasted.

Then bitter.

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
To make a beam miss, use an object that is non-collidable, like a navbouy or an asteroid.  If you have FS2_Open (which you SHOULD), then you can replace its texture with invisible and make it stealth, and no one will see it.  If you decide to use a navbouy you should probably deactivate glowpoints just for future-proofedness.

The best way I can think of to tell if a beam has hit is to see how much hull the target has left after the beam fires (possibly comparing it to how much it had before).  If you just want the beam to hit, I find that fire-beam with a specific subsystem is much less likely to miss its target.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Beam missing works like a charm.
However, the only problem is that my mission is in subspace, and setting the texture to be invisible (or any invalid texture), causes it to appear as black (like seeing through even the skybox). While that definitely would not be a problem under normal circumstances...the asteroid shows up quite well in the swirly-blue-white clouds of subspace :(

EDIT: although, setting a nav bouy, sending it VERY far away...its so small that noone will ever see it. That works wonders :D Since the whole exchange is scripted anyway, it should be easy to time when a beam is supposed to hit...and I guess that works 99% of the time. Good enough.
« Last Edit: March 20, 2008, 07:45:39 pm by Droid803 »
(´・ω・`)
=============================================================

 

Offline Roanoke

  • 210
That's a point. I wonder if there was any cannon info regarding cap-ship battles in subspace (other than the Lucifer) ? I thought there was but it was B5 I was thinking of.

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
To make a beam miss, use an object that is non-collidable, like a navbouy or an asteroid.  If you have FS2_Open (which you SHOULD), then you can replace its texture with invisible and make it stealth, and no one will see it.  If you decide to use a navbouy you should probably deactivate glowpoints just for future-proofedness.

I think sensor blips should have the same effect. In addition, you don't have to replace textures and deactivate glowmaps.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline asyikarea51

  • 210
  • -__-||
This sets me thinking, was this the same thing used in Derelict?
Spoiler:
That mission with the destroyed AWACS, the Orion and the enemy AWACS camping extremely far away with all the Erinyes fighters guarding it?

 
yeah,
Spoiler:
Like when the orion snipes the AWACS from 10 kilometers away?
Fun while it lasted.

Then bitter.

 

Offline asyikarea51

  • 210
  • -__-||
Yeah, that.

It was an
Spoiler:
Orion? Sniping the friendly AWACS? I thought it was something smaller that did the sniping.

Oh well, haven't played it in a long while now. Usually I play campaigns once and never come back to them... if I do, then it's a rare occurence... :nod:

 
Ditto. But i actually remember the good moments :P
Fun while it lasted.

Then bitter.

 

Offline Flipside

  • əp!sd!l£
  • 212
Can you fire a beam at a Waypoint?

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Doesn't show up in the "replace data" area in FRED.
I haven't tried "forcing" it to do so, though.
(´・ω・`)
=============================================================

 
In Derelict you had the Morgan Tech Orion snipe an AWACs because it "missed" the transport you're supposed to escort. Sync does this as well, with a Sobek "missing" it's target and hitting a Terran corvette... which supposedly triggered a second Terran-Vasudan war all on it's own. So it has happened before in user-made campaigns, although I've never seen someone make a beam deliberately miss and hit "nothing". Artifice IIRC actually had a table entry for an invisible beam target object, but I never saw it used.

Quote
Can you fire a beam at a Waypoint?

It'll probably crash the game, but try text editing and see what happens.

Quote
Beam missing works like a charm.
However, the only problem is that my mission is in subspace, and setting the texture to be invisible (or any invalid texture), causes it to appear as black (like seeing through even the skybox).

Odd. Invisible textures should be see-through. Look at the planet bitmaps; the planets are surrounded by a shade of puke green. That shade of green is the game's see-through color. Works fine for me.

 

Offline Polpolion

  • The sizzle, it thinks!
  • 211
Quote
the planets are surrounded by a shade of puke green

I really hope your puke doesn't look like that. :wtf:

 
He means the alpha channel :P
Fun while it lasted.

Then bitter.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Ya, I think I may try that.
(´・ω・`)
=============================================================

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Quote
the planets are surrounded by a shade of puke green

I really hope your puke doesn't look like that. :wtf:

Its radioactive vomit! :nervous:

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
although I've never seen someone make a beam deliberately miss and hit "nothing".
Derelict did that, in the mission where the Auriga was chasing the three civilian ships.

 
How?
Fun while it lasted.

Then bitter.