Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

[OXP REQ] Laser burstfire module

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

[OXP REQ] Laser burstfire module

Post by Cmdr Wyvern »

I've managed to simulate burst fire using my Saitek joystick profiler, thusly:

Image

What this does is fire a short burst with a single pull of the trigger. Holding the trigger fires a burst, waits a half second, fires another burst... Lather rinse repeat till the trigger is released. Obviously this is useful for Saitek users, and maybe other joystick profilers.

Tactical: It takes longer to overheat a laser with this in play, and allows the combateer to 'meter' the damage dealt to hostile ships, ie convincing a pirate to eject, or a pirate's victim to drop cargo. It also adds a bit of practical edge to "turn n' burn" close-range dogfighting.

I'm thinking it may be possible - and even more practical - to do this with an equipment oxp, as a buyable, primable module for your beam/military laser. As well as opening burstfire to any controller on any platform. :) My script-fu isn't up to it though...
Any of you oxp wizards wanna give it a shot? (pun intended)
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Re: [OXP REQ] Laser burstfire module

Post by Thargoid »

Firing the player's lasers isn't available to scripting if I remember correctly, so it's a no-go'er...

Sorry
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: [OXP REQ] Laser burstfire module

Post by Cmdr Wyvern »

Ok. It could be a feature to add to the core game then, as per this thread.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: [OXP REQ] Laser burstfire module

Post by Diziet Sma »

Cmdr Wyvern wrote:
I've managed to simulate burst fire using my Saitek joystick profiler, thusly:

Image

What this does is fire a short burst with a single pull of the trigger. Holding the trigger fires a burst, waits a half second, fires another burst... Lather rinse repeat till the trigger is released. Obviously this is useful for Saitek users, and maybe other joystick profilers.
Nice.. pity the Saitek profiler only runs on Windows.. otherwise I'd give it a shot.

(pun intended)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: [OXP REQ] Laser burstfire module

Post by Cmdr Wyvern »

I know right! That's why I suggested a bustfire module as an oxp/oxz; no profiler software needed.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
Potential Debris
Dangerous
Dangerous
Posts: 75
Joined: Tue Apr 19, 2011 10:42 am
Location: UK

Re: [OXP REQ] Laser burstfire module

Post by Potential Debris »

As a workaround, would it be possible to create a new laser weapon with pulse-firing at half-second intervals, but better damage output to simulate a burst-fired military or beam laser?
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6311
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: [OXP REQ] Laser burstfire module

Post by Diziet Sma »

That would still require changes to the core code, I suspect.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: [OXP REQ] Laser burstfire module

Post by Zireael »

Anything to do with lasers, with a possible exception of two known 'multiple same-facing lasers' hack OXPs, requires changes in the core code.

That said, I say YEAH to the idea.
dertien
---- E L I T E ----
---- E L I T E ----
Posts: 471
Joined: Sun Jan 23, 2011 9:27 pm
Location: Belgium, Monarchy, Feudal, Overtaxed system

Re: [OXP REQ] Laser burstfire module

Post by dertien »

Although that this is going to get complicated and probably will never make it ingame, why not something like this:

One laser installed:

- continuous fire (more heat) + burst fire (less heat)

Two identical lasers facing same direction installed

3 modes switchable with "b" after priming:

- alternating/cycle fire: like burst fire but being fired in turn by either laser instead of just one. (less heat)
- single fire: selected laser fires - burst of continuous
- linked fire(50%,60%,70% more heat per shot generated compared to single fire to counter ueber ships) And only allow to fire again if heat dissipation is below a certain percentage. - burst only available

Two different lasers facing the same direction installed:

- alternating/cycle fire
- single fire - burst of continuous
- linked fire not available (link config incompatible)
Alpha Backer of Elite Dangerous
With 250 GBP :D
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: [OXP REQ] Laser burstfire module

Post by Cmdr Wyvern »

