2cm Beam System
Фото и видео: 1 из 26. Материалы автора из Steam Workshop.
О материале
«2cm Beam System» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Example World Here
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.
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.
*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:
-
Add Ion Active Emitter: https://www.youtube.com/watch?v=s56pFuZJgvY
-
Remove receive range cap.
-
Fix infinity loop power.
-
Fix crash when grid split what contains beam system block.
Warning: Multi-play not yet tested.
[
Can I ask you support?
](https://www.buymeacoffee.com/N9bEdXZ3G)
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.