Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: DaBrain on April 20, 2008, 11:05:47 am

Title: Death Star beam weapon ideas
Post by: DaBrain on April 20, 2008, 11:05:47 am
I'd like to create an effect for Death Star-like beam weapons.

Little beams that join into one big beam, well visually at least. I don't care if the little beams are actual beams.
It has to work as primary weapon for the player and other players in multiplayer.


I'd like to avoid scripting at this point, if possible. Well, unless all other solutions are really hackish.

Thanks in advance for any kind of help with this issue. ;)
Title: Re: Death Star beam weapon ideas
Post by: Mobius on April 20, 2008, 11:20:06 am
You can do that with FREDding...

Place an invisible, undetectable and invulnerable blip armed with a beam cannon where the small beams should merge...

Small beams hit the blip, the blip charges the main beam and fires :)

Use coordinate-manipulation to make sure that the blip moves alongside the Death Star.
Title: Re: Death Star beam weapon ideas
Post by: DaBrain on April 20, 2008, 12:02:19 pm
Who'd get the points for kills then?
This is still a bit too hackish.

The small beams could also be a mesh with an animated texture, but it would have to appear on weapon trigering...
(Triggered texture replacement, possible somehow?)
Title: Re: Death Star beam weapon ideas
Post by: Mobius on April 20, 2008, 12:13:24 pm
Well, you can get that effect with SEXPs without problems...

"Who'd get the points for kills?" Since when the Death Star is flyable?
Title: Re: Death Star beam weapon ideas
Post by: Jeff Vader on April 20, 2008, 12:23:37 pm
Since when the Death Star is flyable?[/i][/color]
I'd like to create an effect for Death Star-like beam weapons.
No one wants to fly a Death Star. It was merely a question of having weapons that are somewhat similar to the Death Star's Cannon of Ultimate DoomageTM, but most likely not in the same scale, assuming that fighters can operate it.
Title: Re: Death Star beam weapon ideas
Post by: Vasudan Admiral on April 20, 2008, 01:03:21 pm
Did you fellas totally miss this thread? http://www.hard-light.net/forums/index.php/topic,52935.0.html

:p
Title: Re: Death Star beam weapon ideas
Post by: Mobius on April 20, 2008, 01:16:03 pm
What's wrong with what I said? It should work... :nervous:
Title: Re: Death Star beam weapon ideas
Post by: Jeff Vader on April 20, 2008, 01:16:42 pm
Did you fellas totally miss this thread? http://www.hard-light.net/forums/index.php/topic,52935.0.html

:p
So... someone actually wants to fly a Death Star? K.
Title: Re: Death Star beam weapon ideas
Post by: DaBrain on April 20, 2008, 02:18:16 pm
What's wrong with what I said? It should work... :nervous:

Well, you can get that effect with SEXPs without problems...


That is still the problem...
I don't want to add special SEXPs for single ships for each level.

@VA
Right, thanks for clearing that up.
The Deathstar is flyable in Micro Space. And the beam weapon is all that is left to complete it.

If it is possible via scripting, I think we could use some help. Neither of us is a LUA scripter.  :nervous:
Title: Re: Death Star beam weapon ideas
Post by: Mobius on April 20, 2008, 02:20:23 pm
You might try the effect until you get something to use it in a normal way.

Just to see how it looks, if the effects are ok, etc. etc. ;)
Title: Re: Death Star beam weapon ideas
Post by: Snail on April 20, 2008, 03:24:18 pm
The Deathstar is flyable in Micro Space. And the beam weapon is all that is left to complete it.
The entire mod, or just the DeathStar? (I probably already know the answer)


Anyway, another idea:

Put some beam subobjects on the DeathStar. They are folded into the actual model, so you can't see them. Set them to rotate on some random axis, too. Using the animation code and scripting, set the script to say something when weapon is fired, which triggers the animation. The animation itself would be really fast (so you can't see them folding out of the model), but then it would stay in the position for a while until the beam stops firing... Requires scripting, but still works.

Another idea:

Since the mod is standalone, it can't hurt to simply add in a cue for the texture replacement thing in the tables. When weapon is fired, it changes the texture from invisible to a green texture, then changes back when the weapon stops firing. Not being a coder, I dunno how hard it would be to actually do, but meh...
Title: Re: Death Star beam weapon ideas
Post by: Jake2447 on April 20, 2008, 04:06:29 pm
What Mobius said would work, but you would have to make a nnew beam weapon without a collision effect for small beams.  The large beam would also have to fire down normals and be perpendicular to the main ship.
Title: Re: Death Star beam weapon ideas
Post by: Snail on April 20, 2008, 04:07:44 pm
What Mobius said would work, but you would have to make a nnew beam weapon without a collision effect for small beams.  The large beam would also have to fire down normals and be perpendicular to the main ship.
It's a primary weapon, not a turret, BTW.
Title: Re: Death Star beam weapon ideas
Post by: Mobius on April 20, 2008, 04:11:16 pm
I don't know how the player is supposed to use it...in any case, coordinate manipulation and every-time is what you need to make sure that the blip maintains its relative position.
Title: Re: Death Star beam weapon ideas
Post by: Snail on April 20, 2008, 04:13:50 pm
Micro Space is a deathmatch type multiplayer game where all the ships, including the DS, are like fighters.
Title: Re: Death Star beam weapon ideas
Post by: DaBrain on April 20, 2008, 06:46:05 pm
The entire mod, or just the DeathStar? (I probably already know the answer)

Just the DS. ;)
But I really want to start working on the next ship. The conception is already complete.

Put some beam subobjects on the DeathStar. They are folded into the actual model, so you can't see them. Set them to rotate on some random axis, too. Using the animation code and scripting, set the script to say something when weapon is fired, which triggers the animation. The animation itself would be really fast (so you can't see them folding out of the model), but then it would stay in the position for a while until the beam stops firing... Requires scripting, but still works.

I think that would work without scripting. Wasn't there a trigger in the ships.tbl for firing?
If not, it should be added. Sounds like a very useful function to me.

Still, this sounds like a decent approach. Hiding a mesh in the geometry and using the animation code to get it out... could work.

Since the mod is standalone, it can't hurt to simply add in a cue for the texture replacement thing in the tables. When weapon is fired, it changes the texture from invisible to a green texture, then changes back when the weapon stops firing. Not being a coder, I dunno how hard it would be to actually do, but meh...

Well, now that would be the perfect solution. Actually it would be nice for a lot of other stuff too. I instantly had an idea how it could also be used in SoL for something completely different.

Making a mesh visible, or spawning a mesh during firing... That would help with a lot of stuff.  :yes:

Micro Space is a deathmatch type multiplayer game where all the ships, including the DS, are like fighters.

Yepp, that is completely correct.

The beam should fire almost instantly, so there is no need for the other beams to appear before it does. At the same time would be more than enough.
Title: Re: Death Star beam weapon ideas
Post by: Backslash on April 21, 2008, 11:20:02 pm
Here's another possibility.  In a funny twist, this only works as a fighter using fighterbeams, not turrets... before now, nobody wanted to fly the Death Star OR the Vorlon planet destroyer :p

One bank of 8 or however many firepoints arranged in a circle, all aimed towards a center focal point.  This bank is only allowed to have a "short beam", which is a type 4 that in the $BeamInfo (http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24BeamInfo:) has a very short +Range , just enough to get to that focal point and no more (some experimentation required).  +Shots set to 8 (or however many).  No +warmup time.  A +warmdown time equal to the +Life of the next weapon, below:
Now, the second bank has only one 'invisible firepoint' out in the middle of this focal point.  It is only allowed to have the "main beam".  This bigger beam has a nice beamglow and a short +warmup time so there's at least that delay from when the small beams start firing to when the big beam actually fires.

The major downside with this method is that there is currently no "not allowed to UNlink banks" flag (that I know of).  So someone would be able to fire one without the other, which would just look silly.  Other than that, it works surprisingly well with the right tweaks, provided you're dealing with humans doing the firing.  I suspect the AI wouldn't be able to use it without a couple code tweaks to force them to fire the 'small' beams even though they won't hit anything.

Hmm, I wonder if I could tweak the code to allow beams to spawn other beams?
Title: Re: Death Star beam weapon ideas
Post by: DaBrain on April 22, 2008, 04:54:55 pm
That would be most awesome. :)

Your first method sounds pretty nice, but the unlinking issue is a serious flaw/problem.


Maybe I should mention that we're still looking for a coder to support our small project. ;)
Title: Re: Death Star beam weapon ideas
Post by: Snail on April 25, 2008, 10:11:16 am
A +warmdown time equal to the...
AFAIK that's not right, since warmdown only has to do with the beamglow, not the beam itself. If you did that it would fire, then stop firing but the origin of the beam would still be there, though no beams would be around (the brief period after the shot in which the beam origin of light sphere thing shrinking down)
Title: Re: Death Star beam weapon ideas
Post by: Backslash on April 25, 2008, 05:56:01 pm
Ah good point.  That's the one thing I tacked on at the end and didn't think through as much.  I guess just +Lifetime would be fine.
Title: Re: Death Star beam weapon ideas
Post by: colecampbell666 on April 25, 2008, 08:12:53 pm
Just change the beam warmup texture.
Title: Re: Death Star beam weapon ideas
Post by: Droid803 on April 25, 2008, 08:13:47 pm
That won't work, it'd grow and shrink and it'd look funny.
Title: Re: Death Star beam weapon ideas
Post by: jr2 on April 26, 2008, 07:30:17 am
trigger the invisible, uncollideable second beam weapons a predefined amount of time after the first beam weapons fire, with a zero warmup time?  So the warmup glow appears at the invisible uncollideable second beam weapon anchored out in space at the time calculated for the first beams to hit it?  And ofc the run time for the beams would need to be adjusted to quit at the same time.