Space Engineers

Space Engineers

733 ratings
2cm Beam System
3
5
8
4
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Other
File Size
Posted
Updated
185.228 MB
May 14, 2019 @ 12:10pm
Jun 26, 2020 @ 12:15pm
22 Change Notes ( view )

Subscribe to download
2cm Beam System

Description

Rotor Turret Script
https://steamcommunity.com/sharedfiles/filedetails/?id=1742307499

Ion Beam Manager Script
https://steamcommunity.com/sharedfiles/filedetails/?id=1742298522







Stackable with same type beams
More stacked beam = More range and more damage.

Colorable beam
You can change the color of the beam by coloring the block with a high saturation color.





Laser Beam System

Simple, but requires many energy.
Weak to against energy shield system.


Maximum Beam Range: 800M ~ 4,000M
Maximum Link Range: 25M



Ion Beam System

Very strong, but need build charging loop to use.
If you stack enough beam energy, the beam explodes at the point of impact.
But it is very weak if it is not stacked enough.

Strong to against shield system.
The ion beam overloads the target's shield system.


Maximum Beam Range: 1,200M ~ 25KM
Maximum Link Range: 125M





Block Properties for in-game script


Ion Beam Generator
TypeId: UpgradeModule
SubtypeIds:
  • 2CM_BS_Ion_Generator_sv_Large
  • 2CM_BS_Ion_Generator_Large (deprecated: I've left it backwards compatible.)

Properties
  • Beam_OutputPower : (float: 0 ~ 100) Determine target output power rate
  • Beam_CurrentPower : (float) [readonly] Present current output power


Ion Beam Combiner
TypeId: Passage
SubtypeId: 2CM_BS_Ion_Combiner_Large

Properties
  • Beam_CurrentPower : (float) [readonly] Present current power


Ion Capacitor
TypeId: TerminalBlock
SubtypeIds:
  • 2CM_BS_Ion_Capacitor
  • 2CM_BS_Ion_CapacitorS

Properties
  • Beam_PresentChargedRate : (bool) Determine present charged rate to CustomData
  • Beam_ChargedRate : (float: 0 ~ 1) [readonly] Present current charged power rate1


Ion Beam Active Emitter
TypeId: UpgradeModule
SubtypeIds: 2CM_BS_Ion_Active_Emitter_Large

Properties
  • Beam_CurrentPower : (float) [readonly] Present current emitter output power
  • Beam_SplitRatio : (float: 0 ~ 1) Split weights (output level will calculate with the weights of this emitter and the other emitters.)
  • Beam_CombinerSplitRatio: (float: 0 ~ 1) Combiner's emitter split weights value

Calculate ion beam split ratio example: Weights: Combiner emitter = 1.0 Active emitter "A" = 0.5 Active emitter "B" = 1.0 Active emitter "C" = 0.0 Total weights = 2.5 Split ratio results: Combiner emitter = 1.0 / 2.5 = 0.4 = 40 % Active emitter "A" = 0.5 / 2.5 = 0.2 = 20 % Active emitter "B" = 1.0 / 2.5 = 0.4 = 40 % Active emitter "C" = 0.0 / 2.5 = 0.0 = 0 %


Laser Generator
TypeId: UpgradeModule
SubtypeIds:
  • 2CM_BS_Laser_Generator_Large
  • 2CM_BS_Laser_Generator_Small

Properties
  • Beam_OutputPower : (float: 0 ~ 100) Determine target output power rate
  • Beam_CurrentPower : (float) [readonly] Present current output power


Laser Combiner
TypeId: Passage
SubtypeIds:
  • 2CM_BS_Laser_Combiner_Large
  • 2CM_BS_Laser_Combiner_Small

Properties
  • Beam_CurrentPower : (float) [readonly] Present current power


Laser Splitter
TypeId: UpgradeModule
SubtypeIds:
  • 2CM_BS_Laser_Splitter_Large
  • 2CM_BS_Laser_Splitter_Small

Properties
  • Beam_CurrentPower : (float) [readonly] Present current power
  • Beam_SplitRatio : (float: 0 ~ 1) Split ratio (0.0 is forward, 1.0 is backward)


Laser Capacitor
TypeId: Passage
SubtypeIds:
  • 2CM_BS_Laser_Capacitor_Large
  • 2CM_BS_Laser_Capacitor_Small

Properties
  • Beam_CurrentPower : (float) [readonly] Present current power





In-game script code pieces
// Get charged rate from ion capacitor float chargedRate = capacitor.GetValueFloat("Beam_ChargedRate"); // Set target output power rate to beam generator generator.SetValue("Beam_OutputPower", 100f);































Where from script?

Mostly I made it.

except:
CellEnumerator.cs from MA Laser Beam System.
https://steamcommunity.com/sharedfiles/filedetails/?id=1276445455

but, it's not means I made it from zero.

I learned many logic from MA Laser Beam System (raycasting, find hit block, drawing beam) and vanila code[github.com].

Also I learning multiplayer sync logic from Energy Weapons, but it's not ready yet.

Thanks to the creators.









Resource references


Laser beam sound from Homeworld 2.
I will change that sound.
https://store.steampowered.com/app/244160/



Ion beam sound from roper1911[freesound.org].


*Note: Sounds may will replace.
Kaiser Indrasil gave me good sounds and I am working on it now.




Changelog
v2:
  • Add Laser Capacitor: https://www.youtube.com/watch?v=x1efb3Y5avk
  • Ion Beam Generator: Change size 9x9x15 to 5x5x9 (power also re-scaled)
  • Change power consume model: When power is not enough Beam System will try degraded output power to keep firing. (Power consumed priority: next of thrust, before charge batteries)
  • Fix power consumption is displayed incorrectly issue.

v8:
  • Add Laser Splitter: https://www.youtube.com/watch?v=sg05MsC0qlA
  • Reduce power consumption.
  • Removed light effect for linked beam for performance.
  • Fix Small Ion Beam Generator not working issue.
  • Fix power consumption is displayed incorrectly issue.
  • Fix crash when grid paste.
  • Fix The size of the Laser Capacitor for small grids is incorrect.

v9:

Warning: Multi-play not yet tested.





Can I ask you support?
[www.buymeacoffee.com]
Popular Discussions View All (15)
72
Oct 26, 2024 @ 7:57am
PINNED: Bug reports
Indrasil
50
Aug 5, 2023 @ 4:07am
Revive this mod please.
Lanx
27
Jun 10, 2019 @ 2:38pm
Pugz's Crashes
Pugz
692 Comments
VS-lockon Oct 2, 2024 @ 12:41pm 
@ThiccMcButters ya and it not going get fix like i said 2cm have not see since 2020 the code came form MA Laser Beam System. and since AutoMcDonough stop working on MA Laser Beam System long time a go 2cm can't fix it even if he was here to do so
ThiccMcButters Sep 26, 2024 @ 6:25pm 
The mod is broken... can't toggle on/off any of the blocks anymore.
VS-lockon Sep 16, 2024 @ 2:05pm 
2cm dead user use a code that was off of MA Laser Beam System once that mod broke the guy dose not know how to fix it
NOT HERETIC Jun 27, 2024 @ 12:55pm 
mode is broken
BaltaisTigeris Jun 18, 2024 @ 6:32am 
I cant manually in terminal activate beam genarators bc there isn't any slider to dictate power output :steamthumbsdown:
Lewisharrison141 Jun 6, 2024 @ 11:11pm 
ever considered designing it for a mining that extracts ore
VS-lockon Mar 30, 2024 @ 4:47pm 
2cm come back
Riddleycat Mar 7, 2024 @ 3:08pm 
Should make a beam receiver as a way to transfer power between bases
TenDelta Dec 9, 2023 @ 1:20pm 
not working
CynicDragon Dec 8, 2023 @ 3:18am 
cant seem to get these to work, large or small grid, both not working, are the scripts mandatory for the mod to work? apparently a lot more insctruciton is needed to make this work