OpenXcom Forum

Modding => OXCE Suggestions NEW => OpenXcom Extended => OXCE Suggestions OK => Topic started by: efrenespartano on August 19, 2019, 05:03:26 pm

Title: [Suggestion] Continuous wave laser
Post by: efrenespartano on August 19, 2019, 05:03:26 pm
Hello there! I have a fairly simple suggestion, which I hope is just as simple to make.

I would like to make a laser that its beam is continuous, instead of pulsed (as is the original laser projectile). This means, that the sprite of the projectile extends from the weapon to the target, in a single beam.

Of course, not only lasers, but also plasma, electric weapons or flame throwers. It would be great on flame throwers!

I wouldn't want anything very elegant to bother the devs, maybe just repeat the same sprite of the projectile again and again to give this effect.

Thanks in advance! :D

Enviado desde mi LG-M400 mediante Tapatalk

Title: Re: [Suggestion] Continuous wave laser
Post by: The Martian on August 20, 2019, 01:35:07 am
I like this idea.

Being able to have lasers draw a solid line from the weapon to the impact point would be a cool feature.

                       *Zap*
Title: Re: [Suggestion] Continuous wave laser
Post by: Meridian on February 14, 2023, 10:24:04 am
Even the original xcom had this feature :D

https://youtu.be/zGpk-Yxo_fs?t=11430
Title: Re: [Suggestion] Continuous wave laser
Post by: Finnik on February 15, 2023, 08:24:53 am
I'd really like this feature. Since OXC already has a particle system for bubbles, why can't it be changed to just draw just a straight line?
Title: Re: [Suggestion] Continuous wave laser
Post by: Meridian on February 15, 2023, 09:28:58 am
I'd really like this feature. Since OXC already has a particle system for bubbles, why can't it be changed to just draw just a straight line?

Because it's a COMPLETELY different thing?

You also don't use a nuclear submarine to cross a 20cm deep river.

I would really love to see you try though.. I can imagine at least 3 different ways how to implement this, but I can't imagine how I would use bubble particles to do that.
Title: Re: [Suggestion] Continuous wave laser
Post by: Yankes on February 15, 2023, 11:23:29 am
Because it's a COMPLETELY different thing?

You also don't use a nuclear submarine to cross a 20cm deep river.

I would really love to see you try though.. I can imagine at least 3 different ways how to implement this, but I can't imagine how I would use bubble particles to do that.
More "particles" than "bubbles", if we change that they do not move and stay in same place, reduce randomness in position you will have near straight line that will fade out. it will not be same but could be close enough.
Title: Re: [Suggestion] Continuous wave laser
Post by: Finnik on February 15, 2023, 03:24:28 pm
More "particles" than "bubbles", if we change that they do not move and stay in same place, reduce randomness in position you will have near straight line that will fade out. it will not be same but could be close enough.

Yeah, to not solve problems with drawing line "in 3D" to get it above and below tile surfaces when, say, shooting through windows. I'd rather torture bubbles code than making it from scratch and solve all core render problems, because I am not a talented coder at all.
Title: Re: [Suggestion] Continuous wave laser
Post by: The Martian on February 15, 2023, 03:41:36 pm
So instead of this:
(https://openxcom.org/forum/index.php?action=dlattach;topic=7301.0;attach=59111)

We would be seeing something more like this:
(https://openxcom.org/forum/index.php?action=dlattach;topic=7301.0;attach=59112)
Title: Re: [Suggestion] Continuous wave laser
Post by: Yankes on February 15, 2023, 04:53:32 pm
I think I could in next month look on this (particle version) and see what could be possible.

Technically OXCE could support some thing like Quake II rail gun too:
http://gamingpastime.com/wp-content/uploads/2017/07/q2_3.jpg
or
(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTcNildU7nFs_3ZPcaUscTuSvsuOnf0Z9SJcQ&usqp=CAU)
Title: Re: [Suggestion] Continuous wave laser
Post by: Finnik on February 15, 2023, 05:16:38 pm
I think I could in next month look on this (particle version) and see what could be possible.

Technically OXCE could support some thing like Quake II rail gun too:
http://gamingpastime.com/wp-content/uploads/2017/07/q2_3.jpg
or
(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTcNildU7nFs_3ZPcaUscTuSvsuOnf0Z9SJcQ&usqp=CAU)

Thanks! I hate everybody use bubbles to draw lines as laser weapons, it looks ugly.