Laser/Phaser style weapon

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
AFADoomer
Posts: 1346
Joined: Tue Jul 15, 2003 4:18 pm

Laser/Phaser style weapon

Post by AFADoomer »

Hi all-

I was wondering if it's possible to implement a beam style weapon that has a continuous beam in Zdoom... Any ideas? I tried searching but couldn't find anything on this...

I'm thinking the answer will be "Wait for Doom Script," but I still had to ask...

Thanks!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Laser/Phaser style weapon

Post by Graf Zahl »

AFADoomer wrote:Hi all-

I was wondering if it's possible to implement a beam style weapon that has a continuous beam in Zdoom... Any ideas? I tried searching but couldn't find anything on this...

I'm thinking the answer will be "Wait for Doom Script," but I still had to ask...

Thanks!

Not possible. There are no means to do a continuous beam. Even with DoomScript this wouldn't be so easy because the engine simply doesn't support this feature.
User avatar
Galaxy_Stranger
Posts: 1326
Joined: Sat Aug 16, 2003 11:42 pm
Location: Shropshire

Post by Galaxy_Stranger »

Well, you could fake it.

I played around with the idea a couple times. What you can do is take a projectile weapon that has sprites and use a graphic that does the job.

If you want to emulate a Phaser, I would probably start with the plasma gun. Instead of sperical sprites, I would make the graphics short lines, and then use Dehacked to modify how the gun works. Maybe the BFG would work a little better, because it doesn't have a continuous stream. I'd make it's firing sequence a little faster, just enough so you could hold it down for a continuous shot. Then, all you'd need to do is replace the BFG graphic.

Yeah - I think that would work.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

You could also modify the chaingun graphics to show a beam shooting off into the distance and, if possible, reduce the amount of bullet spread and possibly change the decal it leaves.

If DoomScript were implemented, this would presumably be feasible using a modified railgun. That is, a weapon which emits particles in a solid stream at a constant rate while the mouse button is held down. I don't see how the engine would limit this effect.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

HotWax wrote:You could also modify the chaingun graphics to show a beam shooting off into the distance and, if possible, reduce the amount of bullet spread and possibly change the decal it leaves.

If DoomScript were implemented, this would presumably be feasible using a modified railgun. That is, a weapon which emits particles in a solid stream at a constant rate while the mouse button is held down. I don't see how the engine would limit this effect.
This still isn't a continuous beam of light - that's what he asked for. Your suggestion is probably the closest one can get but the real deal isn't possible in Doom.
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Post by Kate »

It would be possible to make it continuous by simply re-firing the weapon every game tic the +attack key is held down
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Post by The Ultimate DooMer »

The railgun will work - simply change the gap between firing frames to 1 tic (I've seen a rapid fire railgun before), and then replace the graphics.

And the chainsaw is continuous - make it fire a projectile and replace it with a continuous beam.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Graf Zahl wrote:This still isn't a continuous beam of light - that's what he asked for. Your suggestion is probably the closest one can get but the real deal isn't possible in Doom.
What are you basing this "fact" on? Making a beam weapon that uses particles would clearly be possible in DoomScript since A) You could do *ANYTHING* within the engine's limitations and B) The engine is fully capable of rendering particles.

The railgun beam is a solid beam of particles originating from the end of your gun and ending at a solid map structure. Modifying it slightly to constantly emit such a trail should require no more than a minor code modification now, and should be elementary to do in DoomScript.
User avatar
AFADoomer
Posts: 1346
Joined: Tue Jul 15, 2003 4:18 pm

Post by AFADoomer »

Thanks guys! Maybe I'll just wait for the (eventual) source release when .48 is released, and go from there and try to code it in myself...

Return to “Editing (Archive)”