While trying to ignore the ppl obsessed with turning oolite into an ED clone :gives Dertien a look:, and the Jamesons who demanded laser coolers *you know who you are*, let's have a detailed look at the profiler command, to understand how it works.
Image
In the "press" section, the 0.100 is the duration of the burst, at .10 second.
In the "repeat" section, the 0.500 is the interval between bursts; it waits a half second before firing again for a .10 second burst.

This is editable in the profiler: Setting say a duration for 0.250 and a interval of 0.150 makes a military laser act more or less like a glorified pulse laser - firing short bursts four times a second, allowing a slightly cooler operation while of course delivering the range and firepower a mil laser is famous for.

That's not taking latency into effect though, due to using outside-of-game software (the profiler) to do stupid laser tricks ingame, and needing more machine resources and cpu clock.

If this could be done ingame via oxp, then I'd propose being able to tweak duration and interval via oxpconfig, giving access of the device to NPCs (why should the player have all the fun?), being able to switch it on and off as primable equipment, being able to take battle damage, and making it a mod only usable for beam and military lasers (pulse and mining lasers already cycle-fire).

As for multiple forward guns, *PFFT!!!* Oolite is Oolite, ED is ED, let's keep that way please.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: [OXP REQ] Laser burstfire module

Post by Zireael »

I like dertien's ideas as it may - ED has a lot of good ideas (and some bad) and dertien's putting an original spin on those. Besides, they are all OXP ideas and not suggestions for changing the core game.
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: [OXP REQ] Laser burstfire module

Post by Cmdr Wyvern »

Back to the issue of multiple fore weapons...
Multi fore lasers for npcs have been supported in the core since forever, but only as subents armed with lasers. The core ships don't have this of course, but oxp npcs could have as many as you could find room on the model for the subents. Caveat: Never was officially supported for the player ship, and likely still isn't.
There's some oxp "dirty hack" workarounds that can give your player ship a backup fore weapon, ie Primable Laser and Railgun.

Also supported in core, for npcs and player alike, are plasma turrets: Semi-autonomous, self-aiming, short range projectile weapons mounted on subents. Not available on core ships, but on oxp ships you can go nuts with them. Pointed forwards they make an ok backup weapon, pointed any other direction they make decent point-defense missile killers. Caveats: Bandit ship (or incoming missile) must be targeted and hostile to you, or the turret simply ignores them.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [OXP REQ] Laser burstfire module

Post by cim »

Cmdr Wyvern wrote:
The core ships don't have this of course, but oxp npcs could have as many as you could find room on the model for the subents. Caveat: Never was officially supported for the player ship, and likely still isn't.
The amount of weird cases supporting it for NPCs adds to the game, trying to work out which weapons they should be firing in particular combat situations, and whether they even have forward weapons armed and ready... I'm definitely in no hurry to look at it for the player.

For the burstfire module ... this is actually OXPable, from 1.77 onwards, though probably not compatibly with other laser-affecting OXPs. Here's one way, in outline, if someone wants to give it a go. Watch the laser temperature in a frame callback, to detect the player firing their laser. After the temperature has risen consistently with the desired burst length (beam/mil lasers fire a shot every 0.1 seconds, and the heat cost is paid in full at the start of the shot, while cooling is per-frame), switch the laser facing to EQ_WEAPON_NONE. Count the appropriate off-time, then switch it back to the right laser. If the player stops firing mid-burst, reset your heating watch.
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: [OXP REQ] Laser burstfire module

Post by Zireael »

The amount of weird cases supporting it for NPCs adds to the game, trying to work out which weapons they should be firing in particular combat situations, and whether they even have forward weapons armed and ready... I'm definitely in no hurry to look at it for the player.
I understand the problems with NPCs, but for the player, the idea would be to add a secondary fire key and make it fire the secondary laser. Is it so very difficult?

About burstfire OXP being possible, great news!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: [OXP REQ] Laser burstfire module

Post by Smivs »

Cmdr Wyvern wrote:
As for multiple forward guns, *PFFT!!!* Oolite is Oolite, ED is ED, let's keep that way please.
+1
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